Class: OCI::Database::Models::CreateAutonomousContainerDatabaseDetails

Inherits:
CreateAutonomousContainerDatabaseBase show all
Defined in:
lib/oci/database/models/create_autonomous_container_database_details.rb

Overview

Details to create an Autonomous Container Database (ACD).

Constant Summary

Constants inherited from CreateAutonomousContainerDatabaseBase

OCI::Database::Models::CreateAutonomousContainerDatabaseBase::DISTRIBUTION_AFFINITY_ENUM, OCI::Database::Models::CreateAutonomousContainerDatabaseBase::NET_SERVICES_ARCHITECTURE_ENUM, OCI::Database::Models::CreateAutonomousContainerDatabaseBase::PATCH_MODEL_ENUM, OCI::Database::Models::CreateAutonomousContainerDatabaseBase::PROTECTION_MODE_ENUM, OCI::Database::Models::CreateAutonomousContainerDatabaseBase::SERVICE_LEVEL_AGREEMENT_TYPE_ENUM, OCI::Database::Models::CreateAutonomousContainerDatabaseBase::SOURCE_ENUM, OCI::Database::Models::CreateAutonomousContainerDatabaseBase::VERSION_PREFERENCE_ENUM

Instance Attribute Summary

Attributes inherited from CreateAutonomousContainerDatabaseBase

#autonomous_exadata_infrastructure_id, #autonomous_vm_cluster_id, #backup_config, #cloud_autonomous_vm_cluster_id, #compartment_id, #customer_contacts, #database_software_image_id, #db_name, #db_split_threshold, #db_unique_name, #db_version, #defined_tags, #display_name, #distribution_affinity, #encryption_key_location_details, #fast_start_fail_over_lag_limit_in_seconds, #freeform_tags, #is_automatic_failover_enabled, #is_dst_file_update_enabled, #key_store_id, #kms_key_id, #kms_key_version_id, #maintenance_window_details, #net_services_architecture, #okv_end_point_group_name, #patch_model, #peer_autonomous_container_database_backup_config, #peer_autonomous_container_database_compartment_id, #peer_autonomous_container_database_display_name, #peer_autonomous_exadata_infrastructure_id, #peer_autonomous_vm_cluster_id, #peer_cloud_autonomous_vm_cluster_id, #peer_db_unique_name, #protection_mode, #service_level_agreement_type, #source, #standby_maintenance_buffer_in_days, #vault_id, #version_preference, #vm_failover_reservation

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from CreateAutonomousContainerDatabaseBase

get_subtype

Constructor Details

#initialize(attributes = {}) ⇒ CreateAutonomousContainerDatabaseDetails

Initializes the object

Parameters:

  • attributes (Hash) (defaults to: {})

    Model attributes in the form of hash

Options Hash (attributes):



154
155
156
157
158
159
160
# File 'lib/oci/database/models/create_autonomous_container_database_details.rb', line 154

def initialize(attributes = {})
  return unless attributes.is_a?(Hash)

  attributes['source'] = 'NONE'

  super(attributes)
end

Class Method Details

.attribute_mapObject

Attribute mapping from ruby-style variable name to JSON key.



14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
# File 'lib/oci/database/models/create_autonomous_container_database_details.rb', line 14

def self.attribute_map
  {
    # rubocop:disable Style/SymbolLiteral
    'customer_contacts': :'customerContacts',
    'okv_end_point_group_name': :'okvEndPointGroupName',
    'source': :'source',
    'display_name': :'displayName',
    'db_unique_name': :'dbUniqueName',
    'db_name': :'dbName',
    'service_level_agreement_type': :'serviceLevelAgreementType',
    'autonomous_exadata_infrastructure_id': :'autonomousExadataInfrastructureId',
    'db_version': :'dbVersion',
    'database_software_image_id': :'databaseSoftwareImageId',
    'peer_autonomous_exadata_infrastructure_id': :'peerAutonomousExadataInfrastructureId',
    'peer_autonomous_container_database_display_name': :'peerAutonomousContainerDatabaseDisplayName',
    'protection_mode': :'protectionMode',
    'fast_start_fail_over_lag_limit_in_seconds': :'fastStartFailOverLagLimitInSeconds',
    'is_automatic_failover_enabled': :'isAutomaticFailoverEnabled',
    'peer_cloud_autonomous_vm_cluster_id': :'peerCloudAutonomousVmClusterId',
    'peer_autonomous_vm_cluster_id': :'peerAutonomousVmClusterId',
    'peer_autonomous_container_database_compartment_id': :'peerAutonomousContainerDatabaseCompartmentId',
    'peer_autonomous_container_database_backup_config': :'peerAutonomousContainerDatabaseBackupConfig',
    'peer_db_unique_name': :'peerDbUniqueName',
    'autonomous_vm_cluster_id': :'autonomousVmClusterId',
    'cloud_autonomous_vm_cluster_id': :'cloudAutonomousVmClusterId',
    'compartment_id': :'compartmentId',
    'patch_model': :'patchModel',
    'maintenance_window_details': :'maintenanceWindowDetails',
    'standby_maintenance_buffer_in_days': :'standbyMaintenanceBufferInDays',
    'version_preference': :'versionPreference',
    'is_dst_file_update_enabled': :'isDstFileUpdateEnabled',
    'freeform_tags': :'freeformTags',
    'defined_tags': :'definedTags',
    'backup_config': :'backupConfig',
    'kms_key_id': :'kmsKeyId',
    'kms_key_version_id': :'kmsKeyVersionId',
    'vault_id': :'vaultId',
    'key_store_id': :'keyStoreId',
    'encryption_key_location_details': :'encryptionKeyLocationDetails',
    'db_split_threshold': :'dbSplitThreshold',
    'vm_failover_reservation': :'vmFailoverReservation',
    'distribution_affinity': :'distributionAffinity',
    'net_services_architecture': :'netServicesArchitecture'
    # rubocop:enable Style/SymbolLiteral
  }
