Class: OCI::Database::Models::CreateAutonomousContainerDatabaseDataguardAssociationDetails
- Inherits:
-
Object
- Object
- OCI::Database::Models::CreateAutonomousContainerDatabaseDataguardAssociationDetails
- Defined in:
- lib/oci/database/models/create_autonomous_container_database_dataguard_association_details.rb
Overview
Create Autonomous Dataguard Association to an existing Autonomous Container Database
Constant Summary collapse
- PROTECTION_MODE_ENUM =
[ PROTECTION_MODE_MAXIMUM_AVAILABILITY = 'MAXIMUM_AVAILABILITY'.freeze, PROTECTION_MODE_MAXIMUM_PERFORMANCE = 'MAXIMUM_PERFORMANCE'.freeze ].freeze
Instance Attribute Summary collapse
-
#fast_start_fail_over_lag_limit_in_seconds ⇒ Integer
The lag time for my preference based on data loss tolerance in seconds.
-
#is_automatic_failover_enabled ⇒ BOOLEAN
Indicates whether Automatic Failover is enabled for Autonomous Container Database Dataguard Association.
- #peer_autonomous_container_database_backup_config ⇒ OCI::Database::Models::PeerAutonomousContainerDatabaseBackupConfig
-
#peer_autonomous_container_database_compartment_id ⇒ String
The OCID of the compartment where the standby Autonomous Container Database will be created.
-
#peer_autonomous_container_database_display_name ⇒ String
[Required] The display name for the peer Autonomous Container Database.
-
#peer_autonomous_vm_cluster_id ⇒ String
The OCID of the peer Autonomous Exadata VM Cluster.
-
#peer_cloud_autonomous_vm_cluster_id ⇒ String
The OCID of the peer cloud Autonomous Exadata VM Cluster.
-
#peer_db_unique_name ⇒ String
Specifies the
DB_UNIQUE_NAME
of the peer database to be created. -
#protection_mode ⇒ String
[Required] The protection mode of this Autonomous Data Guard association.
-
#standby_maintenance_buffer_in_days ⇒ Integer
The scheduling detail for the quarterly maintenance window of the standby Autonomous Container Database.
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 = {}) ⇒ CreateAutonomousContainerDatabaseDataguardAssociationDetails
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.
Constructor Details
#initialize(attributes = {}) ⇒ CreateAutonomousContainerDatabaseDataguardAssociationDetails
Initializes the object
117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 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_autonomous_container_database_dataguard_association_details.rb', line 117 def initialize(attributes = {}) return unless attributes.is_a?(Hash) # convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v } self.peer_autonomous_container_database_display_name = attributes[:'peerAutonomousContainerDatabaseDisplayName'] if attributes[:'peerAutonomousContainerDatabaseDisplayName'] raise 'You cannot provide both :peerAutonomousContainerDatabaseDisplayName and :peer_autonomous_container_database_display_name' if attributes.key?(:'peerAutonomousContainerDatabaseDisplayName') && attributes.key?(:'peer_autonomous_container_database_display_name') self.peer_autonomous_container_database_display_name = attributes[:'peer_autonomous_container_database_display_name'] if attributes[:'peer_autonomous_container_database_display_name'] self.peer_autonomous_container_database_compartment_id = attributes[:'peerAutonomousContainerDatabaseCompartmentId'] if attributes[:'peerAutonomousContainerDatabaseCompartmentId'] raise 'You cannot provide both :peerAutonomousContainerDatabaseCompartmentId and :peer_autonomous_container_database_compartment_id' if attributes.key?(:'peerAutonomousContainerDatabaseCompartmentId') && attributes.key?(:'peer_autonomous_container_database_compartment_id') self.peer_autonomous_container_database_compartment_id = attributes[:'peer_autonomous_container_database_compartment_id'] if attributes[:'peer_autonomous_container_database_compartment_id'] self.peer_cloud_autonomous_vm_cluster_id = attributes[:'peerCloudAutonomousVmClusterId'] if attributes[:'peerCloudAutonomousVmClusterId'] raise 'You cannot provide both :peerCloudAutonomousVmClusterId and :peer_cloud_autonomous_vm_cluster_id' if attributes.key?(:'peerCloudAutonomousVmClusterId') && attributes.key?(:'peer_cloud_autonomous_vm_cluster_id') self.peer_cloud_autonomous_vm_cluster_id = attributes[:'peer_cloud_autonomous_vm_cluster_id'] if attributes[:'peer_cloud_autonomous_vm_cluster_id'] self.peer_autonomous_vm_cluster_id = attributes[:'peerAutonomousVmClusterId'] if attributes[:'peerAutonomousVmClusterId'] raise 'You cannot provide both :peerAutonomousVmClusterId and :peer_autonomous_vm_cluster_id' if attributes.key?(:'peerAutonomousVmClusterId') && attributes.key?(:'peer_autonomous_vm_cluster_id') self.peer_autonomous_vm_cluster_id = attributes[:'peer_autonomous_vm_cluster_id'] if attributes[:'peer_autonomous_vm_cluster_id'] self.peer_db_unique_name = attributes[:'peerDbUniqueName'] if attributes[:'peerDbUniqueName'] raise 'You cannot provide both :peerDbUniqueName and :peer_db_unique_name' if attributes.key?(:'peerDbUniqueName') && attributes.key?(:'peer_db_unique_name') self.peer_db_unique_name = attributes[:'peer_db_unique_name'] if attributes[:'peer_db_unique_name'] self.peer_autonomous_container_database_backup_config = attributes[:'peerAutonomousContainerDatabaseBackupConfig'] if attributes[:'peerAutonomousContainerDatabaseBackupConfig'] raise 'You cannot provide both :peerAutonomousContainerDatabaseBackupConfig and :peer_autonomous_container_database_backup_config' if attributes.key?(:'peerAutonomousContainerDatabaseBackupConfig') && attributes.key?(:'peer_autonomous_container_database_backup_config') self.peer_autonomous_container_database_backup_config = attributes[:'peer_autonomous_container_database_backup_config'] if attributes[:'peer_autonomous_container_database_backup_config'] self.is_automatic_failover_enabled = attributes[:'isAutomaticFailoverEnabled'] unless attributes[:'isAutomaticFailoverEnabled'].nil? raise 'You cannot provide both :isAutomaticFailoverEnabled and :is_automatic_failover_enabled' if attributes.key?(:'isAutomaticFailoverEnabled') && attributes.key?(:'is_automatic_failover_enabled') self.is_automatic_failover_enabled = attributes[:'is_automatic_failover_enabled'] unless attributes[:'is_automatic_failover_enabled'].nil? self.protection_mode = attributes[:'protectionMode'] if attributes[:'protectionMode'] raise 'You cannot provide both :protectionMode and :protection_mode' if attributes.key?(:'protectionMode') && attributes.key?(:'protection_mode') self.protection_mode = attributes[:'protection_mode'] if attributes[:'protection_mode'] self.fast_start_fail_over_lag_limit_in_seconds = attributes[:'fastStartFailOverLagLimitInSeconds'] if attributes[:'fastStartFailOverLagLimitInSeconds'] raise 'You cannot provide both :fastStartFailOverLagLimitInSeconds and :fast_start_fail_over_lag_limit_in_seconds' if attributes.key?(:'fastStartFailOverLagLimitInSeconds') && attributes.key?(:'fast_start_fail_over_lag_limit_in_seconds') self.fast_start_fail_over_lag_limit_in_seconds = attributes[:'fast_start_fail_over_lag_limit_in_seconds'] if attributes[:'fast_start_fail_over_lag_limit_in_seconds'] self.standby_maintenance_buffer_in_days = attributes[:'standbyMaintenanceBufferInDays'] if attributes[:'standbyMaintenanceBufferInDays'] raise 'You cannot provide both :standbyMaintenanceBufferInDays and :standby_maintenance_buffer_in_days' if attributes.key?(:'standbyMaintenanceBufferInDays') && attributes.key?(:'standby_maintenance_buffer_in_days') self.standby_maintenance_buffer_in_days = attributes[:'standby_maintenance_buffer_in_days'] if attributes[:'standby_maintenance_buffer_in_days'] end |
Instance Attribute Details
#fast_start_fail_over_lag_limit_in_seconds ⇒ Integer
The lag time for my preference based on data loss tolerance in seconds.
57 58 59 |
# File 'lib/oci/database/models/create_autonomous_container_database_dataguard_association_details.rb', line 57 def fast_start_fail_over_lag_limit_in_seconds @fast_start_fail_over_lag_limit_in_seconds end |
#is_automatic_failover_enabled ⇒ BOOLEAN
Indicates whether Automatic Failover is enabled for Autonomous Container Database Dataguard Association
46 47 48 |
# File 'lib/oci/database/models/create_autonomous_container_database_dataguard_association_details.rb', line 46 def is_automatic_failover_enabled @is_automatic_failover_enabled end |
#peer_autonomous_container_database_backup_config ⇒ OCI::Database::Models::PeerAutonomousContainerDatabaseBackupConfig
41 42 43 |
# File 'lib/oci/database/models/create_autonomous_container_database_dataguard_association_details.rb', line 41 def peer_autonomous_container_database_backup_config @peer_autonomous_container_database_backup_config end |
#peer_autonomous_container_database_compartment_id ⇒ String
The OCID of the compartment where the standby Autonomous Container Database will be created.
25 26 27 |
# File 'lib/oci/database/models/create_autonomous_container_database_dataguard_association_details.rb', line 25 def peer_autonomous_container_database_compartment_id @peer_autonomous_container_database_compartment_id end |
#peer_autonomous_container_database_display_name ⇒ String
[Required] The display name for the peer Autonomous Container Database.
19 20 21 |
# File 'lib/oci/database/models/create_autonomous_container_database_dataguard_association_details.rb', line 19 def peer_autonomous_container_database_display_name @peer_autonomous_container_database_display_name end |
#peer_autonomous_vm_cluster_id ⇒ String
The OCID of the peer Autonomous Exadata VM Cluster.
33 34 35 |
# File 'lib/oci/database/models/create_autonomous_container_database_dataguard_association_details.rb', line 33 def peer_autonomous_vm_cluster_id @peer_autonomous_vm_cluster_id end |
#peer_cloud_autonomous_vm_cluster_id ⇒ String
The OCID of the peer cloud Autonomous Exadata VM Cluster.
29 30 31 |
# File 'lib/oci/database/models/create_autonomous_container_database_dataguard_association_details.rb', line 29 def peer_cloud_autonomous_vm_cluster_id @peer_cloud_autonomous_vm_cluster_id end |
#peer_db_unique_name ⇒ String
Specifies the DB_UNIQUE_NAME
of the peer database to be created.
38 39 40 |
# File 'lib/oci/database/models/create_autonomous_container_database_dataguard_association_details.rb', line 38 def peer_db_unique_name @peer_db_unique_name end |
#protection_mode ⇒ String
[Required] The protection mode of this Autonomous Data Guard association. For more information, see Oracle Data Guard Protection Modes in the Oracle Data Guard documentation.
53 54 55 |
# File 'lib/oci/database/models/create_autonomous_container_database_dataguard_association_details.rb', line 53 def protection_mode @protection_mode end |
#standby_maintenance_buffer_in_days ⇒ Integer
The scheduling detail for the quarterly maintenance window of the standby Autonomous Container Database. This value represents the number of days before scheduled maintenance of the primary database.
63 64 65 |
# File 'lib/oci/database/models/create_autonomous_container_database_dataguard_association_details.rb', line 63 def standby_maintenance_buffer_in_days @standby_maintenance_buffer_in_days end |
Class Method Details
.attribute_map ⇒ Object
Attribute mapping from ruby-style variable name to JSON key.
66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 |
# File 'lib/oci/database/models/create_autonomous_container_database_dataguard_association_details.rb', line 66 def self.attribute_map { # rubocop:disable Style/SymbolLiteral 'peer_autonomous_container_database_display_name': :'peerAutonomousContainerDatabaseDisplayName', 'peer_autonomous_container_database_compartment_id': :'peerAutonomousContainerDatabaseCompartmentId', 'peer_cloud_autonomous_vm_cluster_id': :'peerCloudAutonomousVmClusterId', 'peer_autonomous_vm_cluster_id': :'peerAutonomousVmClusterId', 'peer_db_unique_name': :'peerDbUniqueName', 'peer_autonomous_container_database_backup_config': :'peerAutonomousContainerDatabaseBackupConfig', 'is_automatic_failover_enabled': :'isAutomaticFailoverEnabled', 'protection_mode': :'protectionMode', 'fast_start_fail_over_lag_limit_in_seconds': :'fastStartFailOverLagLimitInSeconds', 'standby_maintenance_buffer_in_days': :'standbyMaintenanceBufferInDays' # rubocop:enable Style/SymbolLiteral } end |
.swagger_types ⇒ Object
Attribute type mapping.
84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 |
# File 'lib/oci/database/models/create_autonomous_container_database_dataguard_association_details.rb', line 84 def self.swagger_types { # rubocop:disable Style/SymbolLiteral 'peer_autonomous_container_database_display_name': :'String', 'peer_autonomous_container_database_compartment_id': :'String', 'peer_cloud_autonomous_vm_cluster_id': :'String', 'peer_autonomous_vm_cluster_id': :'String', 'peer_db_unique_name': :'String', 'peer_autonomous_container_database_backup_config': :'OCI::Database::Models::PeerAutonomousContainerDatabaseBackupConfig', 'is_automatic_failover_enabled': :'BOOLEAN', 'protection_mode': :'String', 'fast_start_fail_over_lag_limit_in_seconds': :'Integer', 'standby_maintenance_buffer_in_days': :'Integer' # rubocop:enable Style/SymbolLiteral } end |
Instance Method Details
#==(other) ⇒ Object
Checks equality by comparing each attribute.
199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 |
# File 'lib/oci/database/models/create_autonomous_container_database_dataguard_association_details.rb', line 199 def ==(other) return true if equal?(other) self.class == other.class && peer_autonomous_container_database_display_name == other.peer_autonomous_container_database_display_name && peer_autonomous_container_database_compartment_id == other.peer_autonomous_container_database_compartment_id && 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_db_unique_name == other.peer_db_unique_name && peer_autonomous_container_database_backup_config == other.peer_autonomous_container_database_backup_config && is_automatic_failover_enabled == other.is_automatic_failover_enabled && protection_mode == other.protection_mode && fast_start_fail_over_lag_limit_in_seconds == other.fast_start_fail_over_lag_limit_in_seconds && standby_maintenance_buffer_in_days == other.standby_maintenance_buffer_in_days end |
#build_from_hash(attributes) ⇒ Object
Builds the object from hash
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_dataguard_association_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
218 219 220 |
# File 'lib/oci/database/models/create_autonomous_container_database_dataguard_association_details.rb', line 218 def eql?(other) self == other end |
#hash ⇒ Fixnum
Calculates hash code according to all attributes.
227 228 229 |
# File 'lib/oci/database/models/create_autonomous_container_database_dataguard_association_details.rb', line 227 def hash [peer_autonomous_container_database_display_name, peer_autonomous_container_database_compartment_id, peer_cloud_autonomous_vm_cluster_id, peer_autonomous_vm_cluster_id, peer_db_unique_name, peer_autonomous_container_database_backup_config, is_automatic_failover_enabled, protection_mode, fast_start_fail_over_lag_limit_in_seconds, standby_maintenance_buffer_in_days].hash end |
#to_hash ⇒ 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_dataguard_association_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_s ⇒ String
Returns the string representation of the object
265 266 267 |
# File 'lib/oci/database/models/create_autonomous_container_database_dataguard_association_details.rb', line 265 def to_s to_hash.to_s end |