Class: OCI::Database::Models::UpdateExadataInfrastructureDetails

Inherits:
Object
  • Object
show all
Defined in:
lib/oci/database/models/update_exadata_infrastructure_details.rb

Overview

Updates the Exadata infrastructure. Applies to Exadata Cloud@Customer instances only. See update_cloud_exadata_infrastructure_details for information on updating Exadata Cloud Service cloud Exadata infrastructure resources.

Constant Summary collapse

ADDITIONAL_COMPUTE_SYSTEM_MODEL_ENUM =
[
  ADDITIONAL_COMPUTE_SYSTEM_MODEL_X7 = 'X7'.freeze,
  ADDITIONAL_COMPUTE_SYSTEM_MODEL_X8 = 'X8'.freeze,
  ADDITIONAL_COMPUTE_SYSTEM_MODEL_X8_M = 'X8M'.freeze,
  ADDITIONAL_COMPUTE_SYSTEM_MODEL_X9_M = 'X9M'.freeze,
  ADDITIONAL_COMPUTE_SYSTEM_MODEL_X10_M = 'X10M'.freeze
].freeze

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(attributes = {}) ⇒ UpdateExadataInfrastructureDetails

Initializes the object

Parameters:

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

    Model attributes in the form of hash

Options Hash (attributes):



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
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
# File 'lib/oci/database/models/update_exadata_infrastructure_details.rb', line 201

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

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

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

  self.cloud_control_plane_server2 = attributes[:'cloudControlPlaneServer2'] if attributes[:'cloudControlPlaneServer2']

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

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

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

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

  self.admin_network_cidr = attributes[:'adminNetworkCIDR'] if attributes[:'adminNetworkCIDR']

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

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

  self.infini_band_network_cidr = attributes[:'infiniBandNetworkCIDR'] if attributes[:'infiniBandNetworkCIDR']

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

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

  self.corporate_proxy = attributes[:'corporateProxy'] if attributes[:'corporateProxy']

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

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

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

  self.maintenance_window = attributes[:'maintenanceWindow'] if attributes[:'maintenanceWindow']

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

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

  self.additional_storage_count = attributes[:'additionalStorageCount'] if attributes[:'additionalStorageCount']

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

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

  self.is_multi_rack_deployment = attributes[:'isMultiRackDeployment'] unless attributes[:'isMultiRackDeployment'].nil?

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

  self.is_multi_rack_deployment = attributes[:'is_multi_rack_deployment'] unless attributes[:'is_multi_rack_deployment'].nil?

  self.multi_rack_configuration_file = attributes[:'multiRackConfigurationFile'] if attributes[:'multiRackConfigurationFile']

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

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

  self.additional_compute_count = attributes[:'additionalComputeCount'] if attributes[:'additionalComputeCount']

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

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

  self.additional_compute_system_model = attributes[:'additionalComputeSystemModel'] if attributes[:'additionalComputeSystemModel']

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

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

  self.dns_server = attributes[:'dnsServer'] if attributes[:'dnsServer']

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

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

  self.ntp_server = attributes[:'ntpServer'] if attributes[:'ntpServer']

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

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

  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.is_cps_offline_report_enabled = attributes[:'isCpsOfflineReportEnabled'] unless attributes[:'isCpsOfflineReportEnabled'].nil?

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

  self.is_cps_offline_report_enabled = attributes[:'is_cps_offline_report_enabled'] unless attributes[:'is_cps_offline_report_enabled'].nil?

  self.network_bonding_mode_details = attributes[:'networkBondingModeDetails'] if attributes[:'networkBondingModeDetails']

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

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

  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']
end

Instance Attribute Details

#additional_compute_countInteger

The requested number of additional compute servers for the Exadata infrastructure.

Returns:

  • (Integer)


70
71
72
# File 'lib/oci/database/models/update_exadata_infrastructure_details.rb', line 70

def additional_compute_count
  @additional_compute_count
end

#additional_compute_system_modelString

Oracle Exadata System Model specification. The system model determines the amount of compute or storage server resources available for use. For more information, please see [System and Shape Configuration Options] (docs.oracle.com/en/engineered-systems/exadata-cloud-at-customer/ecccm/ecc-system-config-options.html#GUID-9E090174-5C57-4EB1-9243-B470F9F10D6B)

Returns:

  • (String)


77
78
79
# File 'lib/oci/database/models/update_exadata_infrastructure_details.rb', line 77

def additional_compute_system_model
  @additional_compute_system_model
end

#additional_storage_countInteger

The requested number of additional storage servers for the Exadata infrastructure.

Returns:

  • (Integer)


58
59
60
# File 'lib/oci/database/models/update_exadata_infrastructure_details.rb', line 58

def additional_storage_count
  @additional_storage_count
end

#admin_network_cidrString

The CIDR block for the Exadata administration network.

Returns:

  • (String)


39
40
41
# File 'lib/oci/database/models/update_exadata_infrastructure_details.rb', line 39

def admin_network_cidr
  @admin_network_cidr
end

#cloud_control_plane_server1String

The IP address for the first control plane server.

Returns:

  • (String)


23
24
25
# File 'lib/oci/database/models/update_exadata_infrastructure_details.rb', line 23

def cloud_control_plane_server1
  @cloud_control_plane_server1
end

#cloud_control_plane_server2String

The IP address for the second control plane server.

Returns:

  • (String)


27
28
29
# File 'lib/oci/database/models/update_exadata_infrastructure_details.rb', line 27

def cloud_control_plane_server2
  @cloud_control_plane_server2
end

#contactsArray<OCI::Database::Models::ExadataInfrastructureContact>

The list of contacts for the Exadata infrastructure.



51
52
53
# File 'lib/oci/database/models/update_exadata_infrastructure_details.rb', line 51

def contacts
  @contacts
end

#corporate_proxyString

The corporate network proxy for access to the control plane network.

Returns:

  • (String)


47
48
49
# File 'lib/oci/database/models/update_exadata_infrastructure_details.rb', line 47

def corporate_proxy
  @corporate_proxy
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>>)