end

.swagger_typesObject

Attribute type mapping.



62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
# File 'lib/oci/database/models/create_autonomous_container_database_details.rb', line 62

def self.swagger_types
  {
    # rubocop:disable Style/SymbolLiteral
    'customer_contacts': :'Array<OCI::Database::Models::CustomerContact>',
    'okv_end_point_group_name': :'String',
    'source': :'String',
    'display_name': :'String',
    'db_unique_name': :'String',
    'db_name': :'String',
    'service_level_agreement_type': :'String',
    'autonomous_exadata_infrastructure_id': :'String',
    'db_version': :'String',
    'database_software_image_id': :'String',
    'peer_autonomous_exadata_infrastructure_id': :'String',
    'peer_autonomous_container_database_display_name': :'String',
    'protection_mode': :'String',
    'fast_start_fail_over_lag_limit_in_seconds': :'Integer',
    'is_automatic_failover_enabled': :'BOOLEAN',
    'peer_cloud_autonomous_vm_cluster_id': :'String',
    'peer_autonomous_vm_cluster_id': :'String',
    'peer_autonomous_container_database_compartment_id': :'String',
    'peer_autonomous_container_database_backup_config': :'OCI::Database::Models::PeerAutonomousContainerDatabaseBackupConfig',
    'peer_db_unique_name': :'String',
    'autonomous_vm_cluster_id': :'String',
    'cloud_autonomous_vm_cluster_id': :'String',
    'compartment_id': :'String',
    'patch_model': :'String',
    'maintenance_window_details': :'OCI::Database::Models::MaintenanceWindow',
    'standby_maintenance_buffer_in_days': :'Integer',
    'version_preference': :'String',
    'is_dst_file_update_enabled': :'BOOLEAN',
    'freeform_tags': :'Hash<String, String>',
    'defined_tags': :'Hash<String, Hash<String, Object>>',
    'backup_config': :'OCI::Database::Models::AutonomousContainerDatabaseBackupConfig',
    'kms_key_id': :'String',
    'kms_key_version_id': :'String',
    'vault_id': :'String',
    'key_store_id': :'String',
    'encryption_key_location_details': :'OCI::Database::Models::EncryptionKeyLocationDetails',
    'db_split_threshold': :'Integer',
    'vm_failover_reservation': :'Integer',
    'distribution_affinity': :'String',
    'net_services_architecture': :'String'
    # rubocop:enable Style/SymbolLiteral
  }
end

Instance Method Details

#==(other) ⇒ Object

Checks equality by comparing each attribute.

Parameters:

  • other (Object)

    the other object to be compared



169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
# File 'lib/oci/database/models/create_autonomous_container_database_details.rb', line 169

