Class: OCI::GloballyDistributedDatabase::Models::DedicatedShardedDatabase
- Inherits:
-
ShardedDatabase
- Object
- ShardedDatabase
- OCI::GloballyDistributedDatabase::Models::DedicatedShardedDatabase
- Defined in:
- lib/oci/globally_distributed_database/models/dedicated_sharded_database.rb
Overview
Details of ATP-D based sharded database.
Constant Summary collapse
- REPLICATION_METHOD_ENUM =
[ REPLICATION_METHOD_RAFT = 'RAFT'.freeze, REPLICATION_METHOD_DG = 'DG'.freeze, REPLICATION_METHOD_UNKNOWN_ENUM_VALUE = 'UNKNOWN_ENUM_VALUE'.freeze ].freeze
- DB_WORKLOAD_ENUM =
[ DB_WORKLOAD_OLTP = 'OLTP'.freeze, DB_WORKLOAD_DW = 'DW'.freeze, DB_WORKLOAD_UNKNOWN_ENUM_VALUE = 'UNKNOWN_ENUM_VALUE'.freeze ].freeze
- SHARDING_METHOD_ENUM =
[ SHARDING_METHOD_USER = 'USER'.freeze, SHARDING_METHOD_SYSTEM = 'SYSTEM'.freeze, SHARDING_METHOD_UNKNOWN_ENUM_VALUE = 'UNKNOWN_ENUM_VALUE'.freeze ].freeze
Constants inherited from ShardedDatabase
ShardedDatabase::DB_DEPLOYMENT_TYPE_ENUM, ShardedDatabase::LIFECYCLE_STATE_ENUM
Instance Attribute Summary collapse
-
#catalog_details ⇒ Array<OCI::GloballyDistributedDatabase::Models::DedicatedCatalogDetails>
Details of ATP-D based catalogs.
-
#character_set ⇒ String
[Required] The character set for the database.
-
#chunks ⇒ Integer
The default number of unique chunks in a shardspace.
-
#cluster_certificate_common_name ⇒ String
The certificate common name used in all cloudAutonomousVmClusters for the sharded database topology.
- #connection_strings ⇒ OCI::GloballyDistributedDatabase::Models::ConnectionString
-
#db_version ⇒ String
[Required] Oracle Database version number.
-
#db_workload ⇒ String
Possible workload types.
-
#gsms ⇒ Array<OCI::GloballyDistributedDatabase::Models::GsmDetails>
Details of GSM instances for the sharded database.
-
#listener_port ⇒ Integer
The GSM listener port number.
-
#listener_port_tls ⇒ Integer
The TLS listener port number for sharded database.
-
#ncharacter_set ⇒ String
[Required] The national character set for the database.
-
#ons_port_local ⇒ Integer
Ons local port number.
-
#ons_port_remote ⇒ Integer
Ons remote port number.
-
#prefix ⇒ String
[Required] Unique prefix for the sharded database.
-
#private_endpoint ⇒ String
The OCID of private endpoint being used by the sharded database.
-
#replication_factor ⇒ Integer
The Replication factor for RAFT replication based sharded database.
-
#replication_method ⇒ String
The Replication method for sharded database.
-
#replication_unit ⇒ Integer
For RAFT replication based sharded database, the value should be atleast twice the number of shards.
-
#shard_details ⇒ Array<OCI::GloballyDistributedDatabase::Models::DedicatedShardDetails>
Details of ATP-D based shards.
-
#sharding_method ⇒ String
[Required] Sharding Method.
-
#time_zone ⇒ String
Timezone associated with the sharded database.
Attributes inherited from ShardedDatabase
#compartment_id, #db_deployment_type, #defined_tags, #display_name, #freeform_tags, #id, #lifecycle_state, #lifecycle_state_details, #system_tags, #time_created, #time_updated
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 = {}) ⇒ DedicatedShardedDatabase
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 ShardedDatabase
Constructor Details
#initialize(attributes = {}) ⇒ DedicatedShardedDatabase
Initializes the object
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 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 |
# File 'lib/oci/globally_distributed_database/models/dedicated_sharded_database.rb', line 239 def initialize(attributes = {}) return unless attributes.is_a?(Hash) attributes['dbDeploymentType'] = 'DEDICATED' super(attributes) # convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v } self.replication_method = attributes[:'replicationMethod'] if attributes[:'replicationMethod'] raise 'You cannot provide both :replicationMethod and :replication_method' if attributes.key?(:'replicationMethod') && attributes.key?(:'replication_method') self.replication_method = attributes[:'replication_method'] if attributes[:'replication_method'] self.replication_factor = attributes[:'replicationFactor'] if attributes[:'replicationFactor'] raise 'You cannot provide both :replicationFactor and :replication_factor' if attributes.key?(:'replicationFactor') && attributes.key?(:'replication_factor') self.replication_factor = attributes[:'replication_factor'] if attributes[:'replication_factor'] self.replication_unit = attributes[:'replicationUnit'] if attributes[:'replicationUnit'] raise 'You cannot provide both :replicationUnit and :replication_unit' if attributes.key?(:'replicationUnit') && attributes.key?(:'replication_unit') self.replication_unit = attributes[:'replication_unit'] if attributes[:'replication_unit'] self.cluster_certificate_common_name = attributes[:'clusterCertificateCommonName'] if attributes[:'clusterCertificateCommonName'] raise 'You cannot provide both :clusterCertificateCommonName and :cluster_certificate_common_name' if attributes.key?(:'clusterCertificateCommonName') && attributes.key?(:'cluster_certificate_common_name') self.cluster_certificate_common_name = attributes[:'cluster_certificate_common_name'] if attributes[:'cluster_certificate_common_name'] self.character_set = attributes[:'characterSet'] if attributes[:'characterSet'] raise 'You cannot provide both :characterSet and :character_set' if attributes.key?(:'characterSet') && attributes.key?(:'character_set') self.character_set = attributes[:'character_set'] if attributes[:'character_set'] self.ncharacter_set = attributes[:'ncharacterSet'] if attributes[:'ncharacterSet'] raise 'You cannot provide both :ncharacterSet and :ncharacter_set' if attributes.key?(:'ncharacterSet') && attributes.key?(:'ncharacter_set') self.ncharacter_set = attributes[:'ncharacter_set'] if attributes[:'ncharacter_set'] self.chunks = attributes[:'chunks'] if attributes[:'chunks'] self.db_workload = attributes[:'dbWorkload'] if attributes[:'dbWorkload'] raise 'You cannot provide both :dbWorkload and :db_workload' if attributes.key?(:'dbWorkload') && attributes.key?(:'db_workload') self.db_workload = attributes[:'db_workload'] if attributes[:'db_workload'] self.sharding_method = attributes[:'shardingMethod'] if attributes[:'shardingMethod'] raise 'You cannot provide both :shardingMethod and :sharding_method' if attributes.key?(:'shardingMethod') && attributes.key?(:'sharding_method') self.sharding_method = attributes[:'sharding_method'] if attributes[:'sharding_method'] self.db_version = attributes[:'dbVersion'] if attributes[:'dbVersion'] raise 'You cannot provide both :dbVersion and :db_version' if attributes.key?(:'dbVersion') && attributes.key?(:'db_version') self.db_version = attributes[:'db_version'] if attributes[:'db_version'] self.listener_port = attributes[:'listenerPort'] if attributes[:'listenerPort'] raise 'You cannot provide both :listenerPort and :listener_port' if attributes.key?(:'listenerPort') && attributes.key?(:'listener_port') self.listener_port = attributes[:'listener_port'] if attributes[:'listener_port'] self.listener_port_tls = attributes[:'listenerPortTls'] if attributes[:'listenerPortTls'] raise 'You cannot provide both :listenerPortTls and :listener_port_tls' if attributes.key?(:'listenerPortTls') && attributes.key?(:'listener_port_tls') self.listener_port_tls = attributes[:'listener_port_tls'] if attributes[:'listener_port_tls'] self.ons_port_local = attributes[:'onsPortLocal'] if attributes[:'onsPortLocal'] raise 'You cannot provide both :onsPortLocal and :ons_port_local' if attributes.key?(:'onsPortLocal') && attributes.key?(:'ons_port_local') self.ons_port_local = attributes[:'ons_port_local'] if attributes[:'ons_port_local'] self.ons_port_remote = attributes[:'onsPortRemote'] if attributes[:'onsPortRemote'] raise 'You cannot provide both :onsPortRemote and :ons_port_remote' if attributes.key?(:'onsPortRemote') && attributes.key?(:'ons_port_remote') self.ons_port_remote = attributes[:'ons_port_remote'] if attributes[:'ons_port_remote'] self.prefix = attributes[:'prefix'] if attributes[:'prefix'] self.private_endpoint = attributes[:'privateEndpoint'] if attributes[:'privateEndpoint'] raise 'You cannot provide both :privateEndpoint and :private_endpoint' if attributes.key?(:'privateEndpoint') && attributes.key?(:'private_endpoint') self.private_endpoint = attributes[:'private_endpoint'] if attributes[:'private_endpoint'] self.connection_strings = attributes[:'connectionStrings'] if attributes[:'connectionStrings'] raise 'You cannot provide both :connectionStrings and :connection_strings' if attributes.key?(:'connectionStrings') && attributes.key?(:'connection_strings') self.connection_strings = attributes[:'connection_strings'] if attributes[:'connection_strings'] 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.gsms = attributes[:'gsms'] if attributes[:'gsms'] self.shard_details = attributes[:'shardDetails'] if attributes[:'shardDetails'] raise 'You cannot provide both :shardDetails and :shard_details' if attributes.key?(:'shardDetails') && attributes.key?(:'shard_details') self.shard_details = attributes[:'shard_details'] if attributes[:'shard_details'] self.catalog_details = attributes[:'catalogDetails'] if attributes[:'catalogDetails'] raise 'You cannot provide both :catalogDetails and :catalog_details' if attributes.key?(:'catalogDetails') && attributes.key?(:'catalog_details') self.catalog_details = attributes[:'catalog_details'] if attributes[:'catalog_details'] end |
Instance Attribute Details
#catalog_details ⇒ Array<OCI::GloballyDistributedDatabase::Models::DedicatedCatalogDetails>
Details of ATP-D based catalogs.
120 121 122 |
# File 'lib/oci/globally_distributed_database/models/dedicated_sharded_database.rb', line 120 def catalog_details @catalog_details end |
#character_set ⇒ String
[Required] The character set for the database.
55 56 57 |
# File 'lib/oci/globally_distributed_database/models/dedicated_sharded_database.rb', line 55 def character_set @character_set end |
#chunks ⇒ Integer
The default number of unique chunks in a shardspace. The value of chunks must be greater than 2 times the size of the largest shardgroup in any shardspace.
65 66 67 |
# File 'lib/oci/globally_distributed_database/models/dedicated_sharded_database.rb', line 65 def chunks @chunks end |
#cluster_certificate_common_name ⇒ String
The certificate common name used in all cloudAutonomousVmClusters for the sharded database topology. Eg. Production. All the clusters used in one sharded database topology shall have same CABundle setup. Valid characterset for clusterCertificateCommonName include uppercase or lowercase letters, numbers, hyphens, underscores, and period.
51 52 53 |
# File 'lib/oci/globally_distributed_database/models/dedicated_sharded_database.rb', line 51 def cluster_certificate_common_name @cluster_certificate_common_name end |
#connection_strings ⇒ OCI::GloballyDistributedDatabase::Models::ConnectionString
104 105 106 |
# File 'lib/oci/globally_distributed_database/models/dedicated_sharded_database.rb', line 104 def connection_strings @connection_strings end |
#db_version ⇒ String
[Required] Oracle Database version number.
77 78 79 |
# File 'lib/oci/globally_distributed_database/models/dedicated_sharded_database.rb', line 77 def db_version @db_version end |
#db_workload ⇒ String
Possible workload types.
69 70 71 |
# File 'lib/oci/globally_distributed_database/models/dedicated_sharded_database.rb', line 69 def db_workload @db_workload end |
#gsms ⇒ Array<OCI::GloballyDistributedDatabase::Models::GsmDetails>
Details of GSM instances for the sharded database.
112 113 114 |
# File 'lib/oci/globally_distributed_database/models/dedicated_sharded_database.rb', line 112 def gsms @gsms end |
#listener_port ⇒ Integer
The GSM listener port number.
81 82 83 |
# File 'lib/oci/globally_distributed_database/models/dedicated_sharded_database.rb', line 81 def listener_port @listener_port end |
#listener_port_tls ⇒ Integer
The TLS listener port number for sharded database.
85 86 87 |
# File 'lib/oci/globally_distributed_database/models/dedicated_sharded_database.rb', line 85 def listener_port_tls @listener_port_tls end |
#ncharacter_set ⇒ String
[Required] The national character set for the database.
59 60 61 |
# File 'lib/oci/globally_distributed_database/models/dedicated_sharded_database.rb', line 59 def ncharacter_set @ncharacter_set end |
#ons_port_local ⇒ Integer
Ons local port number.
89 90 91 |
# File 'lib/oci/globally_distributed_database/models/dedicated_sharded_database.rb', line 89 def ons_port_local @ons_port_local end |
#ons_port_remote ⇒ Integer
Ons remote port number.
93 94 95 |
# File 'lib/oci/globally_distributed_database/models/dedicated_sharded_database.rb', line 93 def ons_port_remote @ons_port_remote end |
#prefix ⇒ String
[Required] Unique prefix for the sharded database.
97 98 99 |
# File 'lib/oci/globally_distributed_database/models/dedicated_sharded_database.rb', line 97 def prefix @prefix end |
#private_endpoint ⇒ String
The OCID of private endpoint being used by the sharded database.
101 102 103 |
# File 'lib/oci/globally_distributed_database/models/dedicated_sharded_database.rb', line 101 def private_endpoint @private_endpoint end |
#replication_factor ⇒ Integer
The Replication factor for RAFT replication based sharded database. Currently supported values are 3, 5 and 7.
40 41 42 |
# File 'lib/oci/globally_distributed_database/models/dedicated_sharded_database.rb', line 40 def replication_factor @replication_factor end |
#replication_method ⇒ String
The Replication method for sharded database. Use RAFT for Raft replication, and DG for DataGuard. If replicationMethod is not provided, it defaults to DG.
35 36 37 |
# File 'lib/oci/globally_distributed_database/models/dedicated_sharded_database.rb', line 35 def replication_method @replication_method end |
#replication_unit ⇒ Integer
For RAFT replication based sharded database, the value should be atleast twice the number of shards.
44 45 46 |
# File 'lib/oci/globally_distributed_database/models/dedicated_sharded_database.rb', line 44 def replication_unit @replication_unit end |
#shard_details ⇒ Array<OCI::GloballyDistributedDatabase::Models::DedicatedShardDetails>
Details of ATP-D based shards.
116 117 118 |
# File 'lib/oci/globally_distributed_database/models/dedicated_sharded_database.rb', line 116 def shard_details @shard_details end |
#sharding_method ⇒ String
[Required] Sharding Method.
73 74 75 |
# File 'lib/oci/globally_distributed_database/models/dedicated_sharded_database.rb', line 73 def sharding_method @sharding_method end |
#time_zone ⇒ String
Timezone associated with the sharded database.
108 109 110 |
# File 'lib/oci/globally_distributed_database/models/dedicated_sharded_database.rb', line 108 def time_zone @time_zone end |
Class Method Details
.attribute_map ⇒ Object
Attribute mapping from ruby-style variable name to JSON key.
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 |
# File 'lib/oci/globally_distributed_database/models/dedicated_sharded_database.rb', line 123 def self.attribute_map { # rubocop:disable Style/SymbolLiteral 'id': :'id', 'compartment_id': :'compartmentId', 'db_deployment_type': :'dbDeploymentType', 'display_name': :'displayName', 'time_created': :'timeCreated', 'time_updated': :'timeUpdated', 'lifecycle_state': :'lifecycleState', 'lifecycle_state_details': :'lifecycleStateDetails', 'freeform_tags': :'freeformTags', 'defined_tags': :'definedTags', 'system_tags': :'systemTags', 'replication_method': :'replicationMethod', 'replication_factor': :'replicationFactor', 'replication_unit': :'replicationUnit', 'cluster_certificate_common_name': :'clusterCertificateCommonName', 'character_set': :'characterSet', 'ncharacter_set': :'ncharacterSet', 'chunks': :'chunks', 'db_workload': :'dbWorkload', 'sharding_method': :'shardingMethod', 'db_version': :'dbVersion', 'listener_port': :'listenerPort', 'listener_port_tls': :'listenerPortTls', 'ons_port_local': :'onsPortLocal', 'ons_port_remote': :'onsPortRemote', 'prefix': :'prefix', 'private_endpoint': :'privateEndpoint', 'connection_strings': :'connectionStrings', 'time_zone': :'timeZone', 'gsms': :'gsms', 'shard_details': :'shardDetails', 'catalog_details': :'catalogDetails' # rubocop:enable Style/SymbolLiteral } end |
.swagger_types ⇒ Object
Attribute type mapping.
163 164 165 166 167 168 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 |
# File 'lib/oci/globally_distributed_database/models/dedicated_sharded_database.rb', line 163 def self.swagger_types { # rubocop:disable Style/SymbolLiteral 'id': :'String', 'compartment_id': :'String', 'db_deployment_type': :'String', 'display_name': :'String', 'time_created': :'DateTime', 'time_updated': :'DateTime', 'lifecycle_state': :'String', 'lifecycle_state_details': :'String', 'freeform_tags': :'Hash<String, String>', 'defined_tags': :'Hash<String, Hash<String, Object>>', 'system_tags': :'Hash<String, Hash<String, Object>>', 'replication_method': :'String', 'replication_factor': :'Integer', 'replication_unit': :'Integer', 'cluster_certificate_common_name': :'String', 'character_set': :'String', 'ncharacter_set': :'String', 'chunks': :'Integer', 'db_workload': :'String', 'sharding_method': :'String', 'db_version': :'String', 'listener_port': :'Integer', 'listener_port_tls': :'Integer', 'ons_port_local': :'Integer', 'ons_port_remote': :'Integer', 'prefix': :'String', 'private_endpoint': :'String', 'connection_strings': :'OCI::GloballyDistributedDatabase::Models::ConnectionString', 'time_zone': :'String', 'gsms': :'Array<OCI::GloballyDistributedDatabase::Models::GsmDetails>', 'shard_details': :'Array<OCI::GloballyDistributedDatabase::Models::DedicatedShardDetails>', 'catalog_details': :'Array<OCI::GloballyDistributedDatabase::Models::DedicatedCatalogDetails>' # rubocop:enable Style/SymbolLiteral } end |
Instance Method Details
#==(other) ⇒ Object
Checks equality by comparing each attribute.
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 |
# File 'lib/oci/globally_distributed_database/models/dedicated_sharded_database.rb', line 410 def ==(other) return true if equal?(other) self.class == other.class && id == other.id && compartment_id == other.compartment_id && db_deployment_type == other.db_deployment_type && display_name == other.display_name && time_created == other.time_created && time_updated == other.time_updated && lifecycle_state == other.lifecycle_state && lifecycle_state_details == other.lifecycle_state_details && == other. && == other. && == other. && replication_method == other.replication_method && replication_factor == other.replication_factor && replication_unit == other.replication_unit && cluster_certificate_common_name == other.cluster_certificate_common_name && character_set == other.character_set && ncharacter_set == other.ncharacter_set && chunks == other.chunks && db_workload == other.db_workload && sharding_method == other.sharding_method && db_version == other.db_version && listener_port == other.listener_port && listener_port_tls == other.listener_port_tls && ons_port_local == other.ons_port_local && ons_port_remote == other.ons_port_remote && prefix == other.prefix && private_endpoint == other.private_endpoint && connection_strings == other.connection_strings && time_zone == other.time_zone && gsms == other.gsms && shard_details == other.shard_details && catalog_details == other.catalog_details end |
#build_from_hash(attributes) ⇒ Object
Builds the object from hash
471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 |
# File 'lib/oci/globally_distributed_database/models/dedicated_sharded_database.rb', line 471 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
451 452 453 |
# File 'lib/oci/globally_distributed_database/models/dedicated_sharded_database.rb', line 451 def eql?(other) self == other end |
#hash ⇒ Fixnum
Calculates hash code according to all attributes.
460 461 462 |
# File 'lib/oci/globally_distributed_database/models/dedicated_sharded_database.rb', line 460 def hash [id, compartment_id, db_deployment_type, display_name, time_created, time_updated, lifecycle_state, lifecycle_state_details, , , , replication_method, replication_factor, replication_unit, cluster_certificate_common_name, character_set, ncharacter_set, chunks, db_workload, sharding_method, db_version, listener_port, listener_port_tls, ons_port_local, ons_port_remote, prefix, private_endpoint, connection_strings, time_zone, gsms, shard_details, catalog_details].hash end |
#to_hash ⇒ Hash
Returns the object in the form of hash
504 505 506 507 508 509 510 511 512 513 |
# File 'lib/oci/globally_distributed_database/models/dedicated_sharded_database.rb', line 504 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
498 499 500 |
# File 'lib/oci/globally_distributed_database/models/dedicated_sharded_database.rb', line 498 def to_s to_hash.to_s end |