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
- 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.
-
#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.
-
#display_name ⇒ String
The user-friendly name of the DB system that will contain the the standby database.
-
#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.
-
#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.
-
#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, #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
251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 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 |
# File 'lib/oci/database/models/create_data_guard_association_with_new_db_system_details.rb', line 251 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.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.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.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. = 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'] 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".
31 32 33 |
# File 'lib/oci/database/models/create_data_guard_association_with_new_db_system_details.rb', line 31 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.
76 77 78 |
# File 'lib/oci/database/models/create_data_guard_association_with_new_db_system_details.rb', line 76 def backup_network_nsg_ids @backup_network_nsg_ids end |
#cpu_core_count ⇒ Integer
The number of CPU cores available for AMD-based virtual machine DB systems.
43 44 45 |
# File 'lib/oci/database/models/create_data_guard_association_with_new_db_system_details.rb', line 43 def cpu_core_count @cpu_core_count end |
#data_collection_options ⇒ OCI::Database::Models::DataCollectionOptions
147 148 149 |
# File 'lib/oci/database/models/create_data_guard_association_with_new_db_system_details.rb', line 147 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.
144 145 146 |
# File 'lib/oci/database/models/create_data_guard_association_with_new_db_system_details.rb', line 144 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\"}
138 139 140 |
# File 'lib/oci/database/models/create_data_guard_association_with_new_db_system_details.rb', line 138 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.
130 131 132 |
# File 'lib/oci/database/models/create_data_guard_association_with_new_db_system_details.rb', line 130 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\"}
124 125 126 |
# File 'lib/oci/database/models/create_data_guard_association_with_new_db_system_details.rb', line 124 def @db_system_freeform_tags 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.
27 28 29 |
# File 'lib/oci/database/models/create_data_guard_association_with_new_db_system_details.rb', line 27 def display_name @display_name 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
105 106 107 |
# File 'lib/oci/database/models/create_data_guard_association_with_new_db_system_details.rb', line 105 def fault_domains @fault_domains end |
#hostname ⇒ String
The hostname for the DB node.
80 81 82 |
# File 'lib/oci/database/models/create_data_guard_association_with_new_db_system_details.rb', line 80 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 Database Serverless.
116 117 118 |
# File 'lib/oci/database/models/create_data_guard_association_with_new_db_system_details.rb', line 116 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.
53 54 55 |
# File 'lib/oci/database/models/create_data_guard_association_with_new_db_system_details.rb', line 53 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 Databases with private access. The nsgIds list can be empty.
71 72 73 |
# File 'lib/oci/database/models/create_data_guard_association_with_new_db_system_details.rb', line 71 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.
111 112 113 |
# File 'lib/oci/database/models/create_data_guard_association_with_new_db_system_details.rb', line 111 def private_ip @private_ip 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.
39 40 41 |
# File 'lib/oci/database/models/create_data_guard_association_with_new_db_system_details.rb', line 39 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.
48 49 50 |
# File 'lib/oci/database/models/create_data_guard_association_with_new_db_system_details.rb', line 48 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.
64 65 66 |
# File 'lib/oci/database/models/create_data_guard_association_with_new_db_system_details.rb', line 64 def subnet_id @subnet_id end |
#time_zone ⇒ String
The time zone of the dataguard standby DB system. For details, see DB System Time Zones.
84 85 86 |
# File 'lib/oci/database/models/create_data_guard_association_with_new_db_system_details.rb', line 84 def time_zone @time_zone end |
Class Method Details
.attribute_map ⇒ Object
Attribute mapping from ruby-style variable name to JSON key.
150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 |
# File 'lib/oci/database/models/create_data_guard_association_with_new_db_system_details.rb', line 150 def self.attribute_map { # rubocop:disable Style/SymbolLiteral 'database_software_image_id': :'databaseSoftwareImageId', 'database_admin_password': :'databaseAdminPassword', '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', 'node_count': :'nodeCount', 'subnet_id': :'subnetId', 'nsg_ids': :'nsgIds', 'backup_network_nsg_ids': :'backupNetworkNsgIds', 'hostname': :'hostname', 'time_zone': :'timeZone', 'fault_domains': :'faultDomains', 'private_ip': :'privateIp', 'license_model': :'licenseModel', 'db_system_freeform_tags': :'dbSystemFreeformTags', 'db_system_defined_tags': :'dbSystemDefinedTags', 'database_freeform_tags': :'databaseFreeformTags', 'database_defined_tags': :'databaseDefinedTags', 'data_collection_options': :'dataCollectionOptions' # rubocop:enable Style/SymbolLiteral } end |
.swagger_types ⇒ Object
Attribute type mapping.
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 214 215 216 217 |
# File 'lib/oci/database/models/create_data_guard_association_with_new_db_system_details.rb', line 185 def self.swagger_types { # rubocop:disable Style/SymbolLiteral 'database_software_image_id': :'String', 'database_admin_password': :'String', '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', 'node_count': :'Integer', 'subnet_id': :'String', 'nsg_ids': :'Array<String>', 'backup_network_nsg_ids': :'Array<String>', 'hostname': :'String', 'time_zone': :'String', 'fault_domains': :'Array<String>', 'private_ip': :'String', 'license_model': :'String', 'db_system_freeform_tags': :'Hash<String, String>', 'db_system_defined_tags': :'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' # rubocop:enable Style/SymbolLiteral } end |
Instance Method Details
#==(other) ⇒ Object
Checks equality by comparing each attribute.
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 |
# File 'lib/oci/database/models/create_data_guard_association_with_new_db_system_details.rb', line 393 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 && 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 && 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 && time_zone == other.time_zone && fault_domains == other.fault_domains && private_ip == other.private_ip && license_model == other.license_model && == other. && == other. && == other. && == other. && == other. end |
#build_from_hash(attributes) ⇒ Object
Builds the object from hash
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 449 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
429 430 431 |
# File 'lib/oci/database/models/create_data_guard_association_with_new_db_system_details.rb', line 429 def eql?(other) self == other end |
#hash ⇒ Fixnum
Calculates hash code according to all attributes.
438 439 440 |
# File 'lib/oci/database/models/create_data_guard_association_with_new_db_system_details.rb', line 438 def hash [database_software_image_id, database_admin_password, 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, node_count, subnet_id, nsg_ids, backup_network_nsg_ids, hostname, time_zone, fault_domains, private_ip, license_model, , , , , ].hash end |
#to_hash ⇒ Hash
Returns the object in the form of hash
482 483 484 485 486 487 488 489 490 491 |
# File 'lib/oci/database/models/create_data_guard_association_with_new_db_system_details.rb', line 482 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
476 477 478 |
# File 'lib/oci/database/models/create_data_guard_association_with_new_db_system_details.rb', line 476 def to_s to_hash.to_s end |