def ==(other)
  return true if equal?(other)

  self.class == other.class &&
    customer_contacts == other.customer_contacts &&
    okv_end_point_group_name == other.okv_end_point_group_name &&
    source == other.source &&
    display_name == other.display_name &&
    db_unique_name == other.db_unique_name &&
    db_name == other.db_name &&
    service_level_agreement_type == other.service_level_agreement_type &&
    autonomous_exadata_infrastructure_id == other.autonomous_exadata_infrastructure_id &&
    db_version == other.db_version &&
    database_software_image_id == other.database_software_image_id &&
    peer_autonomous_exadata_infrastructure_id == other.peer_autonomous_exadata_infrastructure_id &&
    peer_autonomous_container_database_display_name == other.peer_autonomous_container_database_display_name &&
    protection_mode == other.protection_mode &&
    fast_start_fail_over_lag_limit_in_seconds == other.fast_start_fail_over_lag_limit_in_seconds &&
    is_automatic_failover_enabled == other.is_automatic_failover_enabled &&
    peer_cloud_autonomous_vm_cluster_id == other.peer_cloud_autonomous_vm_cluster_id &&
    peer_autonomous_vm_cluster_id == other.peer_autonomous_vm_cluster_id &&
    peer_autonomous_container_database_compartment_id == other.peer_autonomous_container_database_compartment_id &&
    peer_autonomous_container_database_backup_config == other.peer_autonomous_container_database_backup_config &&
    peer_db_unique_name == other.peer_db_unique_name &&
    autonomous_vm_cluster_id == other.autonomous_vm_cluster_id &&
    cloud_autonomous_vm_cluster_id == other.cloud_autonomous_vm_cluster_id &&
    compartment_id == other.compartment_id &&
    patch_model == other.patch_model &&
    maintenance_window_details == other.maintenance_window_details &&
    standby_maintenance_buffer_in_days == other.standby_maintenance_buffer_in_days &&
    version_preference == other.version_preference &&
    is_dst_file_update_enabled == other.is_dst_file_update_enabled &&
    freeform_tags == other.freeform_tags &&
    defined_tags == other.defined_tags &&
    backup_config == other.backup_config &&
    kms_key_id == other.kms_key_id &&
    kms_key_version_id == other.kms_key_version_id &&
    vault_id == other.vault_id &&
    key_store_id == other.key_store_id &&
    encryption_key_location_details == other.encryption_key_location_details &&
    db_split_threshold == other.db_split_threshold &&
    vm_failover_reservation == other.vm_failover_reservation &&
    distribution_affinity == other.distribution_affinity &&
    net_services_architecture == other.net_services_architecture
end

#build_from_hash(attributes) ⇒ Object

Builds the object from hash

Parameters:

  • attributes (Hash)

    Model attributes in the form of hash

Returns:

  • (Object)

    Returns the model itself



238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
# File 'lib/oci/database/models/create_autonomous_container_database_details.rb', line 238

def build_from_hash(attributes)
  return nil unless attributes.is_a?(Hash)

  self.class.swagger_types.each_pair do |key, type|
    if type =~ /^Array<(.*)>/i
      # check to ensure the input is an array given that the the attribute
      # is documented as an array but the input is not
      if attributes[self.class.attribute_map[key]].is_a?(Array)
        public_method("#{key}=").call(
          attributes[self.class.attribute_map[key]]
            .map { |v| OCI::Internal::Util.convert_to_type(Regexp.last_match(1), v) }
        )
      end
    elsif !attributes[self.class.attribute_map[key]].nil?
      public_method("#{key}=").call(
        OCI::Internal::Util.convert_to_type(type, attributes[self.class.attribute_map[key]])
      )
    end
    # or else data not found in attributes(hash), not an issue as the data can be optional
  end

  self
end

#eql?(other) ⇒ Boolean

Parameters:

  • other (Object)

    the other object to be compared

Returns:

  • (Boolean)

See Also:

  • `==` method


218
219
220
# File 'lib/oci/database/models/create_autonomous_container_database_details.rb', line 218

def eql?(other)
  self == other
end

#hashFixnum

Calculates hash code according to all attributes.

Returns:

  • (Fixnum)

    Hash code



227
228
229
# File 'lib/oci/database/models/create_autonomous_container_database_details.rb', line 227

def hash
  [customer_contacts, okv_end_point_group_name, source, display_name, db_unique_name, db_name, service_level_agreement_type, autonomous_exadata_infrastructure_id, db_version, database_software_image_id, peer_autonomous_exadata_infrastructure_id, peer_autonomous_container_database_display_name, protection_mode, fast_start_fail_over_lag_limit_in_seconds, is_automatic_failover_enabled, peer_cloud_autonomous_vm_cluster_id, peer_autonomous_vm_cluster_id, peer_autonomous_container_database_compartment_id, peer_autonomous_container_database_backup_config, peer_db_unique_name, autonomous_vm_cluster_id, cloud_autonomous_vm_cluster_id, compartment_id, patch_model, maintenance_window_details, standby_maintenance_buffer_in_days, version_preference, is_dst_file_update_enabled, freeform_tags, defined_tags, backup_config, kms_key_id, kms_key_version_id, vault_id, key_store_id, encryption_key_location_details, db_split_threshold, vm_failover_reservation, distribution_affinity, net_services_architecture].hash
end

#to_hashHash

Returns the object in the form of hash

Returns:

  • (Hash)

    Returns the object in the form of hash



271
272
273
274
275
276
277
278
279
280
# File 'lib/oci/database/models/create_autonomous_container_database_details.rb', line 271

def to_hash
  hash = {}
  self.class.attribute_map.each_pair do |attr, param|
    value = public_method(attr).call
    next if value.nil? && !instance_variable_defined?("@#{attr}")

    hash[param] = _to_hash(value)
  end
  hash
end

#to_sString

Returns the string representation of the object

Returns:

  • (String)

    String presentation of the object



265
266
267
# File 'lib/oci/database/models/create_autonomous_container_database_details.rb', line 265

def to_s
  to_hash.to_s
end