Class: OCI::Database::Models::CreateDataGuardAssociationWithNewDbSystemDetails
- Inherits:
-
CreateDataGuardAssociationDetails
- Object
- CreateDataGuardAssociationDetails
- OCI::Database::Models::CreateDataGuardAssociationWithNewDbSystemDetails
- Defined in:
- lib/oci/database/models/create_data_guard_association_with_new_db_system_details.rb
Overview
The configuration details for creating a Data Guard association for a virtual machine DB system database. For this type of DB system database, the creationType should be NewDbSystem. A new DB system will be launched to create the standby database.
To create a Data Guard association for a database in a bare metal or Exadata DB system, use the create_data_guard_association_to_existing_db_system_details subtype instead.
Constant Summary collapse
- STORAGE_VOLUME_PERFORMANCE_MODE_ENUM =
[ STORAGE_VOLUME_PERFORMANCE_MODE_BALANCED = 'BALANCED'.freeze, STORAGE_VOLUME_PERFORMANCE_MODE_HIGH_PERFORMANCE = 'HIGH_PERFORMANCE'.freeze ].freeze
- COMPUTE_MODEL_ENUM =
[ COMPUTE_MODEL_ECPU = 'ECPU'.freeze, COMPUTE_MODEL_OCPU = 'OCPU'.freeze ].freeze
- LICENSE_MODEL_ENUM =
[ LICENSE_MODEL_LICENSE_INCLUDED = 'LICENSE_INCLUDED'.freeze, LICENSE_MODEL_BRING_YOUR_OWN_LICENSE = 'BRING_YOUR_OWN_LICENSE'.freeze ].freeze
Constants inherited from CreateDataGuardAssociationDetails
OCI::Database::Models::CreateDataGuardAssociationDetails::PROTECTION_MODE_ENUM, OCI::Database::Models::CreateDataGuardAssociationDetails::TRANSPORT_TYPE_ENUM
Instance Attribute Summary collapse
-
#availability_domain ⇒ String
The name of the availability domain that the standby database DB system will be located in.
-
#backup_network_nsg_ids ⇒ Array<String>
A list of the OCIDs of the network security groups (NSGs) that the backup network of this DB system belongs to.
-
#cluster_placement_group_id ⇒ String
The OCID of the cluster placement group of the Exadata Infrastructure or Db System.
-
#compute_count ⇒ Integer
The number of compute servers for the DB system.
-
#compute_model ⇒ String
The compute model for Base Database Service.
-
#cpu_core_count ⇒ Integer
The number of CPU cores available for AMD-based virtual machine DB systems.
- #data_collection_options ⇒ OCI::Database::Models::DataCollectionOptions
-
#database_defined_tags ⇒ Hash<String, Hash<String, Object>>
Defined tags for this resource.
-
#database_freeform_tags ⇒ Hash<String, String>
Free-form tags for this resource.
-
#db_system_defined_tags ⇒ Hash<String, Hash<String, Object>>
Defined tags for this resource.
-
#db_system_freeform_tags ⇒ Hash<String, String>
Free-form tags for this resource.
-
#db_system_security_attributes ⇒ Hash<String, Hash<String, Object>>
Security Attributes for this resource.
-
#display_name ⇒ String
The user-friendly name of the DB system that will contain the the standby database.
-
#domain ⇒ String
A domain name used for the DB system.
-
#fault_domains ⇒ Array<String>
A Fault Domain is a grouping of hardware and infrastructure within an availability domain.
-
#hostname ⇒ String
The hostname for the DB node.
-
#license_model ⇒ String
The Oracle license model that applies to all the databases on the dataguard standby DB system.
-
#node_count ⇒ Integer
The number of nodes to launch for the DB system of the standby in the Data Guard association.
-
#nsg_ids ⇒ Array<String>
The list of OCIDs for the network security groups (NSGs) to which this resource belongs.
-
#private_ip ⇒ String
The IPv4 address from the provided OCI subnet which needs to be assigned to the VNIC.
-
#private_ip_v6 ⇒ String
The IPv6 address from the provided OCI subnet which needs to be assigned to the VNIC.
-
#shape ⇒ String
The virtual machine DB system shape to launch for the standby database in the Data Guard association.
-
#storage_volume_performance_mode ⇒ String
The block storage volume performance level.
-
#subnet_id ⇒ String
The OCID of the subnet the DB system is associated with.
-
#subscription_id ⇒ String
The OCID of the subscription with which resource needs to be associated with.
-
#time_zone ⇒ String
The time zone of the dataguard standby DB system.
Attributes inherited from CreateDataGuardAssociationDetails
#creation_type, #database_admin_password, #database_software_image_id, #is_active_data_guard_enabled, #peer_db_unique_name, #peer_sid_prefix, #protection_mode, #source_encryption_key_location_details, #transport_type
Class Method Summary collapse
-
.attribute_map ⇒ Object
Attribute mapping from ruby-style variable name to JSON key.
-
.swagger_types ⇒ Object
Attribute type mapping.
Instance Method Summary collapse
-
#==(other) ⇒ Object
Checks equality by comparing each attribute.
-
#build_from_hash(attributes) ⇒ Object
Builds the object from hash.
- #eql?(other) ⇒ Boolean
-
#hash ⇒ Fixnum
Calculates hash code according to all attributes.
-
#initialize(attributes = {}) ⇒ CreateDataGuardAssociationWithNewDbSystemDetails
constructor
Initializes the object.
-
#to_hash ⇒ Hash
Returns the object in the form of hash.
-
#to_s ⇒ String
Returns the string representation of the object.
Methods inherited from CreateDataGuardAssociationDetails
Constructor Details
#initialize(attributes = {}) ⇒ CreateDataGuardAssociationWithNewDbSystemDetails
Initializes the object
316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 |
# File 'lib/oci/database/models/create_data_guard_association_with_new_db_system_details.rb', line 316 def initialize(attributes = {}) return unless attributes.is_a?(Hash) attributes['creationType'] = 'NewDbSystem' super(attributes) # convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v } self.display_name = attributes[:'displayName'] if attributes[:'displayName'] raise 'You cannot provide both :displayName and :display_name' if attributes.key?(:'displayName') && attributes.key?(:'display_name') self.display_name = attributes[:'display_name'] if attributes[:'display_name'] self.availability_domain = attributes[:'availabilityDomain'] if attributes[:'availabilityDomain'] raise 'You cannot provide both :availabilityDomain and :availability_domain' if attributes.key?(:'availabilityDomain') && attributes.key?(:'availability_domain') self.availability_domain = attributes[:'availability_domain'] if attributes[:'availability_domain'] self.shape = attributes[:'shape'] if attributes[:'shape'] self.cpu_core_count = attributes[:'cpuCoreCount'] if attributes[:'cpuCoreCount'] raise 'You cannot provide both :cpuCoreCount and :cpu_core_count' if attributes.key?(:'cpuCoreCount') && attributes.key?(:'cpu_core_count') self.cpu_core_count = attributes[:'cpu_core_count'] if attributes[:'cpu_core_count'] self.storage_volume_performance_mode = attributes[:'storageVolumePerformanceMode'] if attributes[:'storageVolumePerformanceMode'] self.storage_volume_performance_mode = "BALANCED" if storage_volume_performance_mode.nil? && !attributes.key?(:'storageVolumePerformanceMode') # rubocop:disable Style/StringLiterals raise 'You cannot provide both :storageVolumePerformanceMode and :storage_volume_performance_mode' if attributes.key?(:'storageVolumePerformanceMode') && attributes.key?(:'storage_volume_performance_mode') self.storage_volume_performance_mode = attributes[:'storage_volume_performance_mode'] if attributes[:'storage_volume_performance_mode'] self.storage_volume_performance_mode = "BALANCED" if storage_volume_performance_mode.nil? && !attributes.key?(:'storageVolumePerformanceMode') && !attributes.key?(:'storage_volume_performance_mode') # rubocop:disable Style/StringLiterals self.compute_model = attributes[:'computeModel'] if attributes[:'computeModel'] raise 'You cannot provide both :computeModel and :compute_model' if attributes.key?(:'computeModel') && attributes.key?(:'compute_model') self.compute_model = attributes[:'compute_model'] if attributes[:'compute_model'] self.compute_count = attributes[:'computeCount'] if attributes[:'computeCount'] raise 'You cannot provide both :computeCount and :compute_count' if attributes.key?(:'computeCount') && attributes.key?(:'compute_count') self.compute_count = attributes[:'compute_count'] if attributes[:'compute_count'] self.node_count = attributes[:'nodeCount'] if attributes[:'nodeCount'] raise 'You cannot provide both :nodeCount and :node_count' if attributes.key?(:'nodeCount') && attributes.key?(:'node_count') self.node_count = attributes[:'node_count'] if attributes[:'node_count'] self.subnet_id = attributes[:'subnetId'] if attributes[:'subnetId'] raise 'You cannot provide both :subnetId and :subnet_id' if attributes.key?(:'subnetId') && attributes.key?(:'subnet_id') self.subnet_id = attributes[:'subnet_id'] if attributes[:'subnet_id'] self.nsg_ids = attributes[:'nsgIds'] if attributes[:'nsgIds'] raise 'You cannot provide both :nsgIds and :nsg_ids' if attributes.key?(:'nsgIds') && attributes.key?(:'nsg_ids') self.nsg_ids = attributes[:'nsg_ids'] if attributes[:'nsg_ids'] self.backup_network_nsg_ids = attributes[:'backupNetworkNsgIds'] if attributes[:'backupNetworkNsgIds'] raise 'You cannot provide both :backupNetworkNsgIds and :backup_network_nsg_ids' if attributes.key?(:'backupNetworkNsgIds') && attributes.key?(:'backup_network_nsg_ids') self.backup_network_nsg_ids = attributes[:'backup_network_nsg_ids'] if attributes[:'backup_network_nsg_ids'] self.hostname = attributes[:'hostname'] if attributes[:'hostname'] self.domain = attributes[:'domain'] if attributes[:'domain'] self.time_zone = attributes[:'timeZone'] if attributes[:'timeZone'] raise 'You cannot provide both :timeZone and :time_zone' if attributes.key?(:'timeZone') && attributes.key?(:'time_zone') self.time_zone = attributes[:'time_zone'] if attributes[:'time_zone'] self.fault_domains = attributes[:'faultDomains'] if attributes[:'faultDomains'] raise 'You cannot provide both :faultDomains and :fault_domains' if attributes.key?(:'faultDomains') && attributes.key?(:'fault_domains') self.fault_domains = attributes[:'fault_domains'] if attributes[:'fault_domains'] self.private_ip = attributes[:'privateIp'] if attributes[:'privateIp'] raise 'You cannot provide both :privateIp and :private_ip' if attributes.key?(:'privateIp') && attributes.key?(:'private_ip') self.private_ip = attributes[:'private_ip'] if attributes[:'private_ip'] self.private_ip_v6 = attributes[:'privateIpV6'] if attributes[:'privateIpV6'] raise 'You cannot provide both :privateIpV6 and :private_ip_v6' if attributes.key?(:'privateIpV6') && attributes.key?(:'private_ip_v6') self.private_ip_v6 = attributes[:'private_ip_v6'] if attributes[:'private_ip_v6'] self.license_model = attributes[:'licenseModel'] if attributes[:'licenseModel'] raise 'You cannot provide both :licenseModel and :license_model' if attributes.key?(:'licenseModel') && attributes.key?(:'license_model') self.license_model = attributes[:'license_model'] if attributes[:'license_model'] self. = attributes[:'dbSystemFreeformTags'] if attributes[:'dbSystemFreeformTags'] raise 'You cannot provide both :dbSystemFreeformTags and :db_system_freeform_tags' if attributes.key?(:'dbSystemFreeformTags') && attributes.key?(:'db_system_freeform_tags') self. = attributes[:'db_system_freeform_tags'] if attributes[:'db_system_freeform_tags'] self. = attributes[:'dbSystemDefinedTags'] if attributes[:'dbSystemDefinedTags'] raise 'You cannot provide both :dbSystemDefinedTags and :db_system_defined_tags' if attributes.key?(:'dbSystemDefinedTags') && attributes.key?(:'db_system_defined_tags') self. = attributes[:'db_system_defined_tags'] if attributes[:'db_system_defined_tags'] self.db_system_security_attributes = attributes[:'dbSystemSecurityAttributes'] if attributes[:'dbSystemSecurityAttributes'] raise 'You cannot provide both :dbSystemSecurityAttributes and :db_system_security_attributes' if attributes.key?(:'dbSystemSecurityAttributes') && attributes.key?(:'db_system_security_attributes') self.db_system_security_attributes = attributes[:'db_system_security_attributes'] if attributes[:'db_system_security_attributes'] self. = attributes[:'databaseFreeformTags'] if attributes[:'databaseFreeformTags'] raise 'You cannot provide both :databaseFreeformTags and :database_freeform_tags' if attributes.key?(:'databaseFreeformTags') && attributes.key?(:'database_freeform_tags') self. = attributes[:'database_freeform_tags'] if attributes[:'database_freeform_tags'] self. = attributes[:'databaseDefinedTags'] if attributes[:'databaseDefinedTags'] raise 'You cannot provide both :databaseDefinedTags and :database_defined_tags' if attributes.key?(:'databaseDefinedTags') && attributes.key?(:'database_defined_tags') self. = attributes[:'database_defined_tags'] if attributes[:'database_defined_tags'] self. = attributes[:'dataCollectionOptions'] if attributes[:'dataCollectionOptions'] raise 'You cannot provide both :dataCollectionOptions and :data_collection_options' if attributes.key?(:'dataCollectionOptions') && attributes.key?(:'data_collection_options') self. = attributes[:'data_collection_options'] if attributes[:'data_collection_options'] self.cluster_placement_group_id = attributes[:'clusterPlacementGroupId'] if attributes[:'clusterPlacementGroupId'] raise 'You cannot provide both :clusterPlacementGroupId and :cluster_placement_group_id' if attributes.key?(:'clusterPlacementGroupId') && attributes.key?(:'cluster_placement_group_id') self.cluster_placement_group_id = attributes[:'cluster_placement_group_id'] if attributes[:'cluster_placement_group_id'] self.subscription_id = attributes[:'subscriptionId'] if attributes[:'subscriptionId'] raise 'You cannot provide both :subscriptionId and :subscription_id' if attributes.key?(:'subscriptionId') && attributes.key?(:'subscription_id') self.subscription_id = attributes[:'subscription_id'] if attributes[:'subscription_id'] end |
Instance Attribute Details
#availability_domain ⇒ String
The name of the availability domain that the standby database DB system will be located in. For example- "Uocm:PHX-AD-1".
36 37 38 |
# File 'lib/oci/database/models/create_data_guard_association_with_new_db_system_details.rb', line 36 def availability_domain @availability_domain end |
#backup_network_nsg_ids ⇒ Array<String>
A list of the OCIDs of the network security groups (NSGs) that the backup network of this DB system belongs to. Setting this to an empty array after the list is created removes the resource from all NSGs. For more information about NSGs, see Security Rules. Applicable only to Exadata systems.
89 90 91 |
# File 'lib/oci/database/models/create_data_guard_association_with_new_db_system_details.rb', line 89 def backup_network_nsg_ids @backup_network_nsg_ids end |
#cluster_placement_group_id ⇒ String
The OCID of the cluster placement group of the Exadata Infrastructure or Db System.
184 185 186 |
# File 'lib/oci/database/models/create_data_guard_association_with_new_db_system_details.rb', line 184 def cluster_placement_group_id @cluster_placement_group_id end |
#compute_count ⇒ Integer
The number of compute servers for the DB system.
61 62 63 |
# File 'lib/oci/database/models/create_data_guard_association_with_new_db_system_details.rb', line 61 def compute_count @compute_count end |
#compute_model ⇒ String
The compute model for Base Database Service. This is required if using the computeCount parameter. If using cpuCoreCount then it is an error to specify computeModel to a non-null value. The ECPU compute model is the recommended model, and the OCPU compute model is legacy.
57 58 59 |
# File 'lib/oci/database/models/create_data_guard_association_with_new_db_system_details.rb', line 57 def compute_model @compute_model end |
#cpu_core_count ⇒ Integer
The number of CPU cores available for AMD-based virtual machine DB systems.
48 49 50 |
# File 'lib/oci/database/models/create_data_guard_association_with_new_db_system_details.rb', line 48 def cpu_core_count @cpu_core_count end |
#data_collection_options ⇒ OCI::Database::Models::DataCollectionOptions
180 181 182 |
# File 'lib/oci/database/models/create_data_guard_association_with_new_db_system_details.rb', line 180 def @data_collection_options end |
#database_defined_tags ⇒ Hash<String, Hash<String, Object>>
Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags.
177 178 179 |
# File 'lib/oci/database/models/create_data_guard_association_with_new_db_system_details.rb', line 177 def @database_defined_tags end |
#database_freeform_tags ⇒ Hash<String, String>
Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags.
Example: {\"Department\": \"Finance\"}
171 172 173 |
# File 'lib/oci/database/models/create_data_guard_association_with_new_db_system_details.rb', line 171 def @database_freeform_tags end |
#db_system_defined_tags ⇒ Hash<String, Hash<String, Object>>
Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags.
156 157 158 |
# File 'lib/oci/database/models/create_data_guard_association_with_new_db_system_details.rb', line 156 def @db_system_defined_tags end |
#db_system_freeform_tags ⇒ Hash<String, String>
Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags.
Example: {\"Department\": \"Finance\"}
150 151 152 |
# File 'lib/oci/database/models/create_data_guard_association_with_new_db_system_details.rb', line 150 def @db_system_freeform_tags end |
#db_system_security_attributes ⇒ Hash<String, Hash<String, Object>>
Security Attributes for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {\"Oracle-ZPR\": {\"MaxEgressCount\": {\"value\": \"42\", \"mode\": \"audit\"}}}
163 164 165 |
# File 'lib/oci/database/models/create_data_guard_association_with_new_db_system_details.rb', line 163 def db_system_security_attributes @db_system_security_attributes end |
#display_name ⇒ String
The user-friendly name of the DB system that will contain the the standby database. The display name does not have to be unique.
32 33 34 |
# File 'lib/oci/database/models/create_data_guard_association_with_new_db_system_details.rb', line 32 def display_name @display_name end |
#domain ⇒ String
A domain name used for the DB system. If the Oracle-provided Internet and VCN Resolver is enabled for the specified subnet, the domain name for the subnet is used (do not provide one). Otherwise, provide a valid DNS domain name. Hyphens (-) are not permitted.
100 101 102 |
# File 'lib/oci/database/models/create_data_guard_association_with_new_db_system_details.rb', line 100 def domain @domain end |
#fault_domains ⇒ Array<String>
A Fault Domain is a grouping of hardware and infrastructure within an availability domain. Fault Domains let you distribute your instances so that they are not on the same physical hardware within a single availability domain. A hardware failure or maintenance that affects one Fault Domain does not affect DB systems in other Fault Domains.
If you do not specify the Fault Domain, the system selects one for you. To change the Fault Domain for a DB system, terminate it and launch a new DB system in the preferred Fault Domain.
If the node count is greater than 1, you can specify which Fault Domains these nodes will be distributed into. The system assigns your nodes automatically to the Fault Domains you specify so that no Fault Domain contains more than one node.
To get a list of Fault Domains, use the list_fault_domains operation in the Identity and Access Management Service API.
Example: FAULT-DOMAIN-1
125 126 127 |
# File 'lib/oci/database/models/create_data_guard_association_with_new_db_system_details.rb', line 125 def fault_domains @fault_domains end |
#hostname ⇒ String
The hostname for the DB node.
93 94 95 |
# File 'lib/oci/database/models/create_data_guard_association_with_new_db_system_details.rb', line 93 def hostname @hostname end |
#license_model ⇒ String
The Oracle license model that applies to all the databases on the dataguard standby DB system. The default is LICENSE_INCLUDED. Bring your own license (BYOL) allows you to select the DB edition using the optional parameter, for Autonomous AI Database Serverless.
142 143 144 |
# File 'lib/oci/database/models/create_data_guard_association_with_new_db_system_details.rb', line 142 def license_model @license_model end |
#node_count ⇒ Integer
The number of nodes to launch for the DB system of the standby in the Data Guard association. For a 2-node RAC virtual machine DB system, specify either 1 or 2. If you do not supply this parameter, the default is the node count of the primary DB system.
66 67 68 |
# File 'lib/oci/database/models/create_data_guard_association_with_new_db_system_details.rb', line 66 def node_count @node_count end |
#nsg_ids ⇒ Array<String>
The list of OCIDs for the network security groups (NSGs) to which this resource belongs. Setting this to an empty list removes all resources from all NSGs. For more information about NSGs, see Security Rules. NsgIds restrictions: - A network security group (NSG) is optional for Autonomous AI Databases with private access. The nsgIds list can be empty.
84 85 86 |
# File 'lib/oci/database/models/create_data_guard_association_with_new_db_system_details.rb', line 84 def nsg_ids @nsg_ids end |
#private_ip ⇒ String
The IPv4 address from the provided OCI subnet which needs to be assigned to the VNIC. If not provided, it will be auto-assigned with an available IPv4 address from the subnet.
131 132 133 |
# File 'lib/oci/database/models/create_data_guard_association_with_new_db_system_details.rb', line 131 def private_ip @private_ip end |
#private_ip_v6 ⇒ String
The IPv6 address from the provided OCI subnet which needs to be assigned to the VNIC. If not provided, it will be auto-assigned with an available IPv6 address from the subnet.
137 138 139 |
# File 'lib/oci/database/models/create_data_guard_association_with_new_db_system_details.rb', line 137 def private_ip_v6 @private_ip_v6 end |
#shape ⇒ String
The virtual machine DB system shape to launch for the standby database in the Data Guard association. The shape determines the number of CPU cores and the amount of memory available for the DB system. Only virtual machine shapes are valid options. If you do not supply this parameter, the default shape is the shape of the primary DB system.
To get a list of all shapes, use the list_db_system_shapes operation.
44 45 46 |
# File 'lib/oci/database/models/create_data_guard_association_with_new_db_system_details.rb', line 44 def shape @shape end |
#storage_volume_performance_mode ⇒ String
The block storage volume performance level. Valid values are BALANCED and HIGH_PERFORMANCE. See Block Volume Performance for more information.
53 54 55 |
# File 'lib/oci/database/models/create_data_guard_association_with_new_db_system_details.rb', line 53 def storage_volume_performance_mode @storage_volume_performance_mode end |
#subnet_id ⇒ String
The OCID of the subnet the DB system is associated with. Subnet Restrictions: - For 1- and 2-node RAC DB systems, do not use a subnet that overlaps with 192.168.16.16/28
These subnets are used by the Oracle Clusterware private interconnect on the database instance. Specifying an overlapping subnet will cause the private interconnect to malfunction. This restriction applies to both the client subnet and backup subnet.
77 78 79 |
# File 'lib/oci/database/models/create_data_guard_association_with_new_db_system_details.rb', line 77 def subnet_id @subnet_id end |
#subscription_id ⇒ String
The OCID of the subscription with which resource needs to be associated with.
188 189 190 |
# File 'lib/oci/database/models/create_data_guard_association_with_new_db_system_details.rb', line 188 def subscription_id @subscription_id end |
#time_zone ⇒ String
The time zone of the dataguard standby DB system. For details, see DB System Time Zones.
104 105 106 |
# File 'lib/oci/database/models/create_data_guard_association_with_new_db_system_details.rb', line 104 def time_zone @time_zone end |
Class Method Details
.attribute_map ⇒ Object
Attribute mapping from ruby-style variable name to JSON key.
191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 |
# File 'lib/oci/database/models/create_data_guard_association_with_new_db_system_details.rb', line 191 def self.attribute_map { # rubocop:disable Style/SymbolLiteral 'database_software_image_id': :'databaseSoftwareImageId', 'database_admin_password': :'databaseAdminPassword', 'source_encryption_key_location_details': :'sourceEncryptionKeyLocationDetails', 'protection_mode': :'protectionMode', 'transport_type': :'transportType', 'creation_type': :'creationType', 'is_active_data_guard_enabled': :'isActiveDataGuardEnabled', 'peer_db_unique_name': :'peerDbUniqueName', 'peer_sid_prefix': :'peerSidPrefix', 'display_name': :'displayName', 'availability_domain': :'availabilityDomain', 'shape': :'shape', 'cpu_core_count': :'cpuCoreCount', 'storage_volume_performance_mode': :'storageVolumePerformanceMode', 'compute_model': :'computeModel', 'compute_count': :'computeCount', 'node_count': :'nodeCount', 'subnet_id': :'subnetId', 'nsg_ids': :'nsgIds', 'backup_network_nsg_ids': :'backupNetworkNsgIds', 'hostname': :'hostname', 'domain': :'domain', 'time_zone': :'timeZone', 'fault_domains': :'faultDomains', 'private_ip': :'privateIp', 'private_ip_v6': :'privateIpV6', 'license_model': :'licenseModel', 'db_system_freeform_tags': :'dbSystemFreeformTags', 'db_system_defined_tags': :'dbSystemDefinedTags', 'db_system_security_attributes': :'dbSystemSecurityAttributes', 'database_freeform_tags': :'databaseFreeformTags', 'database_defined_tags': :'databaseDefinedTags', 'data_collection_options': :'dataCollectionOptions', 'cluster_placement_group_id': :'clusterPlacementGroupId', 'subscription_id': :'subscriptionId' # rubocop:enable Style/SymbolLiteral } end |
.swagger_types ⇒ Object
Attribute type mapping.
234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 |
# File 'lib/oci/database/models/create_data_guard_association_with_new_db_system_details.rb', line 234 def self.swagger_types { # rubocop:disable Style/SymbolLiteral 'database_software_image_id': :'String', 'database_admin_password': :'String', 'source_encryption_key_location_details': :'OCI::Database::Models::EncryptionKeyLocationDetails', 'protection_mode': :'String', 'transport_type': :'String', 'creation_type': :'String', 'is_active_data_guard_enabled': :'BOOLEAN', 'peer_db_unique_name': :'String', 'peer_sid_prefix': :'String', 'display_name': :'String', 'availability_domain': :'String', 'shape': :'String', 'cpu_core_count': :'Integer', 'storage_volume_performance_mode': :'String', 'compute_model': :'String', 'compute_count': :'Integer', 'node_count': :'Integer', 'subnet_id': :'String', 'nsg_ids': :'Array<String>', 'backup_network_nsg_ids': :'Array<String>', 'hostname': :'String', 'domain': :'String', 'time_zone': :'String', 'fault_domains': :'Array<String>', 'private_ip': :'String', 'private_ip_v6': :'String', 'license_model': :'String', 'db_system_freeform_tags': :'Hash<String, String>', 'db_system_defined_tags': :'Hash<String, Hash<String, Object>>', 'db_system_security_attributes': :'Hash<String, Hash<String, Object>>', 'database_freeform_tags': :'Hash<String, String>', 'database_defined_tags': :'Hash<String, Hash<String, Object>>', 'data_collection_options': :'OCI::Database::Models::DataCollectionOptions', 'cluster_placement_group_id': :'String', 'subscription_id': :'String' # rubocop:enable Style/SymbolLiteral } end |
Instance Method Details
#==(other) ⇒ Object
Checks equality by comparing each attribute.
504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 |
# File 'lib/oci/database/models/create_data_guard_association_with_new_db_system_details.rb', line 504 def ==(other) return true if equal?(other) self.class == other.class && database_software_image_id == other.database_software_image_id && database_admin_password == other.database_admin_password && source_encryption_key_location_details == other.source_encryption_key_location_details && protection_mode == other.protection_mode && transport_type == other.transport_type && creation_type == other.creation_type && is_active_data_guard_enabled == other.is_active_data_guard_enabled && peer_db_unique_name == other.peer_db_unique_name && peer_sid_prefix == other.peer_sid_prefix && display_name == other.display_name && availability_domain == other.availability_domain && shape == other.shape && cpu_core_count == other.cpu_core_count && storage_volume_performance_mode == other.storage_volume_performance_mode && compute_model == other.compute_model && compute_count == other.compute_count && node_count == other.node_count && subnet_id == other.subnet_id && nsg_ids == other.nsg_ids && backup_network_nsg_ids == other.backup_network_nsg_ids && hostname == other.hostname && domain == other.domain && time_zone == other.time_zone && fault_domains == other.fault_domains && private_ip == other.private_ip && private_ip_v6 == other.private_ip_v6 && license_model == other.license_model && == other. && == other. && db_system_security_attributes == other.db_system_security_attributes && == other. && == other. && == other. && cluster_placement_group_id == other.cluster_placement_group_id && subscription_id == other.subscription_id end |
#build_from_hash(attributes) ⇒ Object
Builds the object from hash
568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 |
# File 'lib/oci/database/models/create_data_guard_association_with_new_db_system_details.rb', line 568 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
548 549 550 |
# File 'lib/oci/database/models/create_data_guard_association_with_new_db_system_details.rb', line 548 def eql?(other) self == other end |
#hash ⇒ Fixnum
Calculates hash code according to all attributes.
557 558 559 |
# File 'lib/oci/database/models/create_data_guard_association_with_new_db_system_details.rb', line 557 def hash [database_software_image_id, database_admin_password, source_encryption_key_location_details, protection_mode, transport_type, creation_type, is_active_data_guard_enabled, peer_db_unique_name, peer_sid_prefix, display_name, availability_domain, shape, cpu_core_count, storage_volume_performance_mode, compute_model, compute_count, node_count, subnet_id, nsg_ids, backup_network_nsg_ids, hostname, domain, time_zone, fault_domains, private_ip, private_ip_v6, license_model, , , db_system_security_attributes, , , , cluster_placement_group_id, subscription_id].hash end |
#to_hash ⇒ Hash
Returns the object in the form of hash
601 602 603 604 605 606 607 608 609 610 |
# File 'lib/oci/database/models/create_data_guard_association_with_new_db_system_details.rb', line 601 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_s ⇒ String
Returns the string representation of the object
595 596 597 |
# File 'lib/oci/database/models/create_data_guard_association_with_new_db_system_details.rb', line 595 def to_s to_hash.to_s end |