Class: OCI::GloballyDistributedDatabase::Models::ShardableCloudAutonomousVmClusterSummary

Inherits:
Object
  • Object
show all
Defined in:
lib/oci/globally_distributed_database/models/shardable_cloud_autonomous_vm_cluster_summary.rb

Overview

Shardable cloud autonomous vm cluster summary.

Constant Summary collapse

LIFECYCLE_STATE_ENUM =
[
  LIFECYCLE_STATE_ACTIVE = 'ACTIVE'.freeze,
  LIFECYCLE_STATE_FAILED = 'FAILED'.freeze,
  LIFECYCLE_STATE_NEEDS_ATTENTION = 'NEEDS_ATTENTION'.freeze,
  LIFECYCLE_STATE_INACTIVE = 'INACTIVE'.freeze,
  LIFECYCLE_STATE_DELETING = 'DELETING'.freeze,
  LIFECYCLE_STATE_DELETED = 'DELETED'.freeze,
  LIFECYCLE_STATE_UPDATING = 'UPDATING'.freeze,
  LIFECYCLE_STATE_CREATING = 'CREATING'.freeze,
  LIFECYCLE_STATE_UNAVAILABLE = 'UNAVAILABLE'.freeze,
  LIFECYCLE_STATE_UNKNOWN_ENUM_VALUE = 'UNKNOWN_ENUM_VALUE'.freeze
].freeze

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(attributes = {}) ⇒ ShardableCloudAutonomousVmClusterSummary

Initializes the object

Parameters:

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

    Model attributes in the form of hash

Options Hash (attributes):



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
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
# File 'lib/oci/globally_distributed_database/models/shardable_cloud_autonomous_vm_cluster_summary.rb', line 242

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

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

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

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

  self.lifecycle_state_details = attributes[:'lifecycleStateDetails'] if attributes[:'lifecycleStateDetails']

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

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

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

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

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

  self.available_container_databases = attributes[:'availableContainerDatabases'] if attributes[:'availableContainerDatabases']

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

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

  self.available_cpus = attributes[:'availableCpus'] if attributes[:'availableCpus']

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

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

  self.availability_domain = attributes[:'availabilityDomain'] if attributes[:'availabilityDomain']

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

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

  self.autonomous_data_storage_size_in_tbs = attributes[:'autonomousDataStorageSizeInTBs'] if attributes[:'autonomousDataStorageSizeInTBs']

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

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

  self.available_autonomous_data_storage_size_in_tbs = attributes[:'availableAutonomousDataStorageSizeInTBs'] if attributes[:'availableAutonomousDataStorageSizeInTBs']

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

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

  self.cloud_exadata_infrastructure_id = attributes[:'cloudExadataInfrastructureId'] if attributes[:'cloudExadataInfrastructureId']

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

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

  self.cluster_time_zone = attributes[:'clusterTimeZone'] if attributes[:'clusterTimeZone']

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

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

  self.total_container_databases = attributes[:'totalContainerDatabases'] if attributes[:'totalContainerDatabases']

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

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

  self.subnet_id = attributes[:'subnetId'] if attributes[:'subnetId']

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

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

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

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

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

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

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

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

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

  self.ocpu_count = attributes[:'ocpuCount'] if attributes[:'ocpuCount']

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

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

  self.reclaimable_cpus = attributes[:'reclaimableCpus'] if attributes[:'reclaimableCpus']

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

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

  self.provisionable_autonomous_container_databases = attributes[:'provisionableAutonomousContainerDatabases'] if attributes[:'provisionableAutonomousContainerDatabases']

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

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

  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

#autonomous_data_storage_size_in_tbsFloat

The data disk group size allocated for Autonomous Databases, in TBs.

Returns:

  • (Float)


65
66
67
# File 'lib/oci/globally_distributed_database/models/shardable_cloud_autonomous_vm_cluster_summary.rb', line 65

def autonomous_data_storage_size_in_tbs
  @autonomous_data_storage_size_in_tbs
end

#availability_domainString

The name of the availability domain that the cloud Autonomous VM cluster is located in. The format of the availability domain is the same as returned by Cloud Autonomous VM Cluster API.

Returns:

  • (String)


61
62
63
# File 'lib/oci/globally_distributed_database/models/shardable_cloud_autonomous_vm_cluster_summary.rb', line 61

def availability_domain
  @availability_domain
end

#available_autonomous_data_storage_size_in_tbsFloat

The data disk group size available for Autonomous Databases, in TBs.

Returns:

  • (Float)


69
70
71
# File 'lib/oci/globally_distributed_database/models/shardable_cloud_autonomous_vm_cluster_summary.rb', line 69

def available_autonomous_data_storage_size_in_tbs
  @available_autonomous_data_storage_size_in_tbs
