Class: OCI::DistributedDatabase::Models::CreateCatalogPeerWithExadbXsNewVaultAndClusterDetails
- Inherits:
-
Object
- Object
- OCI::DistributedDatabase::Models::CreateCatalogPeerWithExadbXsNewVaultAndClusterDetails
- Defined in:
- lib/oci/distributed_database/models/create_catalog_peer_with_exadb_xs_new_vault_and_cluster_details.rb
Overview
Details required for creation of ExaDbXs based catalog peer.
Constant Summary collapse
- PROTECTION_MODE_ENUM =
[ PROTECTION_MODE_MAXIMUM_AVAILABILITY = 'MAXIMUM_AVAILABILITY'.freeze, PROTECTION_MODE_MAXIMUM_PERFORMANCE = 'MAXIMUM_PERFORMANCE'.freeze, PROTECTION_MODE_MAXIMUM_PROTECTION = 'MAXIMUM_PROTECTION'.freeze ].freeze
- TRANSPORT_TYPE_ENUM =
[ TRANSPORT_TYPE_SYNC = 'SYNC'.freeze, TRANSPORT_TYPE_ASYNC = 'ASYNC'.freeze, TRANSPORT_TYPE_FASTSYNC = 'FASTSYNC'.freeze ].freeze
Instance Attribute Summary collapse
-
#availability_domain ⇒ String
[Required] The name of the availability domain that the distributed database shard will be located in.
-
#db_storage_vault_details ⇒ OCI::DistributedDatabase::Models::DbStorageVaultDetails
This attribute is required.
-
#protection_mode ⇒ String
The protectionMode for the catalog peer.
-
#transport_type ⇒ String
The redo transport type to use for this Data Guard association.
-
#vm_cluster_details ⇒ OCI::DistributedDatabase::Models::VmClusterDetails
This attribute is required.
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 = {}) ⇒ CreateCatalogPeerWithExadbXsNewVaultAndClusterDetails
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 = {}) ⇒ CreateCatalogPeerWithExadbXsNewVaultAndClusterDetails
Initializes the object
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 108 109 110 111 112 113 114 115 |
# File 'lib/oci/distributed_database/models/create_catalog_peer_with_exadb_xs_new_vault_and_cluster_details.rb', line 80 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.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.transport_type = attributes[:'transportType'] if attributes[:'transportType'] raise 'You cannot provide both :transportType and :transport_type' if attributes.key?(:'transportType') && attributes.key?(:'transport_type') self.transport_type = attributes[:'transport_type'] if attributes[:'transport_type'] 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.db_storage_vault_details = attributes[:'dbStorageVaultDetails'] if attributes[:'dbStorageVaultDetails'] raise 'You cannot provide both :dbStorageVaultDetails and :db_storage_vault_details' if attributes.key?(:'dbStorageVaultDetails') && attributes.key?(:'db_storage_vault_details') self.db_storage_vault_details = attributes[:'db_storage_vault_details'] if attributes[:'db_storage_vault_details'] self.vm_cluster_details = attributes[:'vmClusterDetails'] if attributes[:'vmClusterDetails'] raise 'You cannot provide both :vmClusterDetails and :vm_cluster_details' if attributes.key?(:'vmClusterDetails') && attributes.key?(:'vm_cluster_details') self.vm_cluster_details = attributes[:'vm_cluster_details'] if attributes[:'vm_cluster_details'] end |
Instance Attribute Details
#availability_domain ⇒ String
[Required] The name of the availability domain that the distributed database shard will be located in.
33 34 35 |
# File 'lib/oci/distributed_database/models/create_catalog_peer_with_exadb_xs_new_vault_and_cluster_details.rb', line 33 def availability_domain @availability_domain end |
#db_storage_vault_details ⇒ OCI::DistributedDatabase::Models::DbStorageVaultDetails
This attribute is required.
37 38 39 |
# File 'lib/oci/distributed_database/models/create_catalog_peer_with_exadb_xs_new_vault_and_cluster_details.rb', line 37 def db_storage_vault_details @db_storage_vault_details end |
#protection_mode ⇒ String
The protectionMode for the catalog peer.
25 26 27 |
# File 'lib/oci/distributed_database/models/create_catalog_peer_with_exadb_xs_new_vault_and_cluster_details.rb', line 25 def protection_mode @protection_mode end |
#transport_type ⇒ String
The redo transport type to use for this Data Guard association.
29 30 31 |
# File 'lib/oci/distributed_database/models/create_catalog_peer_with_exadb_xs_new_vault_and_cluster_details.rb', line 29 def transport_type @transport_type end |
#vm_cluster_details ⇒ OCI::DistributedDatabase::Models::VmClusterDetails
This attribute is required.
41 42 43 |
# File 'lib/oci/distributed_database/models/create_catalog_peer_with_exadb_xs_new_vault_and_cluster_details.rb', line 41 def vm_cluster_details @vm_cluster_details end |
Class Method Details
.attribute_map ⇒ Object
Attribute mapping from ruby-style variable name to JSON key.
44 45 46 47 48 49 50 51 52 53 54 |
# File 'lib/oci/distributed_database/models/create_catalog_peer_with_exadb_xs_new_vault_and_cluster_details.rb', line 44 def self.attribute_map { # rubocop:disable Style/SymbolLiteral 'protection_mode': :'protectionMode', 'transport_type': :'transportType', 'availability_domain': :'availabilityDomain', 'db_storage_vault_details': :'dbStorageVaultDetails', 'vm_cluster_details': :'vmClusterDetails' # rubocop:enable Style/SymbolLiteral } end |
.swagger_types ⇒ Object
Attribute type mapping.
57 58 59 60 61 62 63 64 65 66 67 |
# File 'lib/oci/distributed_database/models/create_catalog_peer_with_exadb_xs_new_vault_and_cluster_details.rb', line 57 def self.swagger_types { # rubocop:disable Style/SymbolLiteral 'protection_mode': :'String', 'transport_type': :'String', 'availability_domain': :'String', 'db_storage_vault_details': :'OCI::DistributedDatabase::Models::DbStorageVaultDetails', 'vm_cluster_details': :'OCI::DistributedDatabase::Models::VmClusterDetails' # rubocop:enable Style/SymbolLiteral } end |
Instance Method Details
#==(other) ⇒ Object
Checks equality by comparing each attribute.
140 141 142 143 144 145 146 147 148 149 |
# File 'lib/oci/distributed_database/models/create_catalog_peer_with_exadb_xs_new_vault_and_cluster_details.rb', line 140 def ==(other) return true if equal?(other) self.class == other.class && protection_mode == other.protection_mode && transport_type == other.transport_type && availability_domain == other.availability_domain && db_storage_vault_details == other.db_storage_vault_details && vm_cluster_details == other.vm_cluster_details end |
#build_from_hash(attributes) ⇒ Object
Builds the object from hash
174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 |
# File 'lib/oci/distributed_database/models/create_catalog_peer_with_exadb_xs_new_vault_and_cluster_details.rb', line 174 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
154 155 156 |
# File 'lib/oci/distributed_database/models/create_catalog_peer_with_exadb_xs_new_vault_and_cluster_details.rb', line 154 def eql?(other) self == other end |
#hash ⇒ Fixnum
Calculates hash code according to all attributes.
163 164 165 |
# File 'lib/oci/distributed_database/models/create_catalog_peer_with_exadb_xs_new_vault_and_cluster_details.rb', line 163 def hash [protection_mode, transport_type, availability_domain, db_storage_vault_details, vm_cluster_details].hash end |
#to_hash ⇒ Hash
Returns the object in the form of hash
207 208 209 210 211 212 213 214 215 216 |
# File 'lib/oci/distributed_database/models/create_catalog_peer_with_exadb_xs_new_vault_and_cluster_details.rb', line 207 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
201 202 203 |
# File 'lib/oci/distributed_database/models/create_catalog_peer_with_exadb_xs_new_vault_and_cluster_details.rb', line 201 def to_s to_hash.to_s end |