114
115
116
# File 'lib/oci/database/models/update_exadata_infrastructure_details.rb', line 114

def defined_tags
  @defined_tags
end

#dns_serverArray<String>

The list of DNS server IP addresses. Maximum of 3 allowed.

Returns:

  • (Array<String>)


81
82
83
# File 'lib/oci/database/models/update_exadata_infrastructure_details.rb', line 81

def dns_server
  @dns_server
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>)


108
109
110
# File 'lib/oci/database/models/update_exadata_infrastructure_details.rb', line 108

def freeform_tags
  @freeform_tags
end

#gatewayString

The gateway for the control plane network.

Returns:

  • (String)


35
36
37
# File 'lib/oci/database/models/update_exadata_infrastructure_details.rb', line 35

def gateway
  @gateway
end

#infini_band_network_cidrString

The CIDR block for the Exadata InfiniBand interconnect.

Returns:

  • (String)


43
44
45
# File 'lib/oci/database/models/update_exadata_infrastructure_details.rb', line 43

def infini_band_network_cidr
  @infini_band_network_cidr
end

#is_cps_offline_report_enabledBOOLEAN

Indicates whether cps offline diagnostic report is enabled for this Exadata infrastructure. This will allow a customer to quickly check status themselves and fix problems on their end, saving time and frustration for both Oracle and the customer when they find the CPS in a disconnected state.You can enable offline diagnostic report during Exadata infrastructure provisioning. You can also disable or enable it at any time using the UpdateExadatainfrastructure API.

Returns:

  • (BOOLEAN)


97
98
99
# File 'lib/oci/database/models/update_exadata_infrastructure_details.rb', line 97

def is_cps_offline_report_enabled
  @is_cps_offline_report_enabled
end

#is_multi_rack_deploymentBOOLEAN

Indicates if deployment is Multi-Rack or not.

Returns:

  • (BOOLEAN)


62
63
64
# File 'lib/oci/database/models/update_exadata_infrastructure_details.rb', line 62

def is_multi_rack_deployment
  @is_multi_rack_deployment
end

#maintenance_windowOCI::Database::Models::MaintenanceWindow



54
55
56
# File 'lib/oci/database/models/update_exadata_infrastructure_details.rb', line 54

def maintenance_window
  @maintenance_window
end

#multi_rack_configuration_fileString

The base64 encoded Multi-Rack configuration json file.

Returns:

  • (String)


66
67
68
# File 'lib/oci/database/models/update_exadata_infrastructure_details.rb', line 66

def multi_rack_configuration_file
  @multi_rack_configuration_file
end

#netmaskString

The netmask for the control plane network.

Returns:

  • (String)


31
32
33
# File 'lib/oci/database/models/update_exadata_infrastructure_details.rb', line 31

def netmask
  @netmask
end

#network_bonding_mode_detailsOCI::Database::Models::NetworkBondingModeDetails



100
101
102
# File 'lib/oci/database/models/update_exadata_infrastructure_details.rb', line 100

def network_bonding_mode_details
  @network_bonding_mode_details
end

#ntp_serverArray<String>

The list of NTP server IP addresses. Maximum of 3 allowed.

Returns:

  • (Array<String>)


85
86
87
# File 'lib/oci/database/models/update_exadata_infrastructure_details.rb', line 85

def ntp_server
  @ntp_server
end

#time_zoneString

The time zone of the Exadata infrastructure. For details, see Exadata Infrastructure Time Zones.

Returns:

  • (String)


90
91
92
# File 'lib/oci/database/models/update_exadata_infrastructure_details.rb', line 90

def time_zone
  @time_zone
end

Class Method Details

.attribute_mapObject

Attribute mapping from ruby-style variable name to JSON key.



117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
# File 'lib/oci/database/models/update_exadata_infrastructure_details.rb', line 117