end

#available_container_databasesInteger

The number of Autonomous Container Databases that can be created with the currently available local storage.

Returns:

  • (Integer)


51
52
53
# File 'lib/oci/globally_distributed_database/models/shardable_cloud_autonomous_vm_cluster_summary.rb', line 51

def available_container_databases
  @available_container_databases
end

#available_cpusFloat

CPU cores available for allocation to Autonomous Databases.

Returns:

  • (Float)


55
56
57
# File 'lib/oci/globally_distributed_database/models/shardable_cloud_autonomous_vm_cluster_summary.rb', line 55

def available_cpus
  @available_cpus
end

#cloud_exadata_infrastructure_idString

Cloud Exadata Infrastructure Identifier.

Returns:

  • (String)


73
74
75
# File 'lib/oci/globally_distributed_database/models/shardable_cloud_autonomous_vm_cluster_summary.rb', line 73

def cloud_exadata_infrastructure_id
  @cloud_exadata_infrastructure_id
end

#cluster_time_zoneString

The time zone of the Cloud Autonomous VM Cluster.

Returns:

  • (String)


77
78
79
# File 'lib/oci/globally_distributed_database/models/shardable_cloud_autonomous_vm_cluster_summary.rb', line 77

def cluster_time_zone
  @cluster_time_zone
end

#compartment_idString

[Required] Cloud autonomous vmcluster compartment id

Returns:

  • (String)


31
32
33
# File 'lib/oci/globally_distributed_database/models/shardable_cloud_autonomous_vm_cluster_summary.rb', line 31

def compartment_id
  @compartment_id
end

#compute_modelString

The compute model of the Cloud Autonomous VM Cluster.

Returns:

  • (String)


47
48
49
# File 'lib/oci/globally_distributed_database/models/shardable_cloud_autonomous_vm_cluster_summary.rb', line 47

def compute_model
  @compute_model
end

#cpu_core_countInteger

The number of CPU cores on the cloud Autonomous VM cluster.

Returns:

  • (Integer)


109
110
111
# File 'lib/oci/globally_distributed_database/models/shardable_cloud_autonomous_vm_cluster_summary.rb', line 109

def cpu_core_count
  @cpu_core_count
end

#cpu_core_count_per_nodeInteger

The number of CPU cores enabled per VM cluster node.

Returns:

  • (Integer)


113
114
115
# File 'lib/oci/globally_distributed_database/models/shardable_cloud_autonomous_vm_cluster_summary.rb', line 113

def cpu_core_count_per_node
  @cpu_core_count_per_node
end

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

Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {\"foo-namespace\": {\"bar-key\": \"value\"}}

Returns:

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


137
138
139
# File 'lib/oci/globally_distributed_database/models/shardable_cloud_autonomous_vm_cluster_summary.rb', line 137

def defined_tags
  @defined_tags
end

#display_nameString

[Required] Cloud autonomous vmcluster displayName

Returns:

  • (String)


43
44
45
# File 'lib/oci/globally_distributed_database/models/shardable_cloud_autonomous_vm_cluster_summary.rb', line 43

def display_name
  @display_name
end

#freeform_tagsHash<String, String>

Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: {\"bar-key\": \"value\"}

Returns:

  • (Hash<String, String>)


131
132
133
# File 'lib/oci/globally_distributed_database/models/shardable_cloud_autonomous_vm_cluster_summary.rb', line 131

def freeform_tags
  @freeform_tags
end

#idString

[Required] Cloud autonomous vmcluster identifier

Returns:

  • (String)


27
28
29
# File 'lib/oci/globally_distributed_database/models/shardable_cloud_autonomous_vm_cluster_summary.rb', line 27

def id
  @id
end

#license_modelString

The Oracle license model that applies to the Oracle Autonomous Database.

Returns:

  • (String)


97
98
99
# File 'lib/oci/globally_distributed_database/models/shardable_cloud_autonomous_vm_cluster_summary.rb', line 97

def license_model
  @license_model
end

#lifecycle_stateString

[Required] Lifecycle states for shardable Cloud autonomous vm cluster.

Returns:

  • (String)


35
36
37
# File 'lib/oci/globally_distributed_database/models/shardable_cloud_autonomous_vm_cluster_summary.rb', line 35

def lifecycle_state
  @lifecycle_state
end

#lifecycle_state_detailsString

Detailed message for the lifecycle state.

Returns:

  • (String)


39
40
41
# File 'lib/oci/globally_distributed_database/models/shardable_cloud_autonomous_vm_cluster_summary.rb', line 39

def lifecycle_state_details
  @lifecycle_state_details
end

#memory_per_oracle_compute_unit_in_gbsInteger

The amount of memory (in GBs) enabled per OCPU or ECPU.

Returns:

  • (Integer)


105
106
107
# File 'lib/oci/globally_distributed_database/models/shardable_cloud_autonomous_vm_cluster_summary.rb', line 105

def memory_per_oracle_compute_unit_in_gbs
  @memory_per_oracle_compute_unit_in_gbs
end

#memory_size_in_gbsInteger

The memory allocated in GBs.

Returns:

  • (Integer)


101
102
103
# File 'lib/oci/globally_distributed_database/models/shardable_cloud_autonomous_vm_cluster_summary.rb', line 101

def memory_size_in_gbs
  @memory_size_in_gbs
end

#node_countInteger

Cloud autonomous vmcluster node count

Returns:

  • (Integer)


93
94
95
# File 'lib/oci/globally_distributed_database/models/shardable_cloud_autonomous_vm_cluster_summary.rb', line 93

def node_count
  @node_count
end

#ocpu_countFloat

The number of CPU cores on the cloud Autonomous VM cluster.

Returns:

  • (Float)


117
118
119
# File 'lib/oci/globally_distributed_database/models/shardable_cloud_autonomous_vm_cluster_summary.rb', line 117

def ocpu_count
  @ocpu_count
end

#provisionable_autonomous_container_databasesInteger

Number of Autonomous Container Databases that can be created in the Autonomous VM Cluster

Returns:

  • (Integer)


125
126
127
# File 'lib/oci/globally_distributed_database/models/shardable_cloud_autonomous_vm_cluster_summary.rb', line 125

def provisionable_autonomous_container_databases
  @provisionable_autonomous_container_databases
end

#reclaimable_cpusFloat

The CPUs that continue to be included in the count of CPUs available to the Autonomous Container Database even after one of its Autonomous Database is terminated or scaled down. You can release them to the available CPUs at its parent Autonomous VM Cluster level by restarting the Autonomous Container Database.

Returns:

  • (Float)


121
122
123
# File 'lib/oci/globally_distributed_database/models/shardable_cloud_autonomous_vm_cluster_summary.rb', line 121

def reclaimable_cpus
  @reclaimable_cpus
end

#shapeString

Cloud autonomous vmcluster shape

Returns:

  • (String)


89
90
91
# File 'lib/oci/globally_distributed_database/models/shardable_cloud_autonomous_vm_cluster_summary.rb', line 89

def shape
  @shape
end

#subnet_idString

Cloud autonomous vmcluster subnet id

Returns:

  • (String)


85
86
87
# File 'lib/oci/globally_distributed_database/models/shardable_cloud_autonomous_vm_cluster_summary.rb', line 85

def subnet_id
  @subnet_id
end

#total_container_databasesInteger

The total number of Autonomous Container Databases that can be created with the allocated local storage.

Returns:

  • (Integer)


81
82
83
# File 'lib/oci/globally_distributed_database/models/shardable_cloud_autonomous_vm_cluster_summary.rb', line 81

def total_container_databases
  @total_container_databases
end

Class Method Details

.attribute_mapObject

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



140
141
142
143
144
145
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/globally_distributed_database/models/shardable_cloud_autonomous_vm_cluster_summary.rb', line 140

def self.attribute_map
  {
    # rubocop:disable Style/SymbolLiteral
    'id': :'id',
    'compartment_id': :'compartmentId',
    'lifecycle_state': :'lifecycleState',
    'lifecycle_state_details': :'lifecycleStateDetails',
    'display_name': :'displayName',
    'compute_model': :'computeModel',
    'available_container_databases': :'availableContainerDatabases',
    'available_cpus': :'availableCpus',
    'availability_domain': :'availabilityDomain',
    'autonomous_data_storage_size_in_tbs': :'autonomousDataStorageSizeInTBs',
    'available_autonomous_data_storage_size_in_tbs': :'availableAutonomousDataStorageSizeInTBs',
    'cloud_exadata_infrastructure_id': :'cloudExadataInfrastructureId',
    'cluster_time_zone': :'clusterTimeZone',
    'total_container_databases': :'totalContainerDatabases',
    'subnet_id': :'subnetId',
    'shape': :'shape',
    'node_count': :'nodeCount',
    'license_model': :'licenseModel',
    'memory_size_in_gbs': :'memorySizeInGBs',
    'memory_per_oracle_compute_unit_in_gbs': :'memoryPerOracleComputeUnitInGBs',
    'cpu_core_count': :'cpuCoreCount',
    'cpu_core_count_per_node': :'cpuCoreCountPerNode',
    'ocpu_count': :'ocpuCount',
    'reclaimable_cpus': :'reclaimableCpus',
    'provisionable_autonomous_container_databases': :'provisionableAutonomousContainerDatabases',
    'freeform_tags': :'freeformTags',
    'defined_tags': :'definedTags'
    # rubocop:enable Style/SymbolLiteral
  }
end

.swagger_typesObject

Attribute type mapping.



175
176
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
# File 'lib/oci/globally_distributed_database/models/shardable_cloud_autonomous_vm_cluster_summary.rb', line 175

def self.swagger_types
  {
    # rubocop:disable Style/SymbolLiteral
    'id': :'String',
    'compartment_id': :'String',
    'lifecycle_state': :'String',
    'lifecycle_state_details': :'String',
    'display_name': :'String',
    'compute_model': :'String',
    'available_container_databases': :'Integer',
    'available_cpus': :'Float',
    'availability_domain': :'String',
    'autonomous_data_storage_size_in_tbs': :'Float',
    'available_autonomous_data_storage_size_in_tbs': :'Float',
    'cloud_exadata_infrastructure_id': :'String',
    'cluster_time_zone': :'String',
    'total_container_databases': :'Integer',
    'subnet_id': :'String',
    'shape': :'String',
    'node_count': :'Integer',
    'license_model': :'String',
    'memory_size_in_gbs': :'Integer',
    'memory_per_oracle_compute_unit_in_gbs': :'Integer',
    'cpu_core_count': :'Integer',
    'cpu_core_count_per_node': :'Integer',
    'ocpu_count': :'Float',
    'reclaimable_cpus': :'Float',
    'provisionable_autonomous_container_databases': :'Integer',
    '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



423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
# File 'lib/oci/globally_distributed_database/models/shardable_cloud_autonomous_vm_cluster_summary.rb', line 423

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

  self.class == other.class &&
    id == other.id &&
    compartment_id == other.compartment_id &&
    lifecycle_state == other.lifecycle_state &&
    lifecycle_state_details == other.lifecycle_state_details &&
    display_name == other.display_name &&
    compute_model == other.compute_model &&
    available_container_databases == other.available_container_databases &&
    available_cpus == other.available_cpus &&
    availability_domain == other.availability_domain &&
    autonomous_data_storage_size_in_tbs == other.autonomous_data_storage_size_in_tbs &&
    available_autonomous_data_storage_size_in_tbs == other.available_autonomous_data_storage_size_in_tbs &&
    cloud_exadata_infrastructure_id == other.cloud_exadata_infrastructure_id &&
    cluster_time_zone == other.cluster_time_zone &&
    total_container_databases == other.total_container_databases &&
    subnet_id == other.subnet_id &&
    shape == other.shape &&
    node_count == other.node_count &&
    license_model == other.license_model &&
    memory_size_in_gbs == other.memory_size_in_gbs &&
    memory_per_oracle_compute_unit_in_gbs == other.memory_per_oracle_compute_unit_in_gbs &&
    cpu_core_count == other.cpu_core_count &&
    cpu_core_count_per_node == other.cpu_core_count_per_node &&
    ocpu_count == other.ocpu_count &&
    reclaimable_cpus == other.reclaimable_cpus &&
    provisionable_autonomous_container_databases == other.provisionable_autonomous_container_databases &&
    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



479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
# File 'lib/oci/globally_distributed_database/models/shardable_cloud_autonomous_vm_cluster_summary.rb', line 479

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


459
460
461
# File 'lib/oci/globally_distributed_database/models/shardable_cloud_autonomous_vm_cluster_summary.rb', line 459

def eql?(other)
  self == other
end

#hashFixnum

Calculates hash code according to all attributes.

Returns:

  • (Fixnum)

    Hash code



468
469
470
# File 'lib/oci/globally_distributed_database/models/shardable_cloud_autonomous_vm_cluster_summary.rb', line 468

def hash
  [id, compartment_id, lifecycle_state, lifecycle_state_details, display_name, compute_model, available_container_databases, available_cpus, availability_domain, autonomous_data_storage_size_in_tbs, available_autonomous_data_storage_size_in_tbs, cloud_exadata_infrastructure_id, cluster_time_zone, total_container_databases, subnet_id, shape, node_count, license_model, memory_size_in_gbs, memory_per_oracle_compute_unit_in_gbs, cpu_core_count, cpu_core_count_per_node, ocpu_count, reclaimable_cpus, provisionable_autonomous_container_databases, 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



512
513
514
515
516
517
518
519
520
521
# File 'lib/oci/globally_distributed_database/models/shardable_cloud_autonomous_vm_cluster_summary.rb', line 512

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



506
507
508
# File 'lib/oci/globally_distributed_database/models/shardable_cloud_autonomous_vm_cluster_summary.rb', line 506

def to_s
  to_hash.to_s
end