Class: OCI::Database::Models::UpdateExadbVmClusterDetails

Inherits:
Object
  • Object
show all
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

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(attributes = {}) ⇒ UpdateExadbVmClusterDetails

Initializes the object

Parameters:

  • attributes (Hash) (defaults to: {})

    Model attributes in the form of hash

Options Hash (attributes):



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.freeform_tags = attributes[:'freeformTags'] if attributes[:'freeformTags']

  raise 'You cannot provide both :freeformTags and :freeform_tags' if attributes.key?(:'freeformTags') && attributes.key?(:'freeform_tags')

  self.freeform_tags = attributes[:'freeform_tags'] if attributes[:'freeform_tags']

  self.defined_tags = attributes[:'definedTags'] if attributes[:'definedTags']

  raise 'You cannot provide both :definedTags and :defined_tags' if attributes.key?(:'definedTags') && attributes.key?(:'defined_tags')

  self.defined_tags = 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.data_collection_options = 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.data_collection_options = 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_idsArray<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.

Returns:

  • (Array<String>)


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_optionsOCI::Database::Models::DataCollectionOptions



89
90
91
# File 'lib/oci/database/models/update_exadb_vm_cluster_details.rb', line 89

def data_collection_options
  @data_collection_options
end

#defined_tagsHash<String, Hash<String, Object>>

Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags.

Returns:

  • (Hash<String, Hash<String, Object>>)


79
80
81
# File 'lib/oci/database/models/update_exadb_vm_cluster_details.rb', line 79

def defined_tags
  @defined_tags
end

#display_nameString

The user-friendly name for the Exadata VM cluster on Exascale Infrastructure. The name does not need to be unique.

Returns:

  • (String)


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_countInteger

The number of ECPUs to enable for an Exadata VM cluster on Exascale Infrastructure.

Returns:

  • (Integer)


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_tagsHash<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\"}

Returns:

  • (Hash<String, String>)


73
74
75
# File 'lib/oci/database/models/update_exadb_vm_cluster_details.rb', line 73

def freeform_tags
  @freeform_tags
end

#grid_image_idString

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>

Returns:

  • (String)


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_modelString

The Oracle license model that applies to the Exadata VM cluster on Exascale Infrastructure. The default is BRING_YOUR_OWN_LICENSE.

Returns:

  • (String)


49
50
51
# File 'lib/oci/database/models/update_exadb_vm_cluster_details.rb', line 49

def license_model
  @license_model
end

#node_countInteger

The number of nodes to be added in the Exadata VM cluster on Exascale Infrastructure.

Returns:

  • (Integer)


44
45
46
# File 'lib/oci/database/models/update_exadb_vm_cluster_details.rb', line 44

def node_count
  @node_count
end

#nsg_idsArray<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.

Returns:

  • (Array<String>)


60
61
62
# File 'lib/oci/database/models/update_exadb_vm_cluster_details.rb', line 60

def nsg_ids
  @nsg_ids
end

#security_attributesHash<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\"}}}

Returns:

  • (Hash<String, Hash<String, Object>>)


86
87
88
# File 'lib/oci/database/models/update_exadb_vm_cluster_details.rb', line 86

def security_attributes
  @security_attributes
end

#ssh_public_keysArray<String>

The public key portion of one or more key pairs used for SSH access to the Exadata VM cluster on Exascale Infrastructure.

Returns:

  • (Array<String>)


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_versionString

Operating system version of the image.

Returns:

  • (String)


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_countInteger

The number of Total ECPUs for an Exadata VM cluster on Exascale Infrastructure.

Returns:

  • (Integer)


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_actionString

The update action.

Returns:

  • (String)


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_storageOCI::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_mapObject

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_typesObject

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.

Parameters:

  • other (Object)

    the other object to be compared



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 &&
    freeform_tags == other.freeform_tags &&
    defined_tags == other.defined_tags &&
    security_attributes == other.security_attributes &&
    data_collection_options == other.data_collection_options &&
    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

Parameters:

  • attributes (Hash)

    Model attributes in the form of hash

Returns:

  • (Object)

    Returns the model itself



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

Parameters:

  • other (Object)

    the other object to be compared

Returns:

  • (Boolean)

See Also:

  • `==` method


328
329
330
# File 'lib/oci/database/models/update_exadb_vm_cluster_details.rb', line 328

def eql?(other)
  self == other
end

#hashFixnum

Calculates hash code according to all attributes.

Returns:

  • (Fixnum)

    Hash code



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, freeform_tags, defined_tags, security_attributes, data_collection_options, system_version, grid_image_id, update_action].hash
end

#to_hashHash

Returns the object in the form of hash

Returns:

  • (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_sString

Returns the string representation of the object

Returns:

  • (String)

    String presentation 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