Class: OpsManagerUiDrivers::Version110::Settings::Azure

Inherits:
Object
  • Object
show all
Defined in:
lib/ops_manager_ui_drivers/version110/settings.rb

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(test_settings) ⇒ Azure

Returns a new instance of Azure.



77
78
79
# File 'lib/ops_manager_ui_drivers/version110/settings.rb', line 77

def initialize(test_settings)
  @test_settings = test_settings
end

Class Method Details

.works_with?(iaas_type) ⇒ Boolean

Returns:

  • (Boolean)


73
74
75
# File 'lib/ops_manager_ui_drivers/version110/settings.rb', line 73

def self.works_with?(iaas_type)
  iaas_type == 'azure'
end

Instance Method Details

#advanced_infrastructure_config_fieldsObject



96
97
98
99
# File 'lib/ops_manager_ui_drivers/version110/settings.rb', line 96

def advanced_infrastructure_config_fields
  {
  }
end

#iaas_configuration_fieldsObject



81
82
83
84
85
86
87
88
89
90
91
92
93
94
# File 'lib/ops_manager_ui_drivers/version110/settings.rb', line 81

def iaas_configuration_fields
  {
    'subscription_id' => @test_settings.dig('ops_manager', 'azure', 'subscription_id'),
    'tenant_id' => @test_settings.dig('ops_manager', 'azure', 'tenant_id'),
    'client_id' => @test_settings.dig('ops_manager', 'azure', 'client_id'),
    'client_secret' => @test_settings.dig('ops_manager', 'azure', 'client_secret'),
    'resource_group_name' => @test_settings.dig('ops_manager', 'azure', 'resource_group_name'),
    'bosh_storage_account_name' => @test_settings.dig('ops_manager', 'azure', 'bosh_storage_account_name'),
    'deployments_storage_account_name' => @test_settings.dig('ops_manager', 'azure', 'deployments_storage_account_name'),
    'default_security_group' => @test_settings.dig('ops_manager', 'azure', 'default_security_group'),
    'ssh_public_key' => @test_settings.dig('ops_manager', 'azure', 'ssh_public_key'),
    'ssh_private_key' => @test_settings.dig('ops_manager', 'azure', 'ssh_private_key'),
  }
end