Class: OCI::GloballyDistributedDatabase::Models::DedicatedShardedDatabaseSummary
- Inherits:
-
ShardedDatabaseSummary
- Object
- ShardedDatabaseSummary
- OCI::GloballyDistributedDatabase::Models::DedicatedShardedDatabaseSummary
- Defined in:
- lib/oci/globally_distributed_database/models/dedicated_sharded_database_summary.rb
Overview
Summary of ATP-D based sharded database.
Constant Summary collapse
- 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 ShardedDatabaseSummary
ShardedDatabaseSummary::DB_DEPLOYMENT_TYPE_ENUM
Instance Attribute Summary collapse
-
#character_set ⇒ String
[Required] The character set for the sharded 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.
-
#db_version ⇒ String
Oracle Database version of the Autonomous Container Database.
-
#db_workload ⇒ String
[Required] Possible workload types.
-
#listener_port ⇒ Integer
The listener port number for the sharded database.
-
#listener_port_tls ⇒ Integer
The TLS listener port number for sharded database.
-
#ncharacter_set ⇒ String
[Required] The national character set for the sharded database.
-
#ons_port_local ⇒ Integer
Ons local port number.
-
#ons_port_remote ⇒ Integer
Ons remote port number.
-
#prefix ⇒ String
Name prefix for the sharded databases.
-
#sharding_method ⇒ String
[Required] Sharding Method.
-
#total_cpu_count ⇒ Integer
Total cpu count usage for shards and catalogs of the sharded database.
-
#total_data_storage_size_in_gbs ⇒ Float
The aggregarted value of dataStorageSizeInGbs for all shards and catalogs.
Attributes inherited from ShardedDatabaseSummary
#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 = {}) ⇒ DedicatedShardedDatabaseSummary
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 ShardedDatabaseSummary
Constructor Details
#initialize(attributes = {}) ⇒ DedicatedShardedDatabaseSummary
Initializes the object
182 183 184 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 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 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 |
# File 'lib/oci/globally_distributed_database/models/dedicated_sharded_database_summary.rb', line 182 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.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.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.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_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.total_cpu_count = attributes[:'totalCpuCount'] if attributes[:'totalCpuCount'] raise 'You cannot provide both :totalCpuCount and :total_cpu_count' if attributes.key?(:'totalCpuCount') && attributes.key?(:'total_cpu_count') self.total_cpu_count = attributes[:'total_cpu_count'] if attributes[:'total_cpu_count'] self.total_data_storage_size_in_gbs = attributes[:'totalDataStorageSizeInGbs'] if attributes[:'totalDataStorageSizeInGbs'] raise 'You cannot provide both :totalDataStorageSizeInGbs and :total_data_storage_size_in_gbs' if attributes.key?(:'totalDataStorageSizeInGbs') && attributes.key?(:'total_data_storage_size_in_gbs') self.total_data_storage_size_in_gbs = attributes[:'total_data_storage_size_in_gbs'] if attributes[:'total_data_storage_size_in_gbs'] end |
Instance Attribute Details
#character_set ⇒ String
[Required] The character set for the sharded database.
42 43 44 |
# File 'lib/oci/globally_distributed_database/models/dedicated_sharded_database_summary.rb', line 42 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.
52 53 54 |
# File 'lib/oci/globally_distributed_database/models/dedicated_sharded_database_summary.rb', line 52 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.
30 31 32 |
# File 'lib/oci/globally_distributed_database/models/dedicated_sharded_database_summary.rb', line 30 def cluster_certificate_common_name @cluster_certificate_common_name end |
#db_version ⇒ String
Oracle Database version of the Autonomous Container Database.
56 57 58 |
# File 'lib/oci/globally_distributed_database/models/dedicated_sharded_database_summary.rb', line 56 def db_version @db_version end |
#db_workload ⇒ String
[Required] Possible workload types.
34 35 36 |
# File 'lib/oci/globally_distributed_database/models/dedicated_sharded_database_summary.rb', line 34 def db_workload @db_workload end |
#listener_port ⇒ Integer
The listener port number for the sharded database.
60 61 62 |
# File 'lib/oci/globally_distributed_database/models/dedicated_sharded_database_summary.rb', line 60 def listener_port @listener_port end |
#listener_port_tls ⇒ Integer
The TLS listener port number for sharded database.
64 65 66 |
# File 'lib/oci/globally_distributed_database/models/dedicated_sharded_database_summary.rb', line 64 def listener_port_tls @listener_port_tls end |
#ncharacter_set ⇒ String
[Required] The national character set for the sharded database.
46 47 48 |
# File 'lib/oci/globally_distributed_database/models/dedicated_sharded_database_summary.rb', line 46 def ncharacter_set @ncharacter_set end |
#ons_port_local ⇒ Integer
Ons local port number.
68 69 70 |
# File 'lib/oci/globally_distributed_database/models/dedicated_sharded_database_summary.rb', line 68 def ons_port_local @ons_port_local end |
#ons_port_remote ⇒ Integer
Ons remote port number.
72 73 74 |
# File 'lib/oci/globally_distributed_database/models/dedicated_sharded_database_summary.rb', line 72 def ons_port_remote @ons_port_remote end |
#prefix ⇒ String
Name prefix for the sharded databases.
76 77 78 |
# File 'lib/oci/globally_distributed_database/models/dedicated_sharded_database_summary.rb', line 76 def prefix @prefix end |
#sharding_method ⇒ String
[Required] Sharding Method.
38 39 40 |
# File 'lib/oci/globally_distributed_database/models/dedicated_sharded_database_summary.rb', line 38 def sharding_method @sharding_method end |
#total_cpu_count ⇒ Integer
Total cpu count usage for shards and catalogs of the sharded database.
80 81 82 |
# File 'lib/oci/globally_distributed_database/models/dedicated_sharded_database_summary.rb', line 80 def total_cpu_count @total_cpu_count end |
#total_data_storage_size_in_gbs ⇒ Float
The aggregarted value of dataStorageSizeInGbs for all shards and catalogs.
84 85 86 |
# File 'lib/oci/globally_distributed_database/models/dedicated_sharded_database_summary.rb', line 84 def total_data_storage_size_in_gbs @total_data_storage_size_in_gbs end |
Class Method Details
.attribute_map ⇒ Object
Attribute mapping from ruby-style variable name to JSON key.
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 116 117 |
# File 'lib/oci/globally_distributed_database/models/dedicated_sharded_database_summary.rb', line 87 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', 'cluster_certificate_common_name': :'clusterCertificateCommonName', 'db_workload': :'dbWorkload', 'sharding_method': :'shardingMethod', 'character_set': :'characterSet', 'ncharacter_set': :'ncharacterSet', 'chunks': :'chunks', 'db_version': :'dbVersion', 'listener_port': :'listenerPort', 'listener_port_tls': :'listenerPortTls', 'ons_port_local': :'onsPortLocal', 'ons_port_remote': :'onsPortRemote', 'prefix': :'prefix', 'total_cpu_count': :'totalCpuCount', 'total_data_storage_size_in_gbs': :'totalDataStorageSizeInGbs' # rubocop:enable Style/SymbolLiteral } end |
.swagger_types ⇒ Object
Attribute type mapping.
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 |
# File 'lib/oci/globally_distributed_database/models/dedicated_sharded_database_summary.rb', line 120 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>>', 'cluster_certificate_common_name': :'String', 'db_workload': :'String', 'sharding_method': :'String', 'character_set': :'String', 'ncharacter_set': :'String', 'chunks': :'Integer', 'db_version': :'String', 'listener_port': :'Integer', 'listener_port_tls': :'Integer', 'ons_port_local': :'Integer', 'ons_port_remote': :'Integer', 'prefix': :'String', 'total_cpu_count': :'Integer', 'total_data_storage_size_in_gbs': :'Float' # rubocop:enable Style/SymbolLiteral } end |
Instance Method Details
#==(other) ⇒ Object
Checks equality by comparing each attribute.
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 |
# File 'lib/oci/globally_distributed_database/models/dedicated_sharded_database_summary.rb', line 302 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. && cluster_certificate_common_name == other.cluster_certificate_common_name && db_workload == other.db_workload && sharding_method == other.sharding_method && character_set == other.character_set && ncharacter_set == other.ncharacter_set && chunks == other.chunks && 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 && total_cpu_count == other.total_cpu_count && total_data_storage_size_in_gbs == other.total_data_storage_size_in_gbs end |
#build_from_hash(attributes) ⇒ Object
Builds the object from hash
356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 |
# File 'lib/oci/globally_distributed_database/models/dedicated_sharded_database_summary.rb', line 356 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
336 337 338 |
# File 'lib/oci/globally_distributed_database/models/dedicated_sharded_database_summary.rb', line 336 def eql?(other) self == other end |
#hash ⇒ Fixnum
Calculates hash code according to all attributes.
345 346 347 |
# File 'lib/oci/globally_distributed_database/models/dedicated_sharded_database_summary.rb', line 345 def hash [id, compartment_id, db_deployment_type, display_name, time_created, time_updated, lifecycle_state, lifecycle_state_details, , , , cluster_certificate_common_name, db_workload, sharding_method, character_set, ncharacter_set, chunks, db_version, listener_port, listener_port_tls, ons_port_local, ons_port_remote, prefix, total_cpu_count, total_data_storage_size_in_gbs].hash end |
#to_hash ⇒ Hash
Returns the object in the form of hash
389 390 391 392 393 394 395 396 397 398 |
# File 'lib/oci/globally_distributed_database/models/dedicated_sharded_database_summary.rb', line 389 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
383 384 385 |
# File 'lib/oci/globally_distributed_database/models/dedicated_sharded_database_summary.rb', line 383 def to_s to_hash.to_s end |