def self.attribute_map
  {
    # rubocop:disable Style/SymbolLiteral
    'cloud_control_plane_server1': :'cloudControlPlaneServer1',
    'cloud_control_plane_server2': :'cloudControlPlaneServer2',
    'netmask': :'netmask',
    'gateway': :'gateway',
    'admin_network_cidr': :'adminNetworkCIDR',
    'infini_band_network_cidr': :'infiniBandNetworkCIDR',
    'corporate_proxy': :'corporateProxy',
    'contacts': :'contacts',
    'maintenance_window': :'maintenanceWindow',
    'additional_storage_count': :'additionalStorageCount',
    'is_multi_rack_deployment': :'isMultiRackDeployment',
    'multi_rack_configuration_file': :'multiRackConfigurationFile',
    'additional_compute_count': :'additionalComputeCount',
    'additional_compute_system_model': :'additionalComputeSystemModel',
    'dns_server': :'dnsServer',
    'ntp_server': :'ntpServer',
    'time_zone': :'timeZone',
    'is_cps_offline_report_enabled': :'isCpsOfflineReportEnabled',
    'network_bonding_mode_details': :'networkBondingModeDetails',
    'freeform_tags': :'freeformTags',
    'defined_tags': :'definedTags'
    # rubocop:enable Style/SymbolLiteral
  }
end

.swagger_typesObject

Attribute type mapping.



146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
# File 'lib/oci/database/models/update_exadata_infrastructure_details.rb', line 146

def self.swagger_types
  {
    # rubocop:disable Style/SymbolLiteral
    'cloud_control_plane_server1': :'String',
    'cloud_control_plane_server2': :'String',
    'netmask': :'String',
    'gateway': :'String',
    'admin_network_cidr': :'String',
    'infini_band_network_cidr': :'String',
    'corporate_proxy': :'String',
    'contacts': :'Array<OCI::Database::Models::ExadataInfrastructureContact>',
    'maintenance_window': :'OCI::Database::Models::MaintenanceWindow',
    'additional_storage_count': :'Integer',
    'is_multi_rack_deployment': :'BOOLEAN',
    'multi_rack_configuration_file': :'String',
    'additional_compute_count': :'Integer',
    'additional_compute_system_model': :'String',
    'dns_server': :'Array<String>',
    'ntp_server': :'Array<String>',
    'time_zone': :'String',
    'is_cps_offline_report_enabled': :'BOOLEAN',
    'network_bonding_mode_details': :'OCI::Database::Models::NetworkBondingModeDetails',
    'freeform_tags': :'Hash<String, String>',
    'defined_tags': :'Hash<String, Hash<String, Object>>'
    # 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



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/database/models/update_exadata_infrastructure_details.rb', line 337

def ==(other)
  return true if equal?(other)

  self.class == other.class &&
    cloud_control_plane_server1 == other.cloud_control_plane_server1 &&
    cloud_control_plane_server2 == other.cloud_control_plane_server2 &&
    netmask == other.netmask &&
    gateway == other.gateway &&
    admin_network_cidr == other.admin_network_cidr &&
    infini_band_network_cidr == other.infini_band_network_cidr &&
    corporate_proxy == other.corporate_proxy &&
    contacts == other.contacts &&
    maintenance_window == other.maintenance_window &&
    additional_storage_count == other.additional_storage_count &&
    is_multi_rack_deployment == other.is_multi_rack_deployment &&
    multi_rack_configuration_file == other.multi_rack_configuration_file &&
    additional_compute_count == other.additional_compute_count &&
    additional_compute_system_model == other.additional_compute_system_model &&
    dns_server == other.dns_server &&
    ntp_server == other.ntp_server &&
    time_zone == other.time_zone &&
    is_cps_offline_report_enabled == other.is_cps_offline_report_enabled &&
    network_bonding_mode_details == other.network_bonding_mode_details &&
    freeform_tags == other.freeform_tags &&
    defined_tags == other.defined_tags
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



387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
# File 'lib/oci/database/models/update_exadata_infrastructure_details.rb', line 387

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


367
368
369
# File 'lib/oci/database/models/update_exadata_infrastructure_details.rb', line 367

def eql?(other)
  self == other
end

#hashFixnum

Calculates hash code according to all attributes.

Returns:

  • (Fixnum)

    Hash code



376
377
378
# File 'lib/oci/database/models/update_exadata_infrastructure_details.rb', line 376

def hash
  [cloud_control_plane_server1, cloud_control_plane_server2, netmask, gateway, admin_network_cidr, infini_band_network_cidr, corporate_proxy, contacts, maintenance_window, additional_storage_count, is_multi_rack_deployment, multi_rack_configuration_file, additional_compute_count, additional_compute_system_model, dns_server, ntp_server, time_zone, is_cps_offline_report_enabled, network_bonding_mode_details, freeform_tags, defined_tags].hash
end

#to_hashHash

Returns the object in the form of hash

Returns:

  • (Hash)

    Returns the object in the form of hash



420
421
422
423
424
425
426
427
428
429
# File 'lib/oci/database/models/update_exadata_infrastructure_details.rb', line 420

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



414
415
416
# File 'lib/oci/database/models/update_exadata_infrastructure_details.rb', line 414

def to_s
  to_hash.to_s
end