Class: OCI::Database::Models::UpdateExadbVmClusterDetails
- Inherits:
-
Object
- Object
- OCI::Database::Models::UpdateExadbVmClusterDetails
- Defined in:
- lib/oci/database/models/update_exadb_vm_cluster_details.rb
Overview
Details for updating the Exadata VM cluster on Exascale Infrastructure. Applies to Exadata Database Service on Exascale Infrastructure only.
Constant Summary collapse
- LICENSE_MODEL_ENUM =
[ LICENSE_MODEL_LICENSE_INCLUDED = 'LICENSE_INCLUDED'.freeze, LICENSE_MODEL_BRING_YOUR_OWN_LICENSE = 'BRING_YOUR_OWN_LICENSE'.freeze ].freeze
- UPDATE_ACTION_ENUM =
[ UPDATE_ACTION_ROLLING_APPLY = 'ROLLING_APPLY'.freeze, UPDATE_ACTION_NON_ROLLING_APPLY = 'NON_ROLLING_APPLY'.freeze, UPDATE_ACTION_PRECHECK = 'PRECHECK'.freeze, UPDATE_ACTION_ROLLBACK = 'ROLLBACK'.freeze ].freeze
Instance Attribute Summary collapse
-
#backup_network_nsg_ids ⇒ Array<String>
A list of the OCIDs of the network security groups (NSGs) that the backup network of this DB system belongs to.
- #data_collection_options ⇒ OCI::Database::Models::DataCollectionOptions
-
#defined_tags ⇒ Hash<String, Hash<String, Object>>
Defined tags for this resource.
-
#display_name ⇒ String
The user-friendly name for the Exadata VM cluster on Exascale Infrastructure.
-
#enabled_e_cpu_count ⇒ Integer
The number of ECPUs to enable for an Exadata VM cluster on Exascale Infrastructure.
-
#freeform_tags ⇒ Hash<String, String>
Free-form tags for this resource.
-
#grid_image_id ⇒ String
Grid Setup will be done using this grid image id.
-
#license_model ⇒ String
The Oracle license model that applies to the Exadata VM cluster on Exascale Infrastructure.
-
#node_count ⇒ Integer
The number of nodes to be added in the Exadata VM cluster on Exascale Infrastructure.
-
#nsg_ids ⇒ Array<String>
The list of OCIDs for the network security groups (NSGs) to which this resource belongs.
-
#security_attributes ⇒ Hash<String, Hash<String, Object>>
Security Attributes for this resource.
-
#ssh_public_keys ⇒ Array<String>
The public key portion of one or more key pairs used for SSH access to the Exadata VM cluster on Exascale Infrastructure.
-
#system_version ⇒ String
Operating system version of the image.
-
#total_e_cpu_count ⇒ Integer
The number of Total ECPUs for an Exadata VM cluster on Exascale Infrastructure.
-
#update_action ⇒ String
The update action.
- #vm_file_system_storage ⇒ OCI::Database::Models::ExadbVmClusterStorageDetails
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 = {}) ⇒ UpdateExadbVmClusterDetails
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 = {}) ⇒ UpdateExadbVmClusterDetails
Initializes the object
177 178 179 180 181 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 268 269 270 271 272 273 274 275 276 277 278 |
# File 'lib/oci/database/models/update_exadb_vm_cluster_details.rb', line 177 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.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.total_e_cpu_count = attributes[:'totalECpuCount'] if attributes[:'totalECpuCount'] raise 'You cannot provide both :totalECpuCount and :total_e_cpu_count' if attributes.key?(:'totalECpuCount') && attributes.key?(:'total_e_cpu_count') self.total_e_cpu_count = attributes[:'total_e_cpu_count'] if attributes[:'total_e_cpu_count'] self.enabled_e_cpu_count = attributes[:'enabledECpuCount'] if attributes[:'enabledECpuCount'] raise 'You cannot provide both :enabledECpuCount and :enabled_e_cpu_count' if attributes.key?(:'enabledECpuCount') && attributes.key?(:'enabled_e_cpu_count') self.enabled_e_cpu_count = attributes[:'enabled_e_cpu_count'] if attributes[:'enabled_e_cpu_count'] self.vm_file_system_storage = attributes[:'vmFileSystemStorage'] if attributes[:'vmFileSystemStorage'] raise 'You cannot provide both :vmFileSystemStorage and :vm_file_system_storage' if attributes.key?(:'vmFileSystemStorage') && attributes.key?(:'vm_file_system_storage') self.vm_file_system_storage = attributes[:'vm_file_system_storage'] if attributes[:'vm_file_system_storage'] self.node_count = attributes[:'nodeCount'] if attributes[:'nodeCount'] 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.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.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.nsg_ids = attributes[:'nsgIds'] if attributes[:'nsgIds'] raise 'You cannot provide both :nsgIds and :nsg_ids' if attributes.key?(:'nsgIds') && attributes.key?(:'nsg_ids') self.nsg_ids = attributes[:'nsg_ids'] if attributes[:'nsg_ids'] self.backup_network_nsg_ids = attributes[:'backupNetworkNsgIds'] if attributes[:'backupNetworkNsgIds'] raise 'You cannot provide both :backupNetworkNsgIds and :backup_network_nsg_ids' if attributes.key?(:'backupNetworkNsgIds') && attributes.key?(:'backup_network_nsg_ids') self.backup_network_nsg_ids = attributes[:'backup_network_nsg_ids'] if attributes[:'backup_network_nsg_ids'] 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.security_attributes = attributes[:'securityAttributes'] if attributes[:'securityAttributes'] raise 'You cannot provide both :securityAttributes and :security_attributes' if attributes.key?(:'securityAttributes') && attributes.key?(:'security_attributes') self.security_attributes = attributes[:'security_attributes'] if attributes[:'security_attributes'] 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.system_version = attributes[:'systemVersion'] if attributes[:'systemVersion'] raise 'You cannot provide both :systemVersion and :system_version' if attributes.key?(:'systemVersion') && attributes.key?(:'system_version') self.system_version = attributes[:'system_version'] if attributes[:'system_version'] self.grid_image_id = attributes[:'gridImageId'] if attributes[:'gridImageId'] raise 'You cannot provide both :gridImageId and :grid_image_id' if attributes.key?(:'gridImageId') && attributes.key?(:'grid_image_id') self.grid_image_id = attributes[:'grid_image_id'] if attributes[:'grid_image_id'] self.update_action = attributes[:'updateAction'] if attributes[:'updateAction'] raise 'You cannot provide both :updateAction and :update_action' if attributes.key?(:'updateAction') && attributes.key?(:'update_action') self.update_action = attributes[:'update_action'] if attributes[:'update_action'] end |
Instance Attribute Details
#backup_network_nsg_ids ⇒ Array<String>
A list of the OCIDs of the network security groups (NSGs) that the backup network of this DB system belongs to. Setting this to an empty array after the list is created removes the resource from all NSGs. For more information about NSGs, see Security Rules. Applicable only to Exadata systems.
65 66 67 |
# File 'lib/oci/database/models/update_exadb_vm_cluster_details.rb', line 65 def backup_network_nsg_ids @backup_network_nsg_ids end |
#data_collection_options ⇒ OCI::Database::Models::DataCollectionOptions
89 90 91 |
# File 'lib/oci/database/models/update_exadb_vm_cluster_details.rb', line 89 def @data_collection_options 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.
79 80 81 |
# File 'lib/oci/database/models/update_exadb_vm_cluster_details.rb', line 79 def @defined_tags end |
#display_name ⇒ String
The user-friendly name for the Exadata VM cluster on Exascale Infrastructure. The name does not need to be unique.
26 27 28 |
# File 'lib/oci/database/models/update_exadb_vm_cluster_details.rb', line 26 def display_name @display_name end |
#enabled_e_cpu_count ⇒ Integer
The number of ECPUs to enable for an Exadata VM cluster on Exascale Infrastructure.
36 37 38 |
# File 'lib/oci/database/models/update_exadb_vm_cluster_details.rb', line 36 def enabled_e_cpu_count @enabled_e_cpu_count 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\"}
73 74 75 |
# File 'lib/oci/database/models/update_exadb_vm_cluster_details.rb', line 73 def @freeform_tags end |
#grid_image_id ⇒ String
Grid Setup will be done using this grid image id.
The grid image ID can be obtained using the API /20160918/giVersions/majorVersion/minorVersions?compartmentId=<compartmentId>&shapeFamily=EXADB_XS&availabilityDomain=<AD name>. The list of supported major versions can be obtained using the API /20160918/giVersions?compartmentId=<compartmentId>&shape=ExaDbXS&availabilityDomain=<AD name>
101 102 103 |
# File 'lib/oci/database/models/update_exadb_vm_cluster_details.rb', line 101 def grid_image_id @grid_image_id end |
#license_model ⇒ String
The Oracle license model that applies to the Exadata VM cluster on Exascale Infrastructure. The default is BRING_YOUR_OWN_LICENSE.
49 50 51 |
# File 'lib/oci/database/models/update_exadb_vm_cluster_details.rb', line 49 def license_model @license_model end |
#node_count ⇒ Integer
The number of nodes to be added in the Exadata VM cluster on Exascale Infrastructure.
44 45 46 |
# File 'lib/oci/database/models/update_exadb_vm_cluster_details.rb', line 44 def node_count @node_count end |
#nsg_ids ⇒ Array<String>
The list of OCIDs for the network security groups (NSGs) to which this resource belongs. Setting this to an empty list removes all resources from all NSGs. For more information about NSGs, see Security Rules. NsgIds restrictions: - A network security group (NSG) is optional for Autonomous Databases with private access. The nsgIds list can be empty.
60 61 62 |
# File 'lib/oci/database/models/update_exadb_vm_cluster_details.rb', line 60 def nsg_ids @nsg_ids end |
#security_attributes ⇒ Hash<String, Hash<String, Object>>
Security Attributes for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {\"Oracle-ZPR\": {\"MaxEgressCount\": {\"value\": \"42\", \"mode\": \"audit\"}}}
86 87 88 |
# File 'lib/oci/database/models/update_exadb_vm_cluster_details.rb', line 86 def security_attributes @security_attributes end |
#ssh_public_keys ⇒ Array<String>
The public key portion of one or more key pairs used for SSH access to the Exadata VM cluster on Exascale Infrastructure.
53 54 55 |
# File 'lib/oci/database/models/update_exadb_vm_cluster_details.rb', line 53 def ssh_public_keys @ssh_public_keys end |
#system_version ⇒ String
Operating system version of the image.
93 94 95 |
# File 'lib/oci/database/models/update_exadb_vm_cluster_details.rb', line 93 def system_version @system_version end |
#total_e_cpu_count ⇒ Integer
The number of Total ECPUs for an Exadata VM cluster on Exascale Infrastructure.
31 32 33 |
# File 'lib/oci/database/models/update_exadb_vm_cluster_details.rb', line 31 def total_e_cpu_count @total_e_cpu_count end |
#update_action ⇒ String
The update action.
105 106 107 |
# File 'lib/oci/database/models/update_exadb_vm_cluster_details.rb', line 105 def update_action @update_action end |
#vm_file_system_storage ⇒ OCI::Database::Models::ExadbVmClusterStorageDetails
39 40 41 |
# File 'lib/oci/database/models/update_exadb_vm_cluster_details.rb', line 39 def vm_file_system_storage @vm_file_system_storage end |
Class Method Details
.attribute_map ⇒ Object
Attribute mapping from ruby-style variable name to JSON key.
108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 |
# File 'lib/oci/database/models/update_exadb_vm_cluster_details.rb', line 108 def self.attribute_map { # rubocop:disable Style/SymbolLiteral 'display_name': :'displayName', 'total_e_cpu_count': :'totalECpuCount', 'enabled_e_cpu_count': :'enabledECpuCount', 'vm_file_system_storage': :'vmFileSystemStorage', 'node_count': :'nodeCount', 'license_model': :'licenseModel', 'ssh_public_keys': :'sshPublicKeys', 'nsg_ids': :'nsgIds', 'backup_network_nsg_ids': :'backupNetworkNsgIds', 'freeform_tags': :'freeformTags', 'defined_tags': :'definedTags', 'security_attributes': :'securityAttributes', 'data_collection_options': :'dataCollectionOptions', 'system_version': :'systemVersion', 'grid_image_id': :'gridImageId', 'update_action': :'updateAction' # rubocop:enable Style/SymbolLiteral } end |
.swagger_types ⇒ Object
Attribute type mapping.
132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 |
# File 'lib/oci/database/models/update_exadb_vm_cluster_details.rb', line 132 def self.swagger_types { # rubocop:disable Style/SymbolLiteral 'display_name': :'String', 'total_e_cpu_count': :'Integer', 'enabled_e_cpu_count': :'Integer', 'vm_file_system_storage': :'OCI::Database::Models::ExadbVmClusterStorageDetails', 'node_count': :'Integer', 'license_model': :'String', 'ssh_public_keys': :'Array<String>', 'nsg_ids': :'Array<String>', 'backup_network_nsg_ids': :'Array<String>', 'freeform_tags': :'Hash<String, String>', 'defined_tags': :'Hash<String, Hash<String, Object>>', 'security_attributes': :'Hash<String, Hash<String, Object>>', 'data_collection_options': :'OCI::Database::Models::DataCollectionOptions', 'system_version': :'String', 'grid_image_id': :'String', 'update_action': :'String' # rubocop:enable Style/SymbolLiteral } end |
Instance Method Details
#==(other) ⇒ Object
Checks equality by comparing each attribute.
303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 |
# File 'lib/oci/database/models/update_exadb_vm_cluster_details.rb', line 303 def ==(other) return true if equal?(other) self.class == other.class && display_name == other.display_name && total_e_cpu_count == other.total_e_cpu_count && enabled_e_cpu_count == other.enabled_e_cpu_count && vm_file_system_storage == other.vm_file_system_storage && node_count == other.node_count && license_model == other.license_model && ssh_public_keys == other.ssh_public_keys && nsg_ids == other.nsg_ids && backup_network_nsg_ids == other.backup_network_nsg_ids && == other. && == other. && security_attributes == other.security_attributes && == other. && system_version == other.system_version && grid_image_id == other.grid_image_id && update_action == other.update_action end |
#build_from_hash(attributes) ⇒ Object
Builds the object from hash
348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 |
# File 'lib/oci/database/models/update_exadb_vm_cluster_details.rb', line 348 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
328 329 330 |
# File 'lib/oci/database/models/update_exadb_vm_cluster_details.rb', line 328 def eql?(other) self == other end |
#hash ⇒ Fixnum
Calculates hash code according to all attributes.
337 338 339 |
# File 'lib/oci/database/models/update_exadb_vm_cluster_details.rb', line 337 def hash [display_name, total_e_cpu_count, enabled_e_cpu_count, vm_file_system_storage, node_count, license_model, ssh_public_keys, nsg_ids, backup_network_nsg_ids, , , security_attributes, , system_version, grid_image_id, update_action].hash end |
#to_hash ⇒ Hash
Returns the object in the form of hash
381 382 383 384 385 386 387 388 389 390 |
# File 'lib/oci/database/models/update_exadb_vm_cluster_details.rb', line 381 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
375 376 377 |
# File 'lib/oci/database/models/update_exadb_vm_cluster_details.rb', line 375 def to_s to_hash.to_s end |