Class: OCI::Database::Models::CloudAutonomousVmClusterResourceUsage

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

Overview

Cloud Autonomous VM Cluster usage details, including the Autonomous Container Databases usage.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(attributes = {}) ⇒ CloudAutonomousVmClusterResourceUsage

Initializes the object

Parameters:

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

    Model attributes in the form of hash

Options Hash (attributes):



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
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
# File 'lib/oci/database/models/cloud_autonomous_vm_cluster_resource_usage.rb', line 180

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

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

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

  self.db_node_storage_size_in_gbs = attributes[:'db_node_storage_size_in_gbs'] if attributes[:'db_node_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.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.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.used_autonomous_data_storage_size_in_tbs = attributes[:'usedAutonomousDataStorageSizeInTBs'] if attributes[:'usedAutonomousDataStorageSizeInTBs']

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

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

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

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

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

  self.total_cpus = attributes[:'totalCpus'] if attributes[:'totalCpus']

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

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

  self.used_cpus = attributes[:'usedCpus'] if attributes[:'usedCpus']

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

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

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

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

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

  self.reserved_cpus = attributes[:'reservedCpus'] if attributes[:'reservedCpus']

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

  self.reserved_cpus = attributes[:'reserved_cpus'] if attributes[:'reserved_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.provisioned_autonomous_container_databases = attributes[:'provisionedAutonomousContainerDatabases'] if attributes[:'provisionedAutonomousContainerDatabases']

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

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

  self.non_provisionable_autonomous_container_databases = attributes[:'nonProvisionableAutonomousContainerDatabases'] if attributes[:'nonProvisionableAutonomousContainerDatabases']

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

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

  self.autonomous_vm_resource_usage = attributes[:'autonomousVmResourceUsage'] if attributes[:'autonomousVmResourceUsage']

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

  self.autonomous_vm_resource_usage = attributes[:'autonomous_vm_resource_usage'] if attributes[:'autonomous_vm_resource_usage']
end

Instance Attribute Details

#autonomous_data_storage_size_in_tbsFloat

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

Returns:

  • (Float)


22
23
24
# File 'lib/oci/database/models/cloud_autonomous_vm_cluster_resource_usage.rb', line 22

def autonomous_data_storage_size_in_tbs
  @autonomous_data_storage_size_in_tbs
end

#autonomous_vm_resource_usageArray<OCI::Database::Models::AutonomousVmResourceUsage>

List of Autonomous VM resource usages.



96
97
98
# File 'lib/oci/database/models/cloud_autonomous_vm_cluster_resource_usage.rb', line 96

def autonomous_vm_resource_usage
  @autonomous_vm_resource_usage
end

#available_autonomous_data_storage_size_in_tbsFloat

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

Returns:

  • (Float)


38
39
40
# File 'lib/oci/database/models/cloud_autonomous_vm_cluster_resource_usage.rb', line 38

def available_autonomous_data_storage_size_in_tbs
  @available_autonomous_data_storage_size_in_tbs
end

#available_cpusFloat

The number of CPU cores available.

Returns:

  • (Float)


64
65
66
# File 'lib/oci/database/models/cloud_autonomous_vm_cluster_resource_usage.rb', line 64

def available_cpus
  @available_cpus
end

#db_node_storage_size_in_gbsInteger

The local node storage allocated in GBs.

Returns:

  • (Integer)


26
27
28
# File 'lib/oci/database/models/cloud_autonomous_vm_cluster_resource_usage.rb', line 26

def db_node_storage_size_in_gbs
  @db_node_storage_size_in_gbs
end

#display_nameString

[Required] The user-friendly name for the Autonomous VM cluster. The name does not need to be unique.

Returns:

  • (String)


14
15
16
# File 'lib/oci/database/models/cloud_autonomous_vm_cluster_resource_usage.rb', line 14

def display_name
  @display_name
end

#exadata_storage_in_tbsFloat

Total exadata storage allocated for the Autonomous VM Cluster. DATA + RECOVERY + SPARSE + any overhead in TBs.

Returns:

  • (Float)


50
51
52
# File 'lib/oci/database/models/cloud_autonomous_vm_cluster_resource_usage.rb', line 50

def exadata_storage_in_tbs
  @exadata_storage_in_tbs
end

#idString

The OCID of the Cloud Autonomous VM cluster.

Returns:

  • (String)


18
19
20
# File 'lib/oci/database/models/cloud_autonomous_vm_cluster_resource_usage.rb', line 18

def id
  @id
end

#memory_per_oracle_compute_unit_in_gbsInteger

The amount of memory (in GBs) to be enabled per each CPU core.

Returns:

  • (Integer)


46
47
48
# File 'lib/oci/database/models/cloud_autonomous_vm_cluster_resource_usage.rb', line 46

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)


30
31
32
# File 'lib/oci/database/models/cloud_autonomous_vm_cluster_resource_usage.rb', line 30

def memory_size_in_gbs
  @memory_size_in_gbs
end

#non_provisionable_autonomous_container_databasesInteger

The number of non-provisionable Autonomous Container Databases in an Autonomous VM Cluster.

Returns:

  • (Integer)


92
93
94
# File 'lib/oci/database/models/cloud_autonomous_vm_cluster_resource_usage.rb', line 92

def non_provisionable_autonomous_container_databases
  @non_provisionable_autonomous_container_databases
end

#provisionable_autonomous_container_databasesInteger

The number of provisionable Autonomous Container Databases in an Autonomous VM Cluster.

Returns:

  • (Integer)


84
85
86
# File 'lib/oci/database/models/cloud_autonomous_vm_cluster_resource_usage.rb', line 84

def provisionable_autonomous_container_databases
  @provisionable_autonomous_container_databases
end

#provisioned_autonomous_container_databasesInteger

The number of provisioned Autonomous Container Databases in an Autonomous VM Cluster.

Returns:

  • (Integer)


88
89
90
# File 'lib/oci/database/models/cloud_autonomous_vm_cluster_resource_usage.rb', line 88

def provisioned_autonomous_container_databases
  @provisioned_autonomous_container_databases
end

#provisioned_cpusFloat

The number of CPUs provisioned in an Autonomous VM Cluster.

Returns:

  • (Float)


76
77
78
# File 'lib/oci/database/models/cloud_autonomous_vm_cluster_resource_usage.rb', line 76

def provisioned_cpus
  @provisioned_cpus
end

#reclaimable_cpusFloat

CPU cores that continue to be included in the count of OCPUs 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 OCPUs at its parent AVMC level by restarting the Autonomous Container Database.

Returns:

  • (Float)


72
73
74
# File 'lib/oci/database/models/cloud_autonomous_vm_cluster_resource_usage.rb', line 72

def reclaimable_cpus
  @reclaimable_cpus
end

#reserved_cpusFloat

The number of CPUs reserved in an Autonomous VM Cluster.

Returns:

  • (Float)


80
81
82
# File 'lib/oci/database/models/cloud_autonomous_vm_cluster_resource_usage.rb', line 80

def reserved_cpus
  @reserved_cpus
end

#total_container_databasesInteger

The total number of Autonomous Container Databases that can be created.

Returns:

  • (Integer)


34
35
36
# File 'lib/oci/database/models/cloud_autonomous_vm_cluster_resource_usage.rb', line 34

def total_container_databases
  @total_container_databases
end

#total_cpusFloat

The number of CPU cores enabled on the Cloud Autonomous VM cluster.

Returns:

  • (Float)


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

def total_cpus
  @total_cpus
end

#used_autonomous_data_storage_size_in_tbsFloat

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

Returns:

  • (Float)


42
43
44
# File 'lib/oci/database/models/cloud_autonomous_vm_cluster_resource_usage.rb', line 42

def used_autonomous_data_storage_size_in_tbs
  @used_autonomous_data_storage_size_in_tbs
end

#used_cpusFloat

The number of CPU cores alloted to the Autonomous Container Databases in an Cloud Autonomous VM cluster.

Returns:

  • (Float)


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

def used_cpus
  @used_cpus
end

Class Method Details

.attribute_mapObject

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



99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
# File 'lib/oci/database/models/cloud_autonomous_vm_cluster_resource_usage.rb', line 99

def self.attribute_map
  {
    # rubocop:disable Style/SymbolLiteral
    'display_name': :'displayName',
    'id': :'id',
    'autonomous_data_storage_size_in_tbs': :'autonomousDataStorageSizeInTBs',
    'db_node_storage_size_in_gbs': :'dbNodeStorageSizeInGBs',
    'memory_size_in_gbs': :'memorySizeInGBs',
    'total_container_databases': :'totalContainerDatabases',
    'available_autonomous_data_storage_size_in_tbs': :'availableAutonomousDataStorageSizeInTBs',
    'used_autonomous_data_storage_size_in_tbs': :'usedAutonomousDataStorageSizeInTBs',
    'memory_per_oracle_compute_unit_in_gbs': :'memoryPerOracleComputeUnitInGBs',
    'exadata_storage_in_tbs': :'exadataStorageInTBs',
    'total_cpus': :'totalCpus',
    'used_cpus': :'usedCpus',
    'available_cpus': :'availableCpus',
    'reclaimable_cpus': :'reclaimableCpus',
    'provisioned_cpus': :'provisionedCpus',
    'reserved_cpus': :'reservedCpus',
    'provisionable_autonomous_container_databases': :'provisionableAutonomousContainerDatabases',
    'provisioned_autonomous_container_databases': :'provisionedAutonomousContainerDatabases',
    'non_provisionable_autonomous_container_databases': :'nonProvisionableAutonomousContainerDatabases',
    'autonomous_vm_resource_usage': :'autonomousVmResourceUsage'
    # rubocop:enable Style/SymbolLiteral
  }
end

.swagger_typesObject

Attribute type mapping.



127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
# File 'lib/oci/database/models/cloud_autonomous_vm_cluster_resource_usage.rb', line 127

def self.swagger_types
  {
    # rubocop:disable Style/SymbolLiteral
    'display_name': :'String',
    'id': :'String',
    'autonomous_data_storage_size_in_tbs': :'Float',
    'db_node_storage_size_in_gbs': :'Integer',
    'memory_size_in_gbs': :'Integer',
    'total_container_databases': :'Integer',
    'available_autonomous_data_storage_size_in_tbs': :'Float',
    'used_autonomous_data_storage_size_in_tbs': :'Float',
    'memory_per_oracle_compute_unit_in_gbs': :'Integer',
    'exadata_storage_in_tbs': :'Float',
    'total_cpus': :'Float',
    'used_cpus': :'Float',
    'available_cpus': :'Float',
    'reclaimable_cpus': :'Float',
    'provisioned_cpus': :'Float',
    'reserved_cpus': :'Float',
    'provisionable_autonomous_container_databases': :'Integer',
    'provisioned_autonomous_container_databases': :'Integer',
    'non_provisionable_autonomous_container_databases': :'Integer',
    'autonomous_vm_resource_usage': :'Array<OCI::Database::Models::AutonomousVmResourceUsage>'
    # 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



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

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

  self.class == other.class &&
    display_name == other.display_name &&
    id == other.id &&
    autonomous_data_storage_size_in_tbs == other.autonomous_data_storage_size_in_tbs &&
    db_node_storage_size_in_gbs == other.db_node_storage_size_in_gbs &&
    memory_size_in_gbs == other.memory_size_in_gbs &&
    total_container_databases == other.total_container_databases &&
    available_autonomous_data_storage_size_in_tbs == other.available_autonomous_data_storage_size_in_tbs &&
    used_autonomous_data_storage_size_in_tbs == other.used_autonomous_data_storage_size_in_tbs &&
    memory_per_oracle_compute_unit_in_gbs == other.memory_per_oracle_compute_unit_in_gbs &&
    exadata_storage_in_tbs == other.exadata_storage_in_tbs &&
    total_cpus == other.total_cpus &&
    used_cpus == other.used_cpus &&
    available_cpus == other.available_cpus &&
    reclaimable_cpus == other.reclaimable_cpus &&
    provisioned_cpus == other.provisioned_cpus &&
    reserved_cpus == other.reserved_cpus &&
    provisionable_autonomous_container_databases == other.provisionable_autonomous_container_databases &&
    provisioned_autonomous_container_databases == other.provisioned_autonomous_container_databases &&
    non_provisionable_autonomous_container_databases == other.non_provisionable_autonomous_container_databases &&
    autonomous_vm_resource_usage == other.autonomous_vm_resource_usage
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



359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
# File 'lib/oci/database/models/cloud_autonomous_vm_cluster_resource_usage.rb', line 359

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


339
340
341
# File 'lib/oci/database/models/cloud_autonomous_vm_cluster_resource_usage.rb', line 339

def eql?(other)
  self == other
end

#hashFixnum

Calculates hash code according to all attributes.

Returns:

  • (Fixnum)

    Hash code



348
349
350
# File 'lib/oci/database/models/cloud_autonomous_vm_cluster_resource_usage.rb', line 348

def hash
  [display_name, id, autonomous_data_storage_size_in_tbs, db_node_storage_size_in_gbs, memory_size_in_gbs, total_container_databases, available_autonomous_data_storage_size_in_tbs, used_autonomous_data_storage_size_in_tbs, memory_per_oracle_compute_unit_in_gbs, exadata_storage_in_tbs, total_cpus, used_cpus, available_cpus, reclaimable_cpus, provisioned_cpus, reserved_cpus, provisionable_autonomous_container_databases, provisioned_autonomous_container_databases, non_provisionable_autonomous_container_databases, autonomous_vm_resource_usage].hash
end

#to_hashHash

Returns the object in the form of hash

Returns:

  • (Hash)

    Returns the object in the form of hash



392
393
394
395
396
397
398
399
400
401
# File 'lib/oci/database/models/cloud_autonomous_vm_cluster_resource_usage.rb', line 392

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



386
387
388
# File 'lib/oci/database/models/cloud_autonomous_vm_cluster_resource_usage.rb', line 386

def to_s
  to_hash.to_s
end