Class: OCI::Database::Models::CreateBaseccVmClusterDetails
- Inherits:
-
Object
- Object
- OCI::Database::Models::CreateBaseccVmClusterDetails
- Defined in:
- lib/oci/database/models/create_basecc_vm_cluster_details.rb
Overview
Details for creating a BaseDB-C@C VM cluster. Applies to Base Database Service on Cloud@Customer instances only.
Constant Summary collapse
- DATABASE_EDITION_ENUM =
[ DATABASE_EDITION_STANDARD_EDITION = 'STANDARD_EDITION'.freeze, DATABASE_EDITION_ENTERPRISE_EDITION = 'ENTERPRISE_EDITION'.freeze, DATABASE_EDITION_ENTERPRISE_EDITION_HIGH_PERFORMANCE = 'ENTERPRISE_EDITION_HIGH_PERFORMANCE'.freeze, DATABASE_EDITION_ENTERPRISE_EDITION_EXTREME_PERFORMANCE = 'ENTERPRISE_EDITION_EXTREME_PERFORMANCE'.freeze, DATABASE_EDITION_ENTERPRISE_EDITION_DEVELOPER = 'ENTERPRISE_EDITION_DEVELOPER'.freeze ].freeze
- LICENSE_MODEL_ENUM =
[ LICENSE_MODEL_LICENSE_INCLUDED = 'LICENSE_INCLUDED'.freeze, LICENSE_MODEL_BRING_YOUR_OWN_LICENSE = 'BRING_YOUR_OWN_LICENSE'.freeze ].freeze
- VM_CLUSTER_TYPE_ENUM =
[ VM_CLUSTER_TYPE_REGULAR = 'REGULAR'.freeze, VM_CLUSTER_TYPE_DEVELOPER = 'DEVELOPER'.freeze ].freeze
Instance Attribute Summary collapse
-
#additional_vm_storage_size_in_gbs ⇒ Integer
Total /u01 partition size (GB) for the Base Database Service on Cloud@Customer (BaseDB-C@C) VM cluster.
-
#base_infrastructure_id ⇒ String
[Required] The OCID of Oracle Data Cloud@Customer Infrastructure.
-
#base_vm_cluster_network_id ⇒ String
[Required] The OCID of BaseDB-C@C VM Cluster Network.
- #cloud_automation_update_details ⇒ OCI::Database::Models::CloudAutomationUpdateDetails
-
#compartment_id ⇒ String
[Required] The OCID of the compartment.
-
#cpu_core_count ⇒ Integer
[Required] Total CPU cores for the BaseDB C@C VM cluster.
- #data_collection_options ⇒ OCI::Database::Models::DataCollectionOptions
-
#data_storage_size_in_gbs ⇒ Integer
The DATA Disk Group size in GB for the Base Database Service on Cloud@Customer (BaseDB-C@C) VM cluster.
-
#database_edition ⇒ String
The Oracle Database Edition that applies to all the databases on the DB system.
-
#db_server_id ⇒ String
The OCID of the compute node of the Oracle Data Cloud@Customer Infrastructure, on which the VM should be launched.
-
#defined_tags ⇒ Hash<String, Hash<String, Object>>
Defined tags for this resource.
-
#description ⇒ String
The description for Base Database Service on Cloud@Customer (BaseDB-C@C) VM cluster.
-
#display_name ⇒ String
[Required] The user-friendly name for the Base Database Service on Cloud@Customer (BaseDB-C@C) VM cluster.
-
#freeform_tags ⇒ Hash<String, String>
Free-form tags for this resource.
-
#gi_version ⇒ String
[Required] A valid Oracle Grid Infrastructure (GI) software version.
-
#license_model ⇒ String
The Oracle license model that applies to the Base Database Service on Cloud@Customer (BaseDB-C@C) VM cluster.
-
#memory_size_in_gbs ⇒ Integer
The total memory to be allocated, in GBs, for the Base Database Service on Cloud@Customer (BaseDB-C@C) VM cluster.
-
#node_count ⇒ Integer
The number of nodes in the Base Database Service on Cloud@Customer (BaseDB-C@C) VM cluster.
-
#reco_storage_size_in_gbs ⇒ Integer
The RECO Disk Group size in GB for the Base Database Service on Cloud@Customer (BaseDB-C@C) VM cluster.
-
#ssh_public_keys ⇒ Array<String>
[Required] The public key portion of one or more key pairs used for SSH access to the VMs of Base Database Service on Cloud@Customer (BaseDB-C@C) VM cluster.
-
#time_zone ⇒ String
The time zone to use for the Base Database Service on Cloud@Customer (BaseDB-C@C) VM cluster.
-
#vm_cluster_type ⇒ String
The cluster type for the Base Database Service on Cloud@Customer (BaseDB-C@C) VM cluster.
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 = {}) ⇒ CreateBaseccVmClusterDetails
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 = {}) ⇒ CreateBaseccVmClusterDetails
Initializes the object
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 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 |
# File 'lib/oci/database/models/create_basecc_vm_cluster_details.rb', line 220 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.compartment_id = attributes[:'compartmentId'] if attributes[:'compartmentId'] raise 'You cannot provide both :compartmentId and :compartment_id' if attributes.key?(:'compartmentId') && attributes.key?(:'compartment_id') self.compartment_id = attributes[:'compartment_id'] if attributes[:'compartment_id'] self.database_edition = attributes[:'databaseEdition'] if attributes[:'databaseEdition'] raise 'You cannot provide both :databaseEdition and :database_edition' if attributes.key?(:'databaseEdition') && attributes.key?(:'database_edition') self.database_edition = attributes[:'database_edition'] if attributes[:'database_edition'] self.node_count = attributes[:'nodeCount'] if attributes[:'nodeCount'] self.node_count = 2 if node_count.nil? && !attributes.key?(:'nodeCount') # rubocop:disable Style/StringLiterals 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.node_count = 2 if node_count.nil? && !attributes.key?(:'nodeCount') && !attributes.key?(:'node_count') # rubocop:disable Style/StringLiterals self.db_server_id = attributes[:'dbServerId'] if attributes[:'dbServerId'] raise 'You cannot provide both :dbServerId and :db_server_id' if attributes.key?(:'dbServerId') && attributes.key?(:'db_server_id') self.db_server_id = attributes[:'db_server_id'] if attributes[:'db_server_id'] 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.base_infrastructure_id = attributes[:'baseInfrastructureId'] if attributes[:'baseInfrastructureId'] raise 'You cannot provide both :baseInfrastructureId and :base_infrastructure_id' if attributes.key?(:'baseInfrastructureId') && attributes.key?(:'base_infrastructure_id') self.base_infrastructure_id = attributes[:'base_infrastructure_id'] if attributes[:'base_infrastructure_id'] self.base_vm_cluster_network_id = attributes[:'baseVmClusterNetworkId'] if attributes[:'baseVmClusterNetworkId'] raise 'You cannot provide both :baseVmClusterNetworkId and :base_vm_cluster_network_id' if attributes.key?(:'baseVmClusterNetworkId') && attributes.key?(:'base_vm_cluster_network_id') self.base_vm_cluster_network_id = attributes[:'base_vm_cluster_network_id'] if attributes[:'base_vm_cluster_network_id'] self.gi_version = attributes[:'giVersion'] if attributes[:'giVersion'] raise 'You cannot provide both :giVersion and :gi_version' if attributes.key?(:'giVersion') && attributes.key?(:'gi_version') self.gi_version = attributes[:'gi_version'] if attributes[:'gi_version'] 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'] self.description = attributes[:'description'] if attributes[:'description'] 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.ssh_public_keys = attributes[:'sshPublicKeys'] if attributes[:'sshPublicKeys'] raise 'You cannot provide both :sshPublicKeys and :ssh_public_keys' if attributes.key?(:'sshPublicKeys') && attributes.key?(:'ssh_public_keys') self.ssh_public_keys = attributes[:'ssh_public_keys'] if attributes[:'ssh_public_keys'] 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.additional_vm_storage_size_in_gbs = attributes[:'additionalVmStorageSizeInGBs'] if attributes[:'additionalVmStorageSizeInGBs'] raise 'You cannot provide both :additionalVmStorageSizeInGBs and :additional_vm_storage_size_in_gbs' if attributes.key?(:'additionalVmStorageSizeInGBs') && attributes.key?(:'additional_vm_storage_size_in_gbs') self.additional_vm_storage_size_in_gbs = attributes[:'additional_vm_storage_size_in_gbs'] if attributes[:'additional_vm_storage_size_in_gbs'] self.data_storage_size_in_gbs = attributes[:'dataStorageSizeInGBs'] if attributes[:'dataStorageSizeInGBs'] raise 'You cannot provide both :dataStorageSizeInGBs and :data_storage_size_in_gbs' if attributes.key?(:'dataStorageSizeInGBs') && attributes.key?(:'data_storage_size_in_gbs') self.data_storage_size_in_gbs = attributes[:'data_storage_size_in_gbs'] if attributes[:'data_storage_size_in_gbs'] self.reco_storage_size_in_gbs = attributes[:'recoStorageSizeInGBs'] if attributes[:'recoStorageSizeInGBs'] raise 'You cannot provide both :recoStorageSizeInGBs and :reco_storage_size_in_gbs' if attributes.key?(:'recoStorageSizeInGBs') && attributes.key?(:'reco_storage_size_in_gbs') self.reco_storage_size_in_gbs = attributes[:'reco_storage_size_in_gbs'] if attributes[:'reco_storage_size_in_gbs'] self.memory_size_in_gbs = attributes[:'memorySizeInGBs'] if attributes[:'memorySizeInGBs'] raise 'You cannot provide both :memorySizeInGBs and :memory_size_in_gbs' if attributes.key?(:'memorySizeInGBs') && attributes.key?(:'memory_size_in_gbs') self.memory_size_in_gbs = attributes[:'memory_size_in_gbs'] if attributes[:'memory_size_in_gbs'] 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[:'freeformTags'] if attributes[:'freeformTags'] raise 'You cannot provide both :freeformTags and :freeform_tags' if attributes.key?(:'freeformTags') && attributes.key?(:'freeform_tags') self. = attributes[:'freeform_tags'] if attributes[:'freeform_tags'] self. = attributes[:'definedTags'] if attributes[:'definedTags'] raise 'You cannot provide both :definedTags and :defined_tags' if attributes.key?(:'definedTags') && attributes.key?(:'defined_tags') self. = attributes[:'defined_tags'] if attributes[:'defined_tags'] self.vm_cluster_type = attributes[:'vmClusterType'] if attributes[:'vmClusterType'] self.vm_cluster_type = "" if vm_cluster_type.nil? && !attributes.key?(:'vmClusterType') # rubocop:disable Style/StringLiterals raise 'You cannot provide both :vmClusterType and :vm_cluster_type' if attributes.key?(:'vmClusterType') && attributes.key?(:'vm_cluster_type') self.vm_cluster_type = attributes[:'vm_cluster_type'] if attributes[:'vm_cluster_type'] self.vm_cluster_type = "" if vm_cluster_type.nil? && !attributes.key?(:'vmClusterType') && !attributes.key?(:'vm_cluster_type') # rubocop:disable Style/StringLiterals self.cloud_automation_update_details = attributes[:'cloudAutomationUpdateDetails'] if attributes[:'cloudAutomationUpdateDetails'] raise 'You cannot provide both :cloudAutomationUpdateDetails and :cloud_automation_update_details' if attributes.key?(:'cloudAutomationUpdateDetails') && attributes.key?(:'cloud_automation_update_details') self.cloud_automation_update_details = attributes[:'cloud_automation_update_details'] if attributes[:'cloud_automation_update_details'] end |
Instance Attribute Details
#additional_vm_storage_size_in_gbs ⇒ Integer
Total /u01 partition size (GB) for the Base Database Service on Cloud@Customer (BaseDB-C@C) VM cluster.
89 90 91 |
# File 'lib/oci/database/models/create_basecc_vm_cluster_details.rb', line 89 def additional_vm_storage_size_in_gbs @additional_vm_storage_size_in_gbs end |
#base_infrastructure_id ⇒ String
[Required] The OCID of Oracle Data Cloud@Customer Infrastructure.
56 57 58 |
# File 'lib/oci/database/models/create_basecc_vm_cluster_details.rb', line 56 def base_infrastructure_id @base_infrastructure_id end |
#base_vm_cluster_network_id ⇒ String
[Required] The OCID of BaseDB-C@C VM Cluster Network.
60 61 62 |
# File 'lib/oci/database/models/create_basecc_vm_cluster_details.rb', line 60 def base_vm_cluster_network_id @base_vm_cluster_network_id end |
#cloud_automation_update_details ⇒ OCI::Database::Models::CloudAutomationUpdateDetails
130 131 132 |
# File 'lib/oci/database/models/create_basecc_vm_cluster_details.rb', line 130 def cloud_automation_update_details @cloud_automation_update_details end |
#compartment_id ⇒ String
[Required] The OCID of the compartment.
32 33 34 |
# File 'lib/oci/database/models/create_basecc_vm_cluster_details.rb', line 32 def compartment_id @compartment_id end |
#cpu_core_count ⇒ Integer
[Required] Total CPU cores for the BaseDB C@C VM cluster.
52 53 54 |
# File 'lib/oci/database/models/create_basecc_vm_cluster_details.rb', line 52 def cpu_core_count @cpu_core_count end |
#data_collection_options ⇒ OCI::Database::Models::DataCollectionOptions
67 68 69 |
# File 'lib/oci/database/models/create_basecc_vm_cluster_details.rb', line 67 def @data_collection_options end |
#data_storage_size_in_gbs ⇒ Integer
The DATA Disk Group size in GB for the Base Database Service on Cloud@Customer (BaseDB-C@C) VM cluster.
94 95 96 |
# File 'lib/oci/database/models/create_basecc_vm_cluster_details.rb', line 94 def data_storage_size_in_gbs @data_storage_size_in_gbs end |
#database_edition ⇒ String
The Oracle Database Edition that applies to all the databases on the DB system. Exadata DB systems and 2-node RAC DB systems require ENTERPRISE_EDITION_EXTREME_PERFORMANCE.
38 39 40 |
# File 'lib/oci/database/models/create_basecc_vm_cluster_details.rb', line 38 def database_edition @database_edition end |
#db_server_id ⇒ String
The OCID of the compute node of the Oracle Data Cloud@Customer Infrastructure, on which the VM should be launched. Note: Applies to single node Base Database Service on Cloud@Customer (BaseDB-C@C) VM clusters only
48 49 50 |
# File 'lib/oci/database/models/create_basecc_vm_cluster_details.rb', line 48 def db_server_id @db_server_id end |
#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.
123 124 125 |
# File 'lib/oci/database/models/create_basecc_vm_cluster_details.rb', line 123 def @defined_tags end |
#description ⇒ String
The description for Base Database Service on Cloud@Customer (BaseDB-C@C) VM cluster.
71 72 73 |
# File 'lib/oci/database/models/create_basecc_vm_cluster_details.rb', line 71 def description @description end |
#display_name ⇒ String
[Required] The user-friendly name for the Base Database Service on Cloud@Customer (BaseDB-C@C) VM cluster. The name does not need to be unique.
75 76 77 |
# File 'lib/oci/database/models/create_basecc_vm_cluster_details.rb', line 75 def display_name @display_name end |
#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\"}
117 118 119 |
# File 'lib/oci/database/models/create_basecc_vm_cluster_details.rb', line 117 def @freeform_tags end |
#gi_version ⇒ String
[Required] A valid Oracle Grid Infrastructure (GI) software version.
64 65 66 |
# File 'lib/oci/database/models/create_basecc_vm_cluster_details.rb', line 64 def gi_version @gi_version end |
#license_model ⇒ String
The Oracle license model that applies to the Base Database Service on Cloud@Customer (BaseDB-C@C) VM cluster. The default is LICENSE_INCLUDED.
109 110 111 |
# File 'lib/oci/database/models/create_basecc_vm_cluster_details.rb', line 109 def license_model @license_model end |
#memory_size_in_gbs ⇒ Integer
The total memory to be allocated, in GBs, for the Base Database Service on Cloud@Customer (BaseDB-C@C) VM cluster. The minimum is 11GB for every 4 ECPU.
104 105 106 |
# File 'lib/oci/database/models/create_basecc_vm_cluster_details.rb', line 104 def memory_size_in_gbs @memory_size_in_gbs end |
#node_count ⇒ Integer
The number of nodes in the Base Database Service on Cloud@Customer (BaseDB-C@C) VM cluster.
42 43 44 |
# File 'lib/oci/database/models/create_basecc_vm_cluster_details.rb', line 42 def node_count @node_count end |
#reco_storage_size_in_gbs ⇒ Integer
The RECO Disk Group size in GB for the Base Database Service on Cloud@Customer (BaseDB-C@C) VM cluster.
99 100 101 |
# File 'lib/oci/database/models/create_basecc_vm_cluster_details.rb', line 99 def reco_storage_size_in_gbs @reco_storage_size_in_gbs end |
#ssh_public_keys ⇒ Array<String>
[Required] The public key portion of one or more key pairs used for SSH access to the VMs of Base Database Service on Cloud@Customer (BaseDB-C@C) VM cluster.
79 80 81 |
# File 'lib/oci/database/models/create_basecc_vm_cluster_details.rb', line 79 def ssh_public_keys @ssh_public_keys end |
#time_zone ⇒ String
The time zone to use for the Base Database Service on Cloud@Customer (BaseDB-C@C) VM cluster. For details, see Time Zones.
84 85 86 |
# File 'lib/oci/database/models/create_basecc_vm_cluster_details.rb', line 84 def time_zone @time_zone end |
#vm_cluster_type ⇒ String
The cluster type for the Base Database Service on Cloud@Customer (BaseDB-C@C) VM cluster.
127 128 129 |
# File 'lib/oci/database/models/create_basecc_vm_cluster_details.rb', line 127 def vm_cluster_type @vm_cluster_type end |
Class Method Details
.attribute_map ⇒ Object
Attribute mapping from ruby-style variable name to JSON key.
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/database/models/create_basecc_vm_cluster_details.rb', line 133 def self.attribute_map { # rubocop:disable Style/SymbolLiteral 'compartment_id': :'compartmentId', 'database_edition': :'databaseEdition', 'node_count': :'nodeCount', 'db_server_id': :'dbServerId', 'cpu_core_count': :'cpuCoreCount', 'base_infrastructure_id': :'baseInfrastructureId', 'base_vm_cluster_network_id': :'baseVmClusterNetworkId', 'gi_version': :'giVersion', 'data_collection_options': :'dataCollectionOptions', 'description': :'description', 'display_name': :'displayName', 'ssh_public_keys': :'sshPublicKeys', 'time_zone': :'timeZone', 'additional_vm_storage_size_in_gbs': :'additionalVmStorageSizeInGBs', 'data_storage_size_in_gbs': :'dataStorageSizeInGBs', 'reco_storage_size_in_gbs': :'recoStorageSizeInGBs', 'memory_size_in_gbs': :'memorySizeInGBs', 'license_model': :'licenseModel', 'freeform_tags': :'freeformTags', 'defined_tags': :'definedTags', 'vm_cluster_type': :'vmClusterType', 'cloud_automation_update_details': :'cloudAutomationUpdateDetails' # 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 |
# File 'lib/oci/database/models/create_basecc_vm_cluster_details.rb', line 163 def self.swagger_types { # rubocop:disable Style/SymbolLiteral 'compartment_id': :'String', 'database_edition': :'String', 'node_count': :'Integer', 'db_server_id': :'String', 'cpu_core_count': :'Integer', 'base_infrastructure_id': :'String', 'base_vm_cluster_network_id': :'String', 'gi_version': :'String', 'data_collection_options': :'OCI::Database::Models::DataCollectionOptions', 'description': :'String', 'display_name': :'String', 'ssh_public_keys': :'Array<String>', 'time_zone': :'String', 'additional_vm_storage_size_in_gbs': :'Integer', 'data_storage_size_in_gbs': :'Integer', 'reco_storage_size_in_gbs': :'Integer', 'memory_size_in_gbs': :'Integer', 'license_model': :'String', 'freeform_tags': :'Hash<String, String>', 'defined_tags': :'Hash<String, Hash<String, Object>>', 'vm_cluster_type': :'String', 'cloud_automation_update_details': :'OCI::Database::Models::CloudAutomationUpdateDetails' # rubocop:enable Style/SymbolLiteral } end |
Instance Method Details
#==(other) ⇒ Object
Checks equality by comparing each attribute.
390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 |
# File 'lib/oci/database/models/create_basecc_vm_cluster_details.rb', line 390 def ==(other) return true if equal?(other) self.class == other.class && compartment_id == other.compartment_id && database_edition == other.database_edition && node_count == other.node_count && db_server_id == other.db_server_id && cpu_core_count == other.cpu_core_count && base_infrastructure_id == other.base_infrastructure_id && base_vm_cluster_network_id == other.base_vm_cluster_network_id && gi_version == other.gi_version && == other. && description == other.description && display_name == other.display_name && ssh_public_keys == other.ssh_public_keys && time_zone == other.time_zone && additional_vm_storage_size_in_gbs == other.additional_vm_storage_size_in_gbs && data_storage_size_in_gbs == other.data_storage_size_in_gbs && reco_storage_size_in_gbs == other.reco_storage_size_in_gbs && memory_size_in_gbs == other.memory_size_in_gbs && license_model == other.license_model && == other. && == other. && vm_cluster_type == other.vm_cluster_type && cloud_automation_update_details == other.cloud_automation_update_details end |
#build_from_hash(attributes) ⇒ Object
Builds the object from hash
441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 |
# File 'lib/oci/database/models/create_basecc_vm_cluster_details.rb', line 441 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
421 422 423 |
# File 'lib/oci/database/models/create_basecc_vm_cluster_details.rb', line 421 def eql?(other) self == other end |
#hash ⇒ Fixnum
Calculates hash code according to all attributes.
430 431 432 |
# File 'lib/oci/database/models/create_basecc_vm_cluster_details.rb', line 430 def hash [compartment_id, database_edition, node_count, db_server_id, cpu_core_count, base_infrastructure_id, base_vm_cluster_network_id, gi_version, , description, display_name, ssh_public_keys, time_zone, additional_vm_storage_size_in_gbs, data_storage_size_in_gbs, reco_storage_size_in_gbs, memory_size_in_gbs, license_model, , , vm_cluster_type, cloud_automation_update_details].hash end |
#to_hash ⇒ Hash
Returns the object in the form of hash
474 475 476 477 478 479 480 481 482 483 |
# File 'lib/oci/database/models/create_basecc_vm_cluster_details.rb', line 474 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
468 469 470 |
# File 'lib/oci/database/models/create_basecc_vm_cluster_details.rb', line 468 def to_s to_hash.to_s end |