Class: OCI::Database::Models::AutonomousVmClusterResourceUsage
- Inherits:
-
Object
- Object
- OCI::Database::Models::AutonomousVmClusterResourceUsage
- Defined in:
- lib/oci/database/models/autonomous_vm_cluster_resource_usage.rb
Overview
Autonomous VM Cluster usage details, including the Autonomous Container Databases usage.
Instance Attribute Summary collapse
-
#autonomous_data_storage_size_in_tbs ⇒ Float
The data disk group size allocated for Autonomous Databases, in TBs.
-
#autonomous_vm_resource_usage ⇒ Array<OCI::Database::Models::AutonomousVmResourceUsage>
List of autonomous vm cluster resource usages.
-
#available_autonomous_data_storage_size_in_tbs ⇒ Float
The data disk group size available for Autonomous Databases, in TBs.
-
#available_cpus ⇒ Float
The number of CPU cores available.
-
#db_node_storage_size_in_gbs ⇒ Integer
The local node storage allocated in GBs.
-
#display_name ⇒ String
[Required] The user-friendly name for the Autonomous VM cluster.
-
#exadata_storage_in_tbs ⇒ Float
Total exadata storage allocated for the Autonomous VM Cluster.
-
#id ⇒ String
The OCID of the Autonomous VM cluster.
-
#is_local_backup_enabled ⇒ BOOLEAN
If true, database backup on local Exadata storage is configured for the Autonomous VM cluster.
-
#memory_per_oracle_compute_unit_in_gbs ⇒ Integer
The amount of memory (in GBs) to be enabled per each CPU core.
-
#memory_size_in_gbs ⇒ Integer
The memory allocated in GBs.
-
#non_provisionable_autonomous_container_databases ⇒ Integer
The number of non-provisionable Autonomous Container Databases in an Autonomous VM Cluster.
-
#provisionable_autonomous_container_databases ⇒ Integer
The number of provisionable Autonomous Container Databases in an Autonomous VM Cluster.
-
#provisioned_autonomous_container_databases ⇒ Integer
The number of provisioned Autonomous Container Databases in an Autonomous VM Cluster.
-
#provisioned_cpus ⇒ Float
The number of CPUs provisioned in an Autonomous VM Cluster.
-
#reclaimable_cpus ⇒ Float
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.
-
#reserved_cpus ⇒ Float
The number of CPUs reserved in an Autonomous VM Cluster.
-
#total_container_databases ⇒ Integer
The total number of Autonomous Container Databases that can be created.
-
#total_cpus ⇒ Float
The number of CPU cores enabled on the Autonomous VM cluster.
-
#used_autonomous_data_storage_size_in_tbs ⇒ Float
The data disk group size used for Autonomous Databases, in TBs.
-
#used_cpus ⇒ Float
The number of CPU cores alloted to the Autonomous Container Databases in an Autonomous VM cluster.
Class Method Summary collapse
-
.attribute_map ⇒ Object
Attribute mapping from ruby-style variable name to JSON key.
-
.swagger_types ⇒ Object
Attribute type mapping.
Instance Method Summary collapse
-
#==(other) ⇒ Object
Checks equality by comparing each attribute.
-
#build_from_hash(attributes) ⇒ Object
Builds the object from hash.
- #eql?(other) ⇒ Boolean
-
#hash ⇒ Fixnum
Calculates hash code according to all attributes.
-
#initialize(attributes = {}) ⇒ AutonomousVmClusterResourceUsage
constructor
Initializes the object.
-
#to_hash ⇒ Hash
Returns the object in the form of hash.
-
#to_s ⇒ String
Returns the string representation of the object.
Constructor Details
#initialize(attributes = {}) ⇒ AutonomousVmClusterResourceUsage
Initializes the object
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 302 303 304 305 306 307 308 309 310 311 |
# File 'lib/oci/database/models/autonomous_vm_cluster_resource_usage.rb', line 184 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.is_local_backup_enabled = attributes[:'isLocalBackupEnabled'] unless attributes[:'isLocalBackupEnabled'].nil? raise 'You cannot provide both :isLocalBackupEnabled and :is_local_backup_enabled' if attributes.key?(:'isLocalBackupEnabled') && attributes.key?(:'is_local_backup_enabled') self.is_local_backup_enabled = attributes[:'is_local_backup_enabled'] unless attributes[:'is_local_backup_enabled'].nil? 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.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.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_tbs ⇒ Float
The data disk group size allocated for Autonomous Databases, in TBs.
22 23 24 |
# File 'lib/oci/database/models/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_usage ⇒ Array<OCI::Database::Models::AutonomousVmResourceUsage>
List of autonomous vm cluster resource usages.
97 98 99 |
# File 'lib/oci/database/models/autonomous_vm_cluster_resource_usage.rb', line 97 def autonomous_vm_resource_usage @autonomous_vm_resource_usage end |
#available_autonomous_data_storage_size_in_tbs ⇒ Float
The data disk group size available for Autonomous Databases, in TBs.
38 39 40 |
# File 'lib/oci/database/models/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_cpus ⇒ Float
The number of CPU cores available.
66 67 68 |
# File 'lib/oci/database/models/autonomous_vm_cluster_resource_usage.rb', line 66 def available_cpus @available_cpus end |
#db_node_storage_size_in_gbs ⇒ Integer
The local node storage allocated in GBs.
26 27 28 |
# File 'lib/oci/database/models/autonomous_vm_cluster_resource_usage.rb', line 26 def db_node_storage_size_in_gbs @db_node_storage_size_in_gbs end |
#display_name ⇒ String
[Required] The user-friendly name for the Autonomous VM cluster. The name does not need to be unique.
14 15 16 |
# File 'lib/oci/database/models/autonomous_vm_cluster_resource_usage.rb', line 14 def display_name @display_name end |
#exadata_storage_in_tbs ⇒ Float
Total exadata storage allocated for the Autonomous VM Cluster. DATA + RECOVERY + SPARSE + any overhead in TBs.
50 51 52 |
# File 'lib/oci/database/models/autonomous_vm_cluster_resource_usage.rb', line 50 def exadata_storage_in_tbs @exadata_storage_in_tbs end |
#id ⇒ String
The OCID of the Autonomous VM cluster.
18 19 20 |
# File 'lib/oci/database/models/autonomous_vm_cluster_resource_usage.rb', line 18 def id @id end |
#is_local_backup_enabled ⇒ BOOLEAN
If true, database backup on local Exadata storage is configured for the Autonomous VM cluster. If false, database backup on local Exadata storage is not available in the Autonomous VM cluster.
46 47 48 |
# File 'lib/oci/database/models/autonomous_vm_cluster_resource_usage.rb', line 46 def is_local_backup_enabled @is_local_backup_enabled end |
#memory_per_oracle_compute_unit_in_gbs ⇒ Integer
The amount of memory (in GBs) to be enabled per each CPU core.
54 55 56 |
# File 'lib/oci/database/models/autonomous_vm_cluster_resource_usage.rb', line 54 def memory_per_oracle_compute_unit_in_gbs @memory_per_oracle_compute_unit_in_gbs end |
#memory_size_in_gbs ⇒ Integer
The memory allocated in GBs.
30 31 32 |
# File 'lib/oci/database/models/autonomous_vm_cluster_resource_usage.rb', line 30 def memory_size_in_gbs @memory_size_in_gbs end |
#non_provisionable_autonomous_container_databases ⇒ Integer
The number of non-provisionable Autonomous Container Databases in an Autonomous VM Cluster.
93 94 95 |
# File 'lib/oci/database/models/autonomous_vm_cluster_resource_usage.rb', line 93 def non_provisionable_autonomous_container_databases @non_provisionable_autonomous_container_databases end |
#provisionable_autonomous_container_databases ⇒ Integer
The number of provisionable Autonomous Container Databases in an Autonomous VM Cluster.
85 86 87 |
# File 'lib/oci/database/models/autonomous_vm_cluster_resource_usage.rb', line 85 def provisionable_autonomous_container_databases @provisionable_autonomous_container_databases end |
#provisioned_autonomous_container_databases ⇒ Integer
The number of provisioned Autonomous Container Databases in an Autonomous VM Cluster.
89 90 91 |
# File 'lib/oci/database/models/autonomous_vm_cluster_resource_usage.rb', line 89 def provisioned_autonomous_container_databases @provisioned_autonomous_container_databases end |
#provisioned_cpus ⇒ Float
The number of CPUs provisioned in an Autonomous VM Cluster.
77 78 79 |
# File 'lib/oci/database/models/autonomous_vm_cluster_resource_usage.rb', line 77 def provisioned_cpus @provisioned_cpus end |
#reclaimable_cpus ⇒ Float
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.
73 74 75 |
# File 'lib/oci/database/models/autonomous_vm_cluster_resource_usage.rb', line 73 def reclaimable_cpus @reclaimable_cpus end |
#reserved_cpus ⇒ Float
The number of CPUs reserved in an Autonomous VM Cluster.
81 82 83 |
# File 'lib/oci/database/models/autonomous_vm_cluster_resource_usage.rb', line 81 def reserved_cpus @reserved_cpus end |
#total_container_databases ⇒ Integer
The total number of Autonomous Container Databases that can be created.
34 35 36 |
# File 'lib/oci/database/models/autonomous_vm_cluster_resource_usage.rb', line 34 def total_container_databases @total_container_databases end |
#total_cpus ⇒ Float
The number of CPU cores enabled on the Autonomous VM cluster.
58 59 60 |
# File 'lib/oci/database/models/autonomous_vm_cluster_resource_usage.rb', line 58 def total_cpus @total_cpus end |
#used_autonomous_data_storage_size_in_tbs ⇒ Float
The data disk group size used for Autonomous Databases, in TBs.
42 43 44 |
# File 'lib/oci/database/models/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_cpus ⇒ Float
The number of CPU cores alloted to the Autonomous Container Databases in an Autonomous VM cluster.
62 63 64 |
# File 'lib/oci/database/models/autonomous_vm_cluster_resource_usage.rb', line 62 def used_cpus @used_cpus end |
Class Method Details
.attribute_map ⇒ Object
Attribute mapping from ruby-style variable name to JSON key.
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 125 126 |
# File 'lib/oci/database/models/autonomous_vm_cluster_resource_usage.rb', line 100 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', 'is_local_backup_enabled': :'isLocalBackupEnabled', 'exadata_storage_in_tbs': :'exadataStorageInTBs', 'memory_per_oracle_compute_unit_in_gbs': :'memoryPerOracleComputeUnitInGBs', '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_types ⇒ Object
Attribute type mapping.
129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 |
# File 'lib/oci/database/models/autonomous_vm_cluster_resource_usage.rb', line 129 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', 'is_local_backup_enabled': :'BOOLEAN', 'exadata_storage_in_tbs': :'Float', 'memory_per_oracle_compute_unit_in_gbs': :'Integer', '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.
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 |
# File 'lib/oci/database/models/autonomous_vm_cluster_resource_usage.rb', line 320 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 && is_local_backup_enabled == other.is_local_backup_enabled && exadata_storage_in_tbs == other.exadata_storage_in_tbs && memory_per_oracle_compute_unit_in_gbs == other.memory_per_oracle_compute_unit_in_gbs && 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
370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 |
# File 'lib/oci/database/models/autonomous_vm_cluster_resource_usage.rb', line 370 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
350 351 352 |
# File 'lib/oci/database/models/autonomous_vm_cluster_resource_usage.rb', line 350 def eql?(other) self == other end |
#hash ⇒ Fixnum
Calculates hash code according to all attributes.
359 360 361 |
# File 'lib/oci/database/models/autonomous_vm_cluster_resource_usage.rb', line 359 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, is_local_backup_enabled, exadata_storage_in_tbs, memory_per_oracle_compute_unit_in_gbs, 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_hash ⇒ Hash
Returns the object in the form of hash
403 404 405 406 407 408 409 410 411 412 |
# File 'lib/oci/database/models/autonomous_vm_cluster_resource_usage.rb', line 403 def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| value = public_method(attr).call next if value.nil? && !instance_variable_defined?("@#{attr}") hash[param] = _to_hash(value) end hash end |
#to_s ⇒ String
Returns the string representation of the object
397 398 399 |
# File 'lib/oci/database/models/autonomous_vm_cluster_resource_usage.rb', line 397 def to_s to_hash.to_s end |