Module: Kitchen::Driver::Oci::Instance::DbHomeDetails

Included in:
DbaasLaunchDetails
Defined in:
lib/kitchen/driver/oci/instance/db_home.rb

Overview

setter methods that populate the details of OCI::Database::Models::CreateDbHomeDetails

Instance Method Summary collapse

Instance Method Details

#databaseObject



25
26
27
# File 'lib/kitchen/driver/oci/instance/db_home.rb', line 25

def database
  db_home_details.database = database_details
end

#db_home_defined_tagsObject



45
46
47
# File 'lib/kitchen/driver/oci/instance/db_home.rb', line 45

def db_home_defined_tags
  db_home_details.defined_tags = config[:defined_tags]
end

#db_home_display_nameObject



35
36
37
# File 'lib/kitchen/driver/oci/instance/db_home.rb', line 35

def db_home_display_name
  db_home_details.display_name = ["dbhome", random_number(10)].compact.join
end

#db_home_software_imageObject



39
40
41
42
43
# File 'lib/kitchen/driver/oci/instance/db_home.rb', line 39

def db_home_software_image
  return unless config[:dbaas][:db_software_image_id]

  db_home_details.database_software_image_id = config[:dbaas][:db_software_image_id]
end

#db_versionObject



29
30
31
32
33
# File 'lib/kitchen/driver/oci/instance/db_home.rb', line 29

def db_version
  raise "db_version cannot be nil!" if config[:dbaas][:db_version].nil?

  db_home_details.db_version = config[:dbaas][:db_version]
end