Class: NutanixClustermgmt::ClustermgmtV40StatsStorageContainerStats
- Inherits:
-
ApiModelBase
- Object
- ApiModelBase
- NutanixClustermgmt::ClustermgmtV40StatsStorageContainerStats
- Defined in:
- lib/nutanix_clustermgmt/models/clustermgmt_v40_stats_storage_container_stats.rb
Instance Attribute Summary collapse
-
#container_ext_id ⇒ Object
The external identifier of the Storage Container.
-
#controller_avg_io_latencyu_secs ⇒ Object
Average I/O latency in micro secs.
-
#controller_avg_read_io_latencyu_secs ⇒ Object
Average read I/O latency in microseconds.
-
#controller_avg_write_io_latencyu_secs ⇒ Object
Average read I/O latency in microseconds.
-
#controller_io_bandwidthk_bps ⇒ Object
Total I/O bandwidth - kB per second.
-
#controller_num_iops ⇒ Object
Number of I/O per second.
-
#controller_num_read_iops ⇒ Object
Number of read I/O per second.
-
#controller_num_write_iops ⇒ Object
Number of write I/O per second.
-
#controller_read_io_bandwidthk_bps ⇒ Object
Read I/O bandwidth kB per second.
-
#controller_read_io_ratio_ppm ⇒ Object
Ratio of read I/O to total I/O in PPM.
-
#controller_write_io_bandwidthk_bps ⇒ Object
Write I/O bandwidth kB per second.
-
#controller_write_io_ratio_ppm ⇒ Object
Ratio of read I/O to total I/O in PPM.
-
#data_reduction_clone_saved_bytes ⇒ Object
Storage saving in bytes as a result of the cloning technique.
-
#data_reduction_clone_saving_ratio_ppm ⇒ Object
Saving ratio in PPM as a result of the cloning technique.
-
#data_reduction_compression_saved_bytes ⇒ Object
Storage saving in bytes as a result of compression technique.
-
#data_reduction_compression_saving_ratio_ppm ⇒ Object
Saving ratio in PPM as a result of the compression technique.
-
#data_reduction_dedup_saved_bytes ⇒ Object
Storage saving in bytes as a result of deduplication technique.
-
#data_reduction_dedup_saving_ratio_ppm ⇒ Object
Saving ratio in PPM as a result of the deduplication technique.
-
#data_reduction_erasure_coding_saved_bytes ⇒ Object
Storage saving in bytes as a result of erasure coding technique.
-
#data_reduction_erasure_coding_saving_ratio_ppm ⇒ Object
Saving ratio in PPM as a result of the erasure coding technique.
-
#data_reduction_overall_post_reduction_bytes ⇒ Object
Usage in bytes after reduction of ceduplication, compression, erasure coding, cloning, and thin provisioning.
-
#data_reduction_overall_pre_reduction_bytes ⇒ Object
Usage in bytes before reduction of deduplication, compression, erasure coding, cloning, and thin provisioning.
-
#data_reduction_overall_saved_bytes ⇒ Object
Storage saving in bytes as a result of deduplication, compression, erasure coding, cloning and thin provisioning technique.
-
#data_reduction_saved_bytes ⇒ Object
Storage saving in bytes as a result of deduplication, compression, erasure coding technique.
-
#data_reduction_saving_ratio_ppm ⇒ Object
Saving ratio in PPM as a result of deduplication, compression and erasure coding.
-
#data_reduction_snapshot_saved_bytes ⇒ Object
Storage saving in bytes as a result of the snapshot technique.
-
#data_reduction_snapshot_saving_ratio_ppm ⇒ Object
Saving ratio in PPM as a result of snapshot technique.
-
#data_reduction_thin_provision_saved_bytes ⇒ Object
Storage saving in bytes as a result of thin Provisioning technique.
-
#data_reduction_thin_provision_saving_ratio_ppm ⇒ Object
Saving ratio in PPM as a result of the thin provisioning technique.
-
#data_reduction_total_saving_ratio_ppm ⇒ Object
Saving ratio in PPM consisting of deduplication, compression, erasure coding, cloning, and thin provisioning.
-
#data_reduction_zero_write_savings_bytes ⇒ Object
Total amount of savings in bytes as a result of zero writes.
-
#ext_id ⇒ Object
A globally unique identifier of an instance that is suitable for external consumption.
-
#health ⇒ Object
Health of the Storage Container is represented by an integer value in the range 0-100.
-
#links ⇒ Object
A HATEOAS style link for the response.
-
#storage_actual_physical_usage_bytes ⇒ Object
Actual physical disk usage of the Storage Container without considering for the reservation.
-
#storage_capacity_bytes ⇒ Object
Storage capacity in bytes.
-
#storage_free_bytes ⇒ Object
Free storage in bytes.
-
#storage_other_containers_reserved_capacity ⇒ Object
The total explicit reserved physical capacity of other Storage Containers in the same Storage Pool.
-
#storage_other_containers_unreserved_capacity ⇒ Object
The physical usage outside of the explicitly reserved capacity of other Storage Containers in the same Storage Pool.
-
#storage_replication_factor ⇒ Object
Replication factor of Storage Container.
-
#storage_reserved_capacity_bytes ⇒ Object
Implicit physical reserved capacity (aggregated at the vDisk level due to thick provisioning) in bytes.
-
#storage_reserved_free_bytes ⇒ Object
The remaining unused space of the implicit reserved capacity(aggregated on vDisk level due to thick provisioning) in bytes.
-
#storage_reserved_usage_bytes ⇒ Object
The physical usage of the implicit reserved capacity(aggregated on vDisk level due to thick provisioning) in bytes.
-
#storage_snapshot_reclaimable ⇒ Object
The space that will be reclaimed if all the snapshots in the cluster is deleted.
-
#storage_tier_das_sata_usage_bytes ⇒ Object
Total usage on HDD tier for the Storage Container in bytes.
-
#storage_tier_ssd_usage_bytes ⇒ Object
Total usage on SDD tier for the Storage Container in bytes.
-
#storage_unreserved_usage_bytes ⇒ Object
The physical usage from unreserved vDisks(aggregated on thin provisioning vDisks) in bytes.
-
#storage_usage_bytes ⇒ Object
Used storage in bytes.
-
#tenant_id ⇒ Object
A globally unique identifier that represents the tenant that owns this entity.
Class Method Summary collapse
-
.acceptable_attribute_map ⇒ Object
Returns attribute mapping this model knows about.
-
.acceptable_attributes ⇒ Object
Returns all the JSON keys this model knows about.
-
.attribute_map ⇒ Object
Attribute mapping from ruby-style variable name to JSON key.
-
.build_from_hash(attributes) ⇒ Object
Builds the object from hash.
-
.openapi_all_of ⇒ Object
List of class defined in allOf (OpenAPI v3).
-
.openapi_nullable ⇒ Object
List of attributes with nullable: true.
-
.openapi_types ⇒ Object
Attribute type mapping.
Instance Method Summary collapse
-
#==(o) ⇒ Object
Checks equality by comparing each attribute.
- #eql?(o) ⇒ Boolean
-
#hash ⇒ Integer
Calculates hash code according to all attributes.
-
#initialize(attributes = {}) ⇒ ClustermgmtV40StatsStorageContainerStats
constructor
Initializes the object.
-
#list_invalid_properties ⇒ Object
Show invalid properties with the reasons.
-
#to_hash ⇒ Hash
Returns the object in the form of hash.
-
#valid? ⇒ Boolean
Check to see if the all the properties in the model are valid.
Methods inherited from ApiModelBase
_deserialize, #_to_hash, #to_body, #to_s
Constructor Details
#initialize(attributes = {}) ⇒ ClustermgmtV40StatsStorageContainerStats
Initializes the object
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 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 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 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 |
# File 'lib/nutanix_clustermgmt/models/clustermgmt_v40_stats_storage_container_stats.rb', line 301 def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `NutanixClustermgmt::ClustermgmtV40StatsStorageContainerStats` initialize method" end # check to see if the attribute exists and convert string to symbol for hash key acceptable_attribute_map = self.class.acceptable_attribute_map attributes = attributes.each_with_object({}) { |(k, v), h| if (!acceptable_attribute_map.key?(k.to_sym)) fail ArgumentError, "`#{k}` is not a valid attribute in `NutanixClustermgmt::ClustermgmtV40StatsStorageContainerStats`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect end h[k.to_sym] = v } if attributes.key?(:'tenant_id') self.tenant_id = attributes[:'tenant_id'] end if attributes.key?(:'ext_id') self.ext_id = attributes[:'ext_id'] end if attributes.key?(:'links') if (value = attributes[:'links']).is_a?(Array) self.links = value end end if attributes.key?(:'controller_num_iops') if (value = attributes[:'controller_num_iops']).is_a?(Array) self.controller_num_iops = value end end if attributes.key?(:'controller_io_bandwidthk_bps') if (value = attributes[:'controller_io_bandwidthk_bps']).is_a?(Array) self.controller_io_bandwidthk_bps = value end end if attributes.key?(:'controller_avg_io_latencyu_secs') if (value = attributes[:'controller_avg_io_latencyu_secs']).is_a?(Array) self.controller_avg_io_latencyu_secs = value end end if attributes.key?(:'controller_num_read_iops') if (value = attributes[:'controller_num_read_iops']).is_a?(Array) self.controller_num_read_iops = value end end if attributes.key?(:'controller_num_write_iops') if (value = attributes[:'controller_num_write_iops']).is_a?(Array) self.controller_num_write_iops = value end end if attributes.key?(:'controller_read_io_bandwidthk_bps') if (value = attributes[:'controller_read_io_bandwidthk_bps']).is_a?(Array) self.controller_read_io_bandwidthk_bps = value end end if attributes.key?(:'controller_write_io_bandwidthk_bps') if (value = attributes[:'controller_write_io_bandwidthk_bps']).is_a?(Array) self.controller_write_io_bandwidthk_bps = value end end if attributes.key?(:'controller_avg_read_io_latencyu_secs') if (value = attributes[:'controller_avg_read_io_latencyu_secs']).is_a?(Array) self.controller_avg_read_io_latencyu_secs = value end end if attributes.key?(:'controller_avg_write_io_latencyu_secs') if (value = attributes[:'controller_avg_write_io_latencyu_secs']).is_a?(Array) self.controller_avg_write_io_latencyu_secs = value end end if attributes.key?(:'storage_reserved_capacity_bytes') if (value = attributes[:'storage_reserved_capacity_bytes']).is_a?(Array) self.storage_reserved_capacity_bytes = value end end if attributes.key?(:'storage_actual_physical_usage_bytes') if (value = attributes[:'storage_actual_physical_usage_bytes']).is_a?(Array) self.storage_actual_physical_usage_bytes = value end end if attributes.key?(:'data_reduction_saving_ratio_ppm') if (value = attributes[:'data_reduction_saving_ratio_ppm']).is_a?(Array) self.data_reduction_saving_ratio_ppm = value end end if attributes.key?(:'data_reduction_total_saving_ratio_ppm') if (value = attributes[:'data_reduction_total_saving_ratio_ppm']).is_a?(Array) self.data_reduction_total_saving_ratio_ppm = value end end if attributes.key?(:'storage_free_bytes') if (value = attributes[:'storage_free_bytes']).is_a?(Array) self.storage_free_bytes = value end end if attributes.key?(:'storage_capacity_bytes') if (value = attributes[:'storage_capacity_bytes']).is_a?(Array) self.storage_capacity_bytes = value end end if attributes.key?(:'data_reduction_saved_bytes') if (value = attributes[:'data_reduction_saved_bytes']).is_a?(Array) self.data_reduction_saved_bytes = value end end if attributes.key?(:'data_reduction_overall_pre_reduction_bytes') if (value = attributes[:'data_reduction_overall_pre_reduction_bytes']).is_a?(Array) self.data_reduction_overall_pre_reduction_bytes = value end end if attributes.key?(:'data_reduction_overall_post_reduction_bytes') if (value = attributes[:'data_reduction_overall_post_reduction_bytes']).is_a?(Array) self.data_reduction_overall_post_reduction_bytes = value end end if attributes.key?(:'data_reduction_compression_saving_ratio_ppm') if (value = attributes[:'data_reduction_compression_saving_ratio_ppm']).is_a?(Array) self.data_reduction_compression_saving_ratio_ppm = value end end if attributes.key?(:'data_reduction_dedup_saving_ratio_ppm') if (value = attributes[:'data_reduction_dedup_saving_ratio_ppm']).is_a?(Array) self.data_reduction_dedup_saving_ratio_ppm = value end end if attributes.key?(:'data_reduction_erasure_coding_saving_ratio_ppm') if (value = attributes[:'data_reduction_erasure_coding_saving_ratio_ppm']).is_a?(Array) self.data_reduction_erasure_coding_saving_ratio_ppm = value end end if attributes.key?(:'data_reduction_thin_provision_saving_ratio_ppm') if (value = attributes[:'data_reduction_thin_provision_saving_ratio_ppm']).is_a?(Array) self.data_reduction_thin_provision_saving_ratio_ppm = value end end if attributes.key?(:'data_reduction_clone_saving_ratio_ppm') if (value = attributes[:'data_reduction_clone_saving_ratio_ppm']).is_a?(Array) self.data_reduction_clone_saving_ratio_ppm = value end end if attributes.key?(:'data_reduction_snapshot_saving_ratio_ppm') if (value = attributes[:'data_reduction_snapshot_saving_ratio_ppm']).is_a?(Array) self.data_reduction_snapshot_saving_ratio_ppm = value end end if attributes.key?(:'data_reduction_zero_write_savings_bytes') if (value = attributes[:'data_reduction_zero_write_savings_bytes']).is_a?(Array) self.data_reduction_zero_write_savings_bytes = value end end if attributes.key?(:'controller_read_io_ratio_ppm') if (value = attributes[:'controller_read_io_ratio_ppm']).is_a?(Array) self.controller_read_io_ratio_ppm = value end end if attributes.key?(:'controller_write_io_ratio_ppm') if (value = attributes[:'controller_write_io_ratio_ppm']).is_a?(Array) self.controller_write_io_ratio_ppm = value end end if attributes.key?(:'storage_replication_factor') if (value = attributes[:'storage_replication_factor']).is_a?(Array) self.storage_replication_factor = value end end if attributes.key?(:'storage_usage_bytes') if (value = attributes[:'storage_usage_bytes']).is_a?(Array) self.storage_usage_bytes = value end end if attributes.key?(:'storage_tier_das_sata_usage_bytes') if (value = attributes[:'storage_tier_das_sata_usage_bytes']).is_a?(Array) self.storage_tier_das_sata_usage_bytes = value end end if attributes.key?(:'storage_tier_ssd_usage_bytes') if (value = attributes[:'storage_tier_ssd_usage_bytes']).is_a?(Array) self.storage_tier_ssd_usage_bytes = value end end if attributes.key?(:'storage_reserved_usage_bytes') if (value = attributes[:'storage_reserved_usage_bytes']).is_a?(Array) self.storage_reserved_usage_bytes = value end end if attributes.key?(:'storage_reserved_free_bytes') if (value = attributes[:'storage_reserved_free_bytes']).is_a?(Array) self.storage_reserved_free_bytes = value end end if attributes.key?(:'storage_unreserved_usage_bytes') if (value = attributes[:'storage_unreserved_usage_bytes']).is_a?(Array) self.storage_unreserved_usage_bytes = value end end if attributes.key?(:'storage_other_containers_reserved_capacity') if (value = attributes[:'storage_other_containers_reserved_capacity']).is_a?(Array) self.storage_other_containers_reserved_capacity = value end end if attributes.key?(:'storage_other_containers_unreserved_capacity') if (value = attributes[:'storage_other_containers_unreserved_capacity']).is_a?(Array) self.storage_other_containers_unreserved_capacity = value end end if attributes.key?(:'storage_snapshot_reclaimable') if (value = attributes[:'storage_snapshot_reclaimable']).is_a?(Array) self.storage_snapshot_reclaimable = value end end if attributes.key?(:'data_reduction_thin_provision_saved_bytes') if (value = attributes[:'data_reduction_thin_provision_saved_bytes']).is_a?(Array) self.data_reduction_thin_provision_saved_bytes = value end end if attributes.key?(:'data_reduction_snapshot_saved_bytes') if (value = attributes[:'data_reduction_snapshot_saved_bytes']).is_a?(Array) self.data_reduction_snapshot_saved_bytes = value end end if attributes.key?(:'data_reduction_clone_saved_bytes') if (value = attributes[:'data_reduction_clone_saved_bytes']).is_a?(Array) self.data_reduction_clone_saved_bytes = value end end if attributes.key?(:'data_reduction_erasure_coding_saved_bytes') if (value = attributes[:'data_reduction_erasure_coding_saved_bytes']).is_a?(Array) self.data_reduction_erasure_coding_saved_bytes = value end end if attributes.key?(:'data_reduction_dedup_saved_bytes') if (value = attributes[:'data_reduction_dedup_saved_bytes']).is_a?(Array) self.data_reduction_dedup_saved_bytes = value end end if attributes.key?(:'data_reduction_overall_saved_bytes') if (value = attributes[:'data_reduction_overall_saved_bytes']).is_a?(Array) self.data_reduction_overall_saved_bytes = value end end if attributes.key?(:'data_reduction_compression_saved_bytes') if (value = attributes[:'data_reduction_compression_saved_bytes']).is_a?(Array) self.data_reduction_compression_saved_bytes = value end end if attributes.key?(:'health') if (value = attributes[:'health']).is_a?(Array) self.health = value end end if attributes.key?(:'container_ext_id') self.container_ext_id = attributes[:'container_ext_id'] end end |
Instance Attribute Details
#container_ext_id ⇒ Object
The external identifier of the Storage Container.
163 164 165 |
# File 'lib/nutanix_clustermgmt/models/clustermgmt_v40_stats_storage_container_stats.rb', line 163 def container_ext_id @container_ext_id end |
#controller_avg_io_latencyu_secs ⇒ Object
Average I/O latency in micro secs.
34 35 36 |
# File 'lib/nutanix_clustermgmt/models/clustermgmt_v40_stats_storage_container_stats.rb', line 34 def controller_avg_io_latencyu_secs @controller_avg_io_latencyu_secs end |
#controller_avg_read_io_latencyu_secs ⇒ Object
Average read I/O latency in microseconds.
49 50 51 |
# File 'lib/nutanix_clustermgmt/models/clustermgmt_v40_stats_storage_container_stats.rb', line 49 def controller_avg_read_io_latencyu_secs @controller_avg_read_io_latencyu_secs end |
#controller_avg_write_io_latencyu_secs ⇒ Object
Average read I/O latency in microseconds.
52 53 54 |
# File 'lib/nutanix_clustermgmt/models/clustermgmt_v40_stats_storage_container_stats.rb', line 52 def controller_avg_write_io_latencyu_secs @controller_avg_write_io_latencyu_secs end |
#controller_io_bandwidthk_bps ⇒ Object
Total I/O bandwidth - kB per second.
31 32 33 |
# File 'lib/nutanix_clustermgmt/models/clustermgmt_v40_stats_storage_container_stats.rb', line 31 def controller_io_bandwidthk_bps @controller_io_bandwidthk_bps end |
#controller_num_iops ⇒ Object
Number of I/O per second.
28 29 30 |
# File 'lib/nutanix_clustermgmt/models/clustermgmt_v40_stats_storage_container_stats.rb', line 28 def controller_num_iops @controller_num_iops end |
#controller_num_read_iops ⇒ Object
Number of read I/O per second.
37 38 39 |
# File 'lib/nutanix_clustermgmt/models/clustermgmt_v40_stats_storage_container_stats.rb', line 37 def controller_num_read_iops @controller_num_read_iops end |
#controller_num_write_iops ⇒ Object
Number of write I/O per second.
40 41 42 |
# File 'lib/nutanix_clustermgmt/models/clustermgmt_v40_stats_storage_container_stats.rb', line 40 def controller_num_write_iops @controller_num_write_iops end |
#controller_read_io_bandwidthk_bps ⇒ Object
Read I/O bandwidth kB per second.
43 44 45 |
# File 'lib/nutanix_clustermgmt/models/clustermgmt_v40_stats_storage_container_stats.rb', line 43 def controller_read_io_bandwidthk_bps @controller_read_io_bandwidthk_bps end |
#controller_read_io_ratio_ppm ⇒ Object
Ratio of read I/O to total I/O in PPM.
103 104 105 |
# File 'lib/nutanix_clustermgmt/models/clustermgmt_v40_stats_storage_container_stats.rb', line 103 def controller_read_io_ratio_ppm @controller_read_io_ratio_ppm end |
#controller_write_io_bandwidthk_bps ⇒ Object
Write I/O bandwidth kB per second.
46 47 48 |
# File 'lib/nutanix_clustermgmt/models/clustermgmt_v40_stats_storage_container_stats.rb', line 46 def controller_write_io_bandwidthk_bps @controller_write_io_bandwidthk_bps end |
#controller_write_io_ratio_ppm ⇒ Object
Ratio of read I/O to total I/O in PPM.
106 107 108 |
# File 'lib/nutanix_clustermgmt/models/clustermgmt_v40_stats_storage_container_stats.rb', line 106 def controller_write_io_ratio_ppm @controller_write_io_ratio_ppm end |
#data_reduction_clone_saved_bytes ⇒ Object
Storage saving in bytes as a result of the cloning technique.
145 146 147 |
# File 'lib/nutanix_clustermgmt/models/clustermgmt_v40_stats_storage_container_stats.rb', line 145 def data_reduction_clone_saved_bytes @data_reduction_clone_saved_bytes end |
#data_reduction_clone_saving_ratio_ppm ⇒ Object
Saving ratio in PPM as a result of the cloning technique.
94 95 96 |
# File 'lib/nutanix_clustermgmt/models/clustermgmt_v40_stats_storage_container_stats.rb', line 94 def data_reduction_clone_saving_ratio_ppm @data_reduction_clone_saving_ratio_ppm end |
#data_reduction_compression_saved_bytes ⇒ Object
Storage saving in bytes as a result of compression technique.
157 158 159 |
# File 'lib/nutanix_clustermgmt/models/clustermgmt_v40_stats_storage_container_stats.rb', line 157 def data_reduction_compression_saved_bytes @data_reduction_compression_saved_bytes end |
#data_reduction_compression_saving_ratio_ppm ⇒ Object
Saving ratio in PPM as a result of the compression technique.
82 83 84 |
# File 'lib/nutanix_clustermgmt/models/clustermgmt_v40_stats_storage_container_stats.rb', line 82 def data_reduction_compression_saving_ratio_ppm @data_reduction_compression_saving_ratio_ppm end |
#data_reduction_dedup_saved_bytes ⇒ Object
Storage saving in bytes as a result of deduplication technique.
151 152 153 |
# File 'lib/nutanix_clustermgmt/models/clustermgmt_v40_stats_storage_container_stats.rb', line 151 def data_reduction_dedup_saved_bytes @data_reduction_dedup_saved_bytes end |
#data_reduction_dedup_saving_ratio_ppm ⇒ Object
Saving ratio in PPM as a result of the deduplication technique.
85 86 87 |
# File 'lib/nutanix_clustermgmt/models/clustermgmt_v40_stats_storage_container_stats.rb', line 85 def data_reduction_dedup_saving_ratio_ppm @data_reduction_dedup_saving_ratio_ppm end |
#data_reduction_erasure_coding_saved_bytes ⇒ Object
Storage saving in bytes as a result of erasure coding technique.
148 149 150 |
# File 'lib/nutanix_clustermgmt/models/clustermgmt_v40_stats_storage_container_stats.rb', line 148 def data_reduction_erasure_coding_saved_bytes @data_reduction_erasure_coding_saved_bytes end |
#data_reduction_erasure_coding_saving_ratio_ppm ⇒ Object
Saving ratio in PPM as a result of the erasure coding technique.
88 89 90 |
# File 'lib/nutanix_clustermgmt/models/clustermgmt_v40_stats_storage_container_stats.rb', line 88 def data_reduction_erasure_coding_saving_ratio_ppm @data_reduction_erasure_coding_saving_ratio_ppm end |
#data_reduction_overall_post_reduction_bytes ⇒ Object
Usage in bytes after reduction of ceduplication, compression, erasure coding, cloning, and thin provisioning.
79 80 81 |
# File 'lib/nutanix_clustermgmt/models/clustermgmt_v40_stats_storage_container_stats.rb', line 79 def data_reduction_overall_post_reduction_bytes @data_reduction_overall_post_reduction_bytes end |
#data_reduction_overall_pre_reduction_bytes ⇒ Object
Usage in bytes before reduction of deduplication, compression, erasure coding, cloning, and thin provisioning.
76 77 78 |
# File 'lib/nutanix_clustermgmt/models/clustermgmt_v40_stats_storage_container_stats.rb', line 76 def data_reduction_overall_pre_reduction_bytes @data_reduction_overall_pre_reduction_bytes end |
#data_reduction_overall_saved_bytes ⇒ Object
Storage saving in bytes as a result of deduplication, compression, erasure coding, cloning and thin provisioning technique.
154 155 156 |
# File 'lib/nutanix_clustermgmt/models/clustermgmt_v40_stats_storage_container_stats.rb', line 154 def data_reduction_overall_saved_bytes @data_reduction_overall_saved_bytes end |
#data_reduction_saved_bytes ⇒ Object
Storage saving in bytes as a result of deduplication, compression, erasure coding technique.
73 74 75 |
# File 'lib/nutanix_clustermgmt/models/clustermgmt_v40_stats_storage_container_stats.rb', line 73 def data_reduction_saved_bytes @data_reduction_saved_bytes end |
#data_reduction_saving_ratio_ppm ⇒ Object
Saving ratio in PPM as a result of deduplication, compression and erasure coding.
61 62 63 |
# File 'lib/nutanix_clustermgmt/models/clustermgmt_v40_stats_storage_container_stats.rb', line 61 def data_reduction_saving_ratio_ppm @data_reduction_saving_ratio_ppm end |
#data_reduction_snapshot_saved_bytes ⇒ Object
Storage saving in bytes as a result of the snapshot technique.
142 143 144 |
# File 'lib/nutanix_clustermgmt/models/clustermgmt_v40_stats_storage_container_stats.rb', line 142 def data_reduction_snapshot_saved_bytes @data_reduction_snapshot_saved_bytes end |
#data_reduction_snapshot_saving_ratio_ppm ⇒ Object
Saving ratio in PPM as a result of snapshot technique.
97 98 99 |
# File 'lib/nutanix_clustermgmt/models/clustermgmt_v40_stats_storage_container_stats.rb', line 97 def data_reduction_snapshot_saving_ratio_ppm @data_reduction_snapshot_saving_ratio_ppm end |
#data_reduction_thin_provision_saved_bytes ⇒ Object
Storage saving in bytes as a result of thin Provisioning technique.
139 140 141 |
# File 'lib/nutanix_clustermgmt/models/clustermgmt_v40_stats_storage_container_stats.rb', line 139 def data_reduction_thin_provision_saved_bytes @data_reduction_thin_provision_saved_bytes end |
#data_reduction_thin_provision_saving_ratio_ppm ⇒ Object
Saving ratio in PPM as a result of the thin provisioning technique.
91 92 93 |
# File 'lib/nutanix_clustermgmt/models/clustermgmt_v40_stats_storage_container_stats.rb', line 91 def data_reduction_thin_provision_saving_ratio_ppm @data_reduction_thin_provision_saving_ratio_ppm end |
#data_reduction_total_saving_ratio_ppm ⇒ Object
Saving ratio in PPM consisting of deduplication, compression, erasure coding, cloning, and thin provisioning.
64 65 66 |
# File 'lib/nutanix_clustermgmt/models/clustermgmt_v40_stats_storage_container_stats.rb', line 64 def data_reduction_total_saving_ratio_ppm @data_reduction_total_saving_ratio_ppm end |
#data_reduction_zero_write_savings_bytes ⇒ Object
Total amount of savings in bytes as a result of zero writes.
100 101 102 |
# File 'lib/nutanix_clustermgmt/models/clustermgmt_v40_stats_storage_container_stats.rb', line 100 def data_reduction_zero_write_savings_bytes @data_reduction_zero_write_savings_bytes end |
#ext_id ⇒ Object
A globally unique identifier of an instance that is suitable for external consumption.
22 23 24 |
# File 'lib/nutanix_clustermgmt/models/clustermgmt_v40_stats_storage_container_stats.rb', line 22 def ext_id @ext_id end |
#health ⇒ Object
Health of the Storage Container is represented by an integer value in the range 0-100. A higher value indicates better health.
160 161 162 |
# File 'lib/nutanix_clustermgmt/models/clustermgmt_v40_stats_storage_container_stats.rb', line 160 def health @health end |
#links ⇒ Object
A HATEOAS style link for the response. Each link contains a user-friendly name identifying the link and an address for retrieving the particular resource.
25 26 27 |
# File 'lib/nutanix_clustermgmt/models/clustermgmt_v40_stats_storage_container_stats.rb', line 25 def links @links end |
#storage_actual_physical_usage_bytes ⇒ Object
Actual physical disk usage of the Storage Container without considering for the reservation.
58 59 60 |
# File 'lib/nutanix_clustermgmt/models/clustermgmt_v40_stats_storage_container_stats.rb', line 58 def storage_actual_physical_usage_bytes @storage_actual_physical_usage_bytes end |
#storage_capacity_bytes ⇒ Object
Storage capacity in bytes.
70 71 72 |
# File 'lib/nutanix_clustermgmt/models/clustermgmt_v40_stats_storage_container_stats.rb', line 70 def storage_capacity_bytes @storage_capacity_bytes end |
#storage_free_bytes ⇒ Object
Free storage in bytes.
67 68 69 |
# File 'lib/nutanix_clustermgmt/models/clustermgmt_v40_stats_storage_container_stats.rb', line 67 def storage_free_bytes @storage_free_bytes end |
#storage_other_containers_reserved_capacity ⇒ Object
The total explicit reserved physical capacity of other Storage Containers in the same Storage Pool.
130 131 132 |
# File 'lib/nutanix_clustermgmt/models/clustermgmt_v40_stats_storage_container_stats.rb', line 130 def storage_other_containers_reserved_capacity @storage_other_containers_reserved_capacity end |
#storage_other_containers_unreserved_capacity ⇒ Object
The physical usage outside of the explicitly reserved capacity of other Storage Containers in the same Storage Pool.
133 134 135 |
# File 'lib/nutanix_clustermgmt/models/clustermgmt_v40_stats_storage_container_stats.rb', line 133 def storage_other_containers_unreserved_capacity @storage_other_containers_unreserved_capacity end |
#storage_replication_factor ⇒ Object
Replication factor of Storage Container.
109 110 111 |
# File 'lib/nutanix_clustermgmt/models/clustermgmt_v40_stats_storage_container_stats.rb', line 109 def storage_replication_factor @storage_replication_factor end |
#storage_reserved_capacity_bytes ⇒ Object
Implicit physical reserved capacity (aggregated at the vDisk level due to thick provisioning) in bytes.
55 56 57 |
# File 'lib/nutanix_clustermgmt/models/clustermgmt_v40_stats_storage_container_stats.rb', line 55 def storage_reserved_capacity_bytes @storage_reserved_capacity_bytes end |
#storage_reserved_free_bytes ⇒ Object
The remaining unused space of the implicit reserved capacity(aggregated on vDisk level due to thick provisioning) in bytes.
124 125 126 |
# File 'lib/nutanix_clustermgmt/models/clustermgmt_v40_stats_storage_container_stats.rb', line 124 def storage_reserved_free_bytes @storage_reserved_free_bytes end |
#storage_reserved_usage_bytes ⇒ Object
The physical usage of the implicit reserved capacity(aggregated on vDisk level due to thick provisioning) in bytes.
121 122 123 |
# File 'lib/nutanix_clustermgmt/models/clustermgmt_v40_stats_storage_container_stats.rb', line 121 def storage_reserved_usage_bytes @storage_reserved_usage_bytes end |
#storage_snapshot_reclaimable ⇒ Object
The space that will be reclaimed if all the snapshots in the cluster is deleted. This is the physical snapshot usage with replication factor and data reduction savings taken into account.
136 137 138 |
# File 'lib/nutanix_clustermgmt/models/clustermgmt_v40_stats_storage_container_stats.rb', line 136 def storage_snapshot_reclaimable @storage_snapshot_reclaimable end |
#storage_tier_das_sata_usage_bytes ⇒ Object
Total usage on HDD tier for the Storage Container in bytes.
115 116 117 |
# File 'lib/nutanix_clustermgmt/models/clustermgmt_v40_stats_storage_container_stats.rb', line 115 def storage_tier_das_sata_usage_bytes @storage_tier_das_sata_usage_bytes end |
#storage_tier_ssd_usage_bytes ⇒ Object
Total usage on SDD tier for the Storage Container in bytes.
118 119 120 |
# File 'lib/nutanix_clustermgmt/models/clustermgmt_v40_stats_storage_container_stats.rb', line 118 def storage_tier_ssd_usage_bytes @storage_tier_ssd_usage_bytes end |
#storage_unreserved_usage_bytes ⇒ Object
The physical usage from unreserved vDisks(aggregated on thin provisioning vDisks) in bytes.
127 128 129 |
# File 'lib/nutanix_clustermgmt/models/clustermgmt_v40_stats_storage_container_stats.rb', line 127 def storage_unreserved_usage_bytes @storage_unreserved_usage_bytes end |
#storage_usage_bytes ⇒ Object
Used storage in bytes.
112 113 114 |
# File 'lib/nutanix_clustermgmt/models/clustermgmt_v40_stats_storage_container_stats.rb', line 112 def storage_usage_bytes @storage_usage_bytes end |
#tenant_id ⇒ Object
A globally unique identifier that represents the tenant that owns this entity. The system automatically assigns it, and it and is immutable from an API consumer perspective (some use cases may cause this Id to change - For instance, a use case may require the transfer of ownership of the entity, but these cases are handled automatically on the server).
19 20 21 |
# File 'lib/nutanix_clustermgmt/models/clustermgmt_v40_stats_storage_container_stats.rb', line 19 def tenant_id @tenant_id end |
Class Method Details
.acceptable_attribute_map ⇒ Object
Returns attribute mapping this model knows about
221 222 223 |
# File 'lib/nutanix_clustermgmt/models/clustermgmt_v40_stats_storage_container_stats.rb', line 221 def self.acceptable_attribute_map attribute_map end |
.acceptable_attributes ⇒ Object
Returns all the JSON keys this model knows about
226 227 228 |
# File 'lib/nutanix_clustermgmt/models/clustermgmt_v40_stats_storage_container_stats.rb', line 226 def self.acceptable_attributes acceptable_attribute_map.values end |
.attribute_map ⇒ Object
Attribute mapping from ruby-style variable name to JSON key.
166 167 168 169 170 171 172 173 174 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 208 209 210 211 212 213 214 215 216 217 218 |
# File 'lib/nutanix_clustermgmt/models/clustermgmt_v40_stats_storage_container_stats.rb', line 166 def self.attribute_map { :'tenant_id' => :'tenantId', :'ext_id' => :'extId', :'links' => :'links', :'controller_num_iops' => :'controllerNumIops', :'controller_io_bandwidthk_bps' => :'controllerIoBandwidthkBps', :'controller_avg_io_latencyu_secs' => :'controllerAvgIoLatencyuSecs', :'controller_num_read_iops' => :'controllerNumReadIops', :'controller_num_write_iops' => :'controllerNumWriteIops', :'controller_read_io_bandwidthk_bps' => :'controllerReadIoBandwidthkBps', :'controller_write_io_bandwidthk_bps' => :'controllerWriteIoBandwidthkBps', :'controller_avg_read_io_latencyu_secs' => :'controllerAvgReadIoLatencyuSecs', :'controller_avg_write_io_latencyu_secs' => :'controllerAvgWriteIoLatencyuSecs', :'storage_reserved_capacity_bytes' => :'storageReservedCapacityBytes', :'storage_actual_physical_usage_bytes' => :'storageActualPhysicalUsageBytes', :'data_reduction_saving_ratio_ppm' => :'dataReductionSavingRatioPpm', :'data_reduction_total_saving_ratio_ppm' => :'dataReductionTotalSavingRatioPpm', :'storage_free_bytes' => :'storageFreeBytes', :'storage_capacity_bytes' => :'storageCapacityBytes', :'data_reduction_saved_bytes' => :'dataReductionSavedBytes', :'data_reduction_overall_pre_reduction_bytes' => :'dataReductionOverallPreReductionBytes', :'data_reduction_overall_post_reduction_bytes' => :'dataReductionOverallPostReductionBytes', :'data_reduction_compression_saving_ratio_ppm' => :'dataReductionCompressionSavingRatioPpm', :'data_reduction_dedup_saving_ratio_ppm' => :'dataReductionDedupSavingRatioPpm', :'data_reduction_erasure_coding_saving_ratio_ppm' => :'dataReductionErasureCodingSavingRatioPpm', :'data_reduction_thin_provision_saving_ratio_ppm' => :'dataReductionThinProvisionSavingRatioPpm', :'data_reduction_clone_saving_ratio_ppm' => :'dataReductionCloneSavingRatioPpm', :'data_reduction_snapshot_saving_ratio_ppm' => :'dataReductionSnapshotSavingRatioPpm', :'data_reduction_zero_write_savings_bytes' => :'dataReductionZeroWriteSavingsBytes', :'controller_read_io_ratio_ppm' => :'controllerReadIoRatioPpm', :'controller_write_io_ratio_ppm' => :'controllerWriteIoRatioPpm', :'storage_replication_factor' => :'storageReplicationFactor', :'storage_usage_bytes' => :'storageUsageBytes', :'storage_tier_das_sata_usage_bytes' => :'storageTierDasSataUsageBytes', :'storage_tier_ssd_usage_bytes' => :'storageTierSsdUsageBytes', :'storage_reserved_usage_bytes' => :'storageReservedUsageBytes', :'storage_reserved_free_bytes' => :'storageReservedFreeBytes', :'storage_unreserved_usage_bytes' => :'storageUnreservedUsageBytes', :'storage_other_containers_reserved_capacity' => :'storageOtherContainersReservedCapacity', :'storage_other_containers_unreserved_capacity' => :'storageOtherContainersUnreservedCapacity', :'storage_snapshot_reclaimable' => :'storageSnapshotReclaimable', :'data_reduction_thin_provision_saved_bytes' => :'dataReductionThinProvisionSavedBytes', :'data_reduction_snapshot_saved_bytes' => :'dataReductionSnapshotSavedBytes', :'data_reduction_clone_saved_bytes' => :'dataReductionCloneSavedBytes', :'data_reduction_erasure_coding_saved_bytes' => :'dataReductionErasureCodingSavedBytes', :'data_reduction_dedup_saved_bytes' => :'dataReductionDedupSavedBytes', :'data_reduction_overall_saved_bytes' => :'dataReductionOverallSavedBytes', :'data_reduction_compression_saved_bytes' => :'dataReductionCompressionSavedBytes', :'health' => :'health', :'container_ext_id' => :'containerExtId' } end |
.build_from_hash(attributes) ⇒ Object
Builds the object from hash
2037 2038 2039 2040 2041 2042 2043 2044 2045 2046 2047 2048 2049 2050 2051 2052 2053 2054 2055 |
# File 'lib/nutanix_clustermgmt/models/clustermgmt_v40_stats_storage_container_stats.rb', line 2037 def self.build_from_hash(attributes) return nil unless attributes.is_a?(Hash) attributes = attributes.transform_keys(&:to_sym) transformed_hash = {} openapi_types.each_pair do |key, type| if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil? transformed_hash["#{key}"] = nil elsif type =~ /\AArray<(.*)>/i # check to ensure the input is an array given that the attribute # is documented as an array but the input is not if attributes[attribute_map[key]].is_a?(Array) transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) } end elsif !attributes[attribute_map[key]].nil? transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]]) end end new(transformed_hash) end |
.openapi_all_of ⇒ Object
List of class defined in allOf (OpenAPI v3)
293 294 295 296 297 |
# File 'lib/nutanix_clustermgmt/models/clustermgmt_v40_stats_storage_container_stats.rb', line 293 def self.openapi_all_of [ :'CommonV10ResponseExternalizableAbstractModel' ] end |
.openapi_nullable ⇒ Object
List of attributes with nullable: true
286 287 288 289 290 |
# File 'lib/nutanix_clustermgmt/models/clustermgmt_v40_stats_storage_container_stats.rb', line 286 def self.openapi_nullable Set.new([ :'ext_id', ]) end |
.openapi_types ⇒ Object
Attribute type mapping.
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 |
# File 'lib/nutanix_clustermgmt/models/clustermgmt_v40_stats_storage_container_stats.rb', line 231 def self.openapi_types { :'tenant_id' => :'String', :'ext_id' => :'String', :'links' => :'Array<CommonV10ResponseApiLink>', :'controller_num_iops' => :'Array<CommonV10StatsTimeIntValuePair>', :'controller_io_bandwidthk_bps' => :'Array<CommonV10StatsTimeIntValuePair>', :'controller_avg_io_latencyu_secs' => :'Array<CommonV10StatsTimeIntValuePair>', :'controller_num_read_iops' => :'Array<CommonV10StatsTimeIntValuePair>', :'controller_num_write_iops' => :'Array<CommonV10StatsTimeIntValuePair>', :'controller_read_io_bandwidthk_bps' => :'Array<CommonV10StatsTimeIntValuePair>', :'controller_write_io_bandwidthk_bps' => :'Array<CommonV10StatsTimeIntValuePair>', :'controller_avg_read_io_latencyu_secs' => :'Array<CommonV10StatsTimeIntValuePair>', :'controller_avg_write_io_latencyu_secs' => :'Array<CommonV10StatsTimeIntValuePair>', :'storage_reserved_capacity_bytes' => :'Array<CommonV10StatsTimeIntValuePair>', :'storage_actual_physical_usage_bytes' => :'Array<CommonV10StatsTimeIntValuePair>', :'data_reduction_saving_ratio_ppm' => :'Array<CommonV10StatsTimeIntValuePair>', :'data_reduction_total_saving_ratio_ppm' => :'Array<CommonV10StatsTimeIntValuePair>', :'storage_free_bytes' => :'Array<CommonV10StatsTimeIntValuePair>', :'storage_capacity_bytes' => :'Array<CommonV10StatsTimeIntValuePair>', :'data_reduction_saved_bytes' => :'Array<CommonV10StatsTimeIntValuePair>', :'data_reduction_overall_pre_reduction_bytes' => :'Array<CommonV10StatsTimeIntValuePair>', :'data_reduction_overall_post_reduction_bytes' => :'Array<CommonV10StatsTimeIntValuePair>', :'data_reduction_compression_saving_ratio_ppm' => :'Array<CommonV10StatsTimeIntValuePair>', :'data_reduction_dedup_saving_ratio_ppm' => :'Array<CommonV10StatsTimeIntValuePair>', :'data_reduction_erasure_coding_saving_ratio_ppm' => :'Array<CommonV10StatsTimeIntValuePair>', :'data_reduction_thin_provision_saving_ratio_ppm' => :'Array<CommonV10StatsTimeIntValuePair>', :'data_reduction_clone_saving_ratio_ppm' => :'Array<CommonV10StatsTimeIntValuePair>', :'data_reduction_snapshot_saving_ratio_ppm' => :'Array<CommonV10StatsTimeIntValuePair>', :'data_reduction_zero_write_savings_bytes' => :'Array<CommonV10StatsTimeIntValuePair>', :'controller_read_io_ratio_ppm' => :'Array<CommonV10StatsTimeIntValuePair>', :'controller_write_io_ratio_ppm' => :'Array<CommonV10StatsTimeIntValuePair>', :'storage_replication_factor' => :'Array<CommonV10StatsTimeIntValuePair>', :'storage_usage_bytes' => :'Array<CommonV10StatsTimeIntValuePair>', :'storage_tier_das_sata_usage_bytes' => :'Array<CommonV10StatsTimeIntValuePair>', :'storage_tier_ssd_usage_bytes' => :'Array<CommonV10StatsTimeIntValuePair>', :'storage_reserved_usage_bytes' => :'Array<CommonV10StatsTimeIntValuePair>', :'storage_reserved_free_bytes' => :'Array<CommonV10StatsTimeIntValuePair>', :'storage_unreserved_usage_bytes' => :'Array<CommonV10StatsTimeIntValuePair>', :'storage_other_containers_reserved_capacity' => :'Array<CommonV10StatsTimeIntValuePair>', :'storage_other_containers_unreserved_capacity' => :'Array<CommonV10StatsTimeIntValuePair>', :'storage_snapshot_reclaimable' => :'Array<CommonV10StatsTimeIntValuePair>', :'data_reduction_thin_provision_saved_bytes' => :'Array<CommonV10StatsTimeIntValuePair>', :'data_reduction_snapshot_saved_bytes' => :'Array<CommonV10StatsTimeIntValuePair>', :'data_reduction_clone_saved_bytes' => :'Array<CommonV10StatsTimeIntValuePair>', :'data_reduction_erasure_coding_saved_bytes' => :'Array<CommonV10StatsTimeIntValuePair>', :'data_reduction_dedup_saved_bytes' => :'Array<CommonV10StatsTimeIntValuePair>', :'data_reduction_overall_saved_bytes' => :'Array<CommonV10StatsTimeIntValuePair>', :'data_reduction_compression_saved_bytes' => :'Array<CommonV10StatsTimeIntValuePair>', :'health' => :'Array<CommonV10StatsTimeIntValuePair>', :'container_ext_id' => :'String' } end |
Instance Method Details
#==(o) ⇒ Object
Checks equality by comparing each attribute.
1968 1969 1970 1971 1972 1973 1974 1975 1976 1977 1978 1979 1980 1981 1982 1983 1984 1985 1986 1987 1988 1989 1990 1991 1992 1993 1994 1995 1996 1997 1998 1999 2000 2001 2002 2003 2004 2005 2006 2007 2008 2009 2010 2011 2012 2013 2014 2015 2016 2017 2018 2019 2020 |
# File 'lib/nutanix_clustermgmt/models/clustermgmt_v40_stats_storage_container_stats.rb', line 1968 def ==(o) return true if self.equal?(o) self.class == o.class && tenant_id == o.tenant_id && ext_id == o.ext_id && links == o.links && controller_num_iops == o.controller_num_iops && controller_io_bandwidthk_bps == o.controller_io_bandwidthk_bps && controller_avg_io_latencyu_secs == o.controller_avg_io_latencyu_secs && controller_num_read_iops == o.controller_num_read_iops && controller_num_write_iops == o.controller_num_write_iops && controller_read_io_bandwidthk_bps == o.controller_read_io_bandwidthk_bps && controller_write_io_bandwidthk_bps == o.controller_write_io_bandwidthk_bps && controller_avg_read_io_latencyu_secs == o.controller_avg_read_io_latencyu_secs && controller_avg_write_io_latencyu_secs == o.controller_avg_write_io_latencyu_secs && storage_reserved_capacity_bytes == o.storage_reserved_capacity_bytes && storage_actual_physical_usage_bytes == o.storage_actual_physical_usage_bytes && data_reduction_saving_ratio_ppm == o.data_reduction_saving_ratio_ppm && data_reduction_total_saving_ratio_ppm == o.data_reduction_total_saving_ratio_ppm && storage_free_bytes == o.storage_free_bytes && storage_capacity_bytes == o.storage_capacity_bytes && data_reduction_saved_bytes == o.data_reduction_saved_bytes && data_reduction_overall_pre_reduction_bytes == o.data_reduction_overall_pre_reduction_bytes && data_reduction_overall_post_reduction_bytes == o.data_reduction_overall_post_reduction_bytes && data_reduction_compression_saving_ratio_ppm == o.data_reduction_compression_saving_ratio_ppm && data_reduction_dedup_saving_ratio_ppm == o.data_reduction_dedup_saving_ratio_ppm && data_reduction_erasure_coding_saving_ratio_ppm == o.data_reduction_erasure_coding_saving_ratio_ppm && data_reduction_thin_provision_saving_ratio_ppm == o.data_reduction_thin_provision_saving_ratio_ppm && data_reduction_clone_saving_ratio_ppm == o.data_reduction_clone_saving_ratio_ppm && data_reduction_snapshot_saving_ratio_ppm == o.data_reduction_snapshot_saving_ratio_ppm && data_reduction_zero_write_savings_bytes == o.data_reduction_zero_write_savings_bytes && controller_read_io_ratio_ppm == o.controller_read_io_ratio_ppm && controller_write_io_ratio_ppm == o.controller_write_io_ratio_ppm && storage_replication_factor == o.storage_replication_factor && storage_usage_bytes == o.storage_usage_bytes && storage_tier_das_sata_usage_bytes == o.storage_tier_das_sata_usage_bytes && storage_tier_ssd_usage_bytes == o.storage_tier_ssd_usage_bytes && storage_reserved_usage_bytes == o.storage_reserved_usage_bytes && storage_reserved_free_bytes == o.storage_reserved_free_bytes && storage_unreserved_usage_bytes == o.storage_unreserved_usage_bytes && storage_other_containers_reserved_capacity == o.storage_other_containers_reserved_capacity && storage_other_containers_unreserved_capacity == o.storage_other_containers_unreserved_capacity && storage_snapshot_reclaimable == o.storage_snapshot_reclaimable && data_reduction_thin_provision_saved_bytes == o.data_reduction_thin_provision_saved_bytes && data_reduction_snapshot_saved_bytes == o.data_reduction_snapshot_saved_bytes && data_reduction_clone_saved_bytes == o.data_reduction_clone_saved_bytes && data_reduction_erasure_coding_saved_bytes == o.data_reduction_erasure_coding_saved_bytes && data_reduction_dedup_saved_bytes == o.data_reduction_dedup_saved_bytes && data_reduction_overall_saved_bytes == o.data_reduction_overall_saved_bytes && data_reduction_compression_saved_bytes == o.data_reduction_compression_saved_bytes && health == o.health && container_ext_id == o.container_ext_id end |
#eql?(o) ⇒ Boolean
2024 2025 2026 |
# File 'lib/nutanix_clustermgmt/models/clustermgmt_v40_stats_storage_container_stats.rb', line 2024 def eql?(o) self == o end |
#hash ⇒ Integer
Calculates hash code according to all attributes.
2030 2031 2032 |
# File 'lib/nutanix_clustermgmt/models/clustermgmt_v40_stats_storage_container_stats.rb', line 2030 def hash [tenant_id, ext_id, links, controller_num_iops, controller_io_bandwidthk_bps, controller_avg_io_latencyu_secs, controller_num_read_iops, controller_num_write_iops, controller_read_io_bandwidthk_bps, controller_write_io_bandwidthk_bps, controller_avg_read_io_latencyu_secs, controller_avg_write_io_latencyu_secs, storage_reserved_capacity_bytes, storage_actual_physical_usage_bytes, data_reduction_saving_ratio_ppm, data_reduction_total_saving_ratio_ppm, storage_free_bytes, storage_capacity_bytes, data_reduction_saved_bytes, data_reduction_overall_pre_reduction_bytes, data_reduction_overall_post_reduction_bytes, data_reduction_compression_saving_ratio_ppm, data_reduction_dedup_saving_ratio_ppm, data_reduction_erasure_coding_saving_ratio_ppm, data_reduction_thin_provision_saving_ratio_ppm, data_reduction_clone_saving_ratio_ppm, data_reduction_snapshot_saving_ratio_ppm, data_reduction_zero_write_savings_bytes, controller_read_io_ratio_ppm, controller_write_io_ratio_ppm, storage_replication_factor, storage_usage_bytes, storage_tier_das_sata_usage_bytes, storage_tier_ssd_usage_bytes, storage_reserved_usage_bytes, storage_reserved_free_bytes, storage_unreserved_usage_bytes, storage_other_containers_reserved_capacity, storage_other_containers_unreserved_capacity, storage_snapshot_reclaimable, data_reduction_thin_provision_saved_bytes, data_reduction_snapshot_saved_bytes, data_reduction_clone_saved_bytes, data_reduction_erasure_coding_saved_bytes, data_reduction_dedup_saved_bytes, data_reduction_overall_saved_bytes, data_reduction_compression_saved_bytes, health, container_ext_id].hash end |
#list_invalid_properties ⇒ Object
Show invalid properties with the reasons. Usually used together with valid?
606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 847 848 849 850 851 852 853 854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 870 871 872 873 874 875 876 877 878 879 880 881 882 883 884 885 886 887 888 889 890 891 892 893 894 895 896 897 898 899 900 901 902 903 904 905 906 907 908 909 910 911 912 913 914 915 916 917 918 919 920 921 922 923 924 925 926 927 928 929 930 931 932 933 934 935 936 937 938 939 940 941 942 943 944 945 946 947 948 949 950 951 952 953 954 955 956 957 958 959 960 961 962 963 964 965 966 967 968 969 970 971 972 973 974 975 976 977 978 979 980 981 982 983 984 985 986 987 988 989 990 991 992 993 |
# File 'lib/nutanix_clustermgmt/models/clustermgmt_v40_stats_storage_container_stats.rb', line 606 def list_invalid_properties warn '[DEPRECATED] the `list_invalid_properties` method is obsolete' invalid_properties = Array.new pattern = Regexp.new(/^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/) if !@tenant_id.nil? && @tenant_id !~ pattern invalid_properties.push("invalid value for \"tenant_id\", must conform to the pattern #{pattern}.") end pattern = Regexp.new(/^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/) if !@ext_id.nil? && @ext_id !~ pattern invalid_properties.push("invalid value for \"ext_id\", must conform to the pattern #{pattern}.") end if !@links.nil? && @links.length > 20 invalid_properties.push('invalid value for "links", number of items must be less than or equal to 20.') end if !@links.nil? && @links.length < 0 invalid_properties.push('invalid value for "links", number of items must be greater than or equal to 0.') end if !@controller_num_iops.nil? && @controller_num_iops.length > 3000 invalid_properties.push('invalid value for "controller_num_iops", number of items must be less than or equal to 3000.') end if !@controller_num_iops.nil? && @controller_num_iops.length < 0 invalid_properties.push('invalid value for "controller_num_iops", number of items must be greater than or equal to 0.') end if !@controller_io_bandwidthk_bps.nil? && @controller_io_bandwidthk_bps.length > 3000 invalid_properties.push('invalid value for "controller_io_bandwidthk_bps", number of items must be less than or equal to 3000.') end if !@controller_io_bandwidthk_bps.nil? && @controller_io_bandwidthk_bps.length < 0 invalid_properties.push('invalid value for "controller_io_bandwidthk_bps", number of items must be greater than or equal to 0.') end if !@controller_avg_io_latencyu_secs.nil? && @controller_avg_io_latencyu_secs.length > 3000 invalid_properties.push('invalid value for "controller_avg_io_latencyu_secs", number of items must be less than or equal to 3000.') end if !@controller_avg_io_latencyu_secs.nil? && @controller_avg_io_latencyu_secs.length < 0 invalid_properties.push('invalid value for "controller_avg_io_latencyu_secs", number of items must be greater than or equal to 0.') end if !@controller_num_read_iops.nil? && @controller_num_read_iops.length > 3000 invalid_properties.push('invalid value for "controller_num_read_iops", number of items must be less than or equal to 3000.') end if !@controller_num_read_iops.nil? && @controller_num_read_iops.length < 0 invalid_properties.push('invalid value for "controller_num_read_iops", number of items must be greater than or equal to 0.') end if !@controller_num_write_iops.nil? && @controller_num_write_iops.length > 3000 invalid_properties.push('invalid value for "controller_num_write_iops", number of items must be less than or equal to 3000.') end if !@controller_num_write_iops.nil? && @controller_num_write_iops.length < 0 invalid_properties.push('invalid value for "controller_num_write_iops", number of items must be greater than or equal to 0.') end if !@controller_read_io_bandwidthk_bps.nil? && @controller_read_io_bandwidthk_bps.length > 3000 invalid_properties.push('invalid value for "controller_read_io_bandwidthk_bps", number of items must be less than or equal to 3000.') end if !@controller_read_io_bandwidthk_bps.nil? && @controller_read_io_bandwidthk_bps.length < 0 invalid_properties.push('invalid value for "controller_read_io_bandwidthk_bps", number of items must be greater than or equal to 0.') end if !@controller_write_io_bandwidthk_bps.nil? && @controller_write_io_bandwidthk_bps.length > 3000 invalid_properties.push('invalid value for "controller_write_io_bandwidthk_bps", number of items must be less than or equal to 3000.') end if !@controller_write_io_bandwidthk_bps.nil? && @controller_write_io_bandwidthk_bps.length < 0 invalid_properties.push('invalid value for "controller_write_io_bandwidthk_bps", number of items must be greater than or equal to 0.') end if !@controller_avg_read_io_latencyu_secs.nil? && @controller_avg_read_io_latencyu_secs.length > 3000 invalid_properties.push('invalid value for "controller_avg_read_io_latencyu_secs", number of items must be less than or equal to 3000.') end if !@controller_avg_read_io_latencyu_secs.nil? && @controller_avg_read_io_latencyu_secs.length < 0 invalid_properties.push('invalid value for "controller_avg_read_io_latencyu_secs", number of items must be greater than or equal to 0.') end if !@controller_avg_write_io_latencyu_secs.nil? && @controller_avg_write_io_latencyu_secs.length > 3000 invalid_properties.push('invalid value for "controller_avg_write_io_latencyu_secs", number of items must be less than or equal to 3000.') end if !@controller_avg_write_io_latencyu_secs.nil? && @controller_avg_write_io_latencyu_secs.length < 0 invalid_properties.push('invalid value for "controller_avg_write_io_latencyu_secs", number of items must be greater than or equal to 0.') end if !@storage_reserved_capacity_bytes.nil? && @storage_reserved_capacity_bytes.length > 3000 invalid_properties.push('invalid value for "storage_reserved_capacity_bytes", number of items must be less than or equal to 3000.') end if !@storage_reserved_capacity_bytes.nil? && @storage_reserved_capacity_bytes.length < 0 invalid_properties.push('invalid value for "storage_reserved_capacity_bytes", number of items must be greater than or equal to 0.') end if !@storage_actual_physical_usage_bytes.nil? && @storage_actual_physical_usage_bytes.length > 3000 invalid_properties.push('invalid value for "storage_actual_physical_usage_bytes", number of items must be less than or equal to 3000.') end if !@storage_actual_physical_usage_bytes.nil? && @storage_actual_physical_usage_bytes.length < 0 invalid_properties.push('invalid value for "storage_actual_physical_usage_bytes", number of items must be greater than or equal to 0.') end if !@data_reduction_saving_ratio_ppm.nil? && @data_reduction_saving_ratio_ppm.length > 3000 invalid_properties.push('invalid value for "data_reduction_saving_ratio_ppm", number of items must be less than or equal to 3000.') end if !@data_reduction_saving_ratio_ppm.nil? && @data_reduction_saving_ratio_ppm.length < 0 invalid_properties.push('invalid value for "data_reduction_saving_ratio_ppm", number of items must be greater than or equal to 0.') end if !@data_reduction_total_saving_ratio_ppm.nil? && @data_reduction_total_saving_ratio_ppm.length > 3000 invalid_properties.push('invalid value for "data_reduction_total_saving_ratio_ppm", number of items must be less than or equal to 3000.') end if !@data_reduction_total_saving_ratio_ppm.nil? && @data_reduction_total_saving_ratio_ppm.length < 0 invalid_properties.push('invalid value for "data_reduction_total_saving_ratio_ppm", number of items must be greater than or equal to 0.') end if !@storage_free_bytes.nil? && @storage_free_bytes.length > 3000 invalid_properties.push('invalid value for "storage_free_bytes", number of items must be less than or equal to 3000.') end if !@storage_free_bytes.nil? && @storage_free_bytes.length < 0 invalid_properties.push('invalid value for "storage_free_bytes", number of items must be greater than or equal to 0.') end if !@storage_capacity_bytes.nil? && @storage_capacity_bytes.length > 3000 invalid_properties.push('invalid value for "storage_capacity_bytes", number of items must be less than or equal to 3000.') end if !@storage_capacity_bytes.nil? && @storage_capacity_bytes.length < 0 invalid_properties.push('invalid value for "storage_capacity_bytes", number of items must be greater than or equal to 0.') end if !@data_reduction_saved_bytes.nil? && @data_reduction_saved_bytes.length > 3000 invalid_properties.push('invalid value for "data_reduction_saved_bytes", number of items must be less than or equal to 3000.') end if !@data_reduction_saved_bytes.nil? && @data_reduction_saved_bytes.length < 0 invalid_properties.push('invalid value for "data_reduction_saved_bytes", number of items must be greater than or equal to 0.') end if !@data_reduction_overall_pre_reduction_bytes.nil? && @data_reduction_overall_pre_reduction_bytes.length > 3000 invalid_properties.push('invalid value for "data_reduction_overall_pre_reduction_bytes", number of items must be less than or equal to 3000.') end if !@data_reduction_overall_pre_reduction_bytes.nil? && @data_reduction_overall_pre_reduction_bytes.length < 0 invalid_properties.push('invalid value for "data_reduction_overall_pre_reduction_bytes", number of items must be greater than or equal to 0.') end if !@data_reduction_overall_post_reduction_bytes.nil? && @data_reduction_overall_post_reduction_bytes.length > 3000 invalid_properties.push('invalid value for "data_reduction_overall_post_reduction_bytes", number of items must be less than or equal to 3000.') end if !@data_reduction_overall_post_reduction_bytes.nil? && @data_reduction_overall_post_reduction_bytes.length < 0 invalid_properties.push('invalid value for "data_reduction_overall_post_reduction_bytes", number of items must be greater than or equal to 0.') end if !@data_reduction_compression_saving_ratio_ppm.nil? && @data_reduction_compression_saving_ratio_ppm.length > 3000 invalid_properties.push('invalid value for "data_reduction_compression_saving_ratio_ppm", number of items must be less than or equal to 3000.') end if !@data_reduction_compression_saving_ratio_ppm.nil? && @data_reduction_compression_saving_ratio_ppm.length < 0 invalid_properties.push('invalid value for "data_reduction_compression_saving_ratio_ppm", number of items must be greater than or equal to 0.') end if !@data_reduction_dedup_saving_ratio_ppm.nil? && @data_reduction_dedup_saving_ratio_ppm.length > 3000 invalid_properties.push('invalid value for "data_reduction_dedup_saving_ratio_ppm", number of items must be less than or equal to 3000.') end if !@data_reduction_dedup_saving_ratio_ppm.nil? && @data_reduction_dedup_saving_ratio_ppm.length < 0 invalid_properties.push('invalid value for "data_reduction_dedup_saving_ratio_ppm", number of items must be greater than or equal to 0.') end if !@data_reduction_erasure_coding_saving_ratio_ppm.nil? && @data_reduction_erasure_coding_saving_ratio_ppm.length > 3000 invalid_properties.push('invalid value for "data_reduction_erasure_coding_saving_ratio_ppm", number of items must be less than or equal to 3000.') end if !@data_reduction_erasure_coding_saving_ratio_ppm.nil? && @data_reduction_erasure_coding_saving_ratio_ppm.length < 0 invalid_properties.push('invalid value for "data_reduction_erasure_coding_saving_ratio_ppm", number of items must be greater than or equal to 0.') end if !@data_reduction_thin_provision_saving_ratio_ppm.nil? && @data_reduction_thin_provision_saving_ratio_ppm.length > 3000 invalid_properties.push('invalid value for "data_reduction_thin_provision_saving_ratio_ppm", number of items must be less than or equal to 3000.') end if !@data_reduction_thin_provision_saving_ratio_ppm.nil? && @data_reduction_thin_provision_saving_ratio_ppm.length < 0 invalid_properties.push('invalid value for "data_reduction_thin_provision_saving_ratio_ppm", number of items must be greater than or equal to 0.') end if !@data_reduction_clone_saving_ratio_ppm.nil? && @data_reduction_clone_saving_ratio_ppm.length > 3000 invalid_properties.push('invalid value for "data_reduction_clone_saving_ratio_ppm", number of items must be less than or equal to 3000.') end if !@data_reduction_clone_saving_ratio_ppm.nil? && @data_reduction_clone_saving_ratio_ppm.length < 0 invalid_properties.push('invalid value for "data_reduction_clone_saving_ratio_ppm", number of items must be greater than or equal to 0.') end if !@data_reduction_snapshot_saving_ratio_ppm.nil? && @data_reduction_snapshot_saving_ratio_ppm.length > 3000 invalid_properties.push('invalid value for "data_reduction_snapshot_saving_ratio_ppm", number of items must be less than or equal to 3000.') end if !@data_reduction_snapshot_saving_ratio_ppm.nil? && @data_reduction_snapshot_saving_ratio_ppm.length < 0 invalid_properties.push('invalid value for "data_reduction_snapshot_saving_ratio_ppm", number of items must be greater than or equal to 0.') end if !@data_reduction_zero_write_savings_bytes.nil? && @data_reduction_zero_write_savings_bytes.length > 3000 invalid_properties.push('invalid value for "data_reduction_zero_write_savings_bytes", number of items must be less than or equal to 3000.') end if !@data_reduction_zero_write_savings_bytes.nil? && @data_reduction_zero_write_savings_bytes.length < 0 invalid_properties.push('invalid value for "data_reduction_zero_write_savings_bytes", number of items must be greater than or equal to 0.') end if !@controller_read_io_ratio_ppm.nil? && @controller_read_io_ratio_ppm.length > 3000 invalid_properties.push('invalid value for "controller_read_io_ratio_ppm", number of items must be less than or equal to 3000.') end if !@controller_read_io_ratio_ppm.nil? && @controller_read_io_ratio_ppm.length < 0 invalid_properties.push('invalid value for "controller_read_io_ratio_ppm", number of items must be greater than or equal to 0.') end if !@controller_write_io_ratio_ppm.nil? && @controller_write_io_ratio_ppm.length > 3000 invalid_properties.push('invalid value for "controller_write_io_ratio_ppm", number of items must be less than or equal to 3000.') end if !@controller_write_io_ratio_ppm.nil? && @controller_write_io_ratio_ppm.length < 0 invalid_properties.push('invalid value for "controller_write_io_ratio_ppm", number of items must be greater than or equal to 0.') end if !@storage_replication_factor.nil? && @storage_replication_factor.length > 3000 invalid_properties.push('invalid value for "storage_replication_factor", number of items must be less than or equal to 3000.') end if !@storage_replication_factor.nil? && @storage_replication_factor.length < 0 invalid_properties.push('invalid value for "storage_replication_factor", number of items must be greater than or equal to 0.') end if !@storage_usage_bytes.nil? && @storage_usage_bytes.length > 3000 invalid_properties.push('invalid value for "storage_usage_bytes", number of items must be less than or equal to 3000.') end if !@storage_usage_bytes.nil? && @storage_usage_bytes.length < 0 invalid_properties.push('invalid value for "storage_usage_bytes", number of items must be greater than or equal to 0.') end if !@storage_tier_das_sata_usage_bytes.nil? && @storage_tier_das_sata_usage_bytes.length > 3000 invalid_properties.push('invalid value for "storage_tier_das_sata_usage_bytes", number of items must be less than or equal to 3000.') end if !@storage_tier_das_sata_usage_bytes.nil? && @storage_tier_das_sata_usage_bytes.length < 0 invalid_properties.push('invalid value for "storage_tier_das_sata_usage_bytes", number of items must be greater than or equal to 0.') end if !@storage_tier_ssd_usage_bytes.nil? && @storage_tier_ssd_usage_bytes.length > 3000 invalid_properties.push('invalid value for "storage_tier_ssd_usage_bytes", number of items must be less than or equal to 3000.') end if !@storage_tier_ssd_usage_bytes.nil? && @storage_tier_ssd_usage_bytes.length < 0 invalid_properties.push('invalid value for "storage_tier_ssd_usage_bytes", number of items must be greater than or equal to 0.') end if !@storage_reserved_usage_bytes.nil? && @storage_reserved_usage_bytes.length > 3000 invalid_properties.push('invalid value for "storage_reserved_usage_bytes", number of items must be less than or equal to 3000.') end if !@storage_reserved_usage_bytes.nil? && @storage_reserved_usage_bytes.length < 0 invalid_properties.push('invalid value for "storage_reserved_usage_bytes", number of items must be greater than or equal to 0.') end if !@storage_reserved_free_bytes.nil? && @storage_reserved_free_bytes.length > 3000 invalid_properties.push('invalid value for "storage_reserved_free_bytes", number of items must be less than or equal to 3000.') end if !@storage_reserved_free_bytes.nil? && @storage_reserved_free_bytes.length < 0 invalid_properties.push('invalid value for "storage_reserved_free_bytes", number of items must be greater than or equal to 0.') end if !@storage_unreserved_usage_bytes.nil? && @storage_unreserved_usage_bytes.length > 3000 invalid_properties.push('invalid value for "storage_unreserved_usage_bytes", number of items must be less than or equal to 3000.') end if !@storage_unreserved_usage_bytes.nil? && @storage_unreserved_usage_bytes.length < 0 invalid_properties.push('invalid value for "storage_unreserved_usage_bytes", number of items must be greater than or equal to 0.') end if !@storage_other_containers_reserved_capacity.nil? && @storage_other_containers_reserved_capacity.length > 3000 invalid_properties.push('invalid value for "storage_other_containers_reserved_capacity", number of items must be less than or equal to 3000.') end if !@storage_other_containers_reserved_capacity.nil? && @storage_other_containers_reserved_capacity.length < 0 invalid_properties.push('invalid value for "storage_other_containers_reserved_capacity", number of items must be greater than or equal to 0.') end if !@storage_other_containers_unreserved_capacity.nil? && @storage_other_containers_unreserved_capacity.length > 3000 invalid_properties.push('invalid value for "storage_other_containers_unreserved_capacity", number of items must be less than or equal to 3000.') end if !@storage_other_containers_unreserved_capacity.nil? && @storage_other_containers_unreserved_capacity.length < 0 invalid_properties.push('invalid value for "storage_other_containers_unreserved_capacity", number of items must be greater than or equal to 0.') end if !@storage_snapshot_reclaimable.nil? && @storage_snapshot_reclaimable.length > 3000 invalid_properties.push('invalid value for "storage_snapshot_reclaimable", number of items must be less than or equal to 3000.') end if !@storage_snapshot_reclaimable.nil? && @storage_snapshot_reclaimable.length < 0 invalid_properties.push('invalid value for "storage_snapshot_reclaimable", number of items must be greater than or equal to 0.') end if !@data_reduction_thin_provision_saved_bytes.nil? && @data_reduction_thin_provision_saved_bytes.length > 3000 invalid_properties.push('invalid value for "data_reduction_thin_provision_saved_bytes", number of items must be less than or equal to 3000.') end if !@data_reduction_thin_provision_saved_bytes.nil? && @data_reduction_thin_provision_saved_bytes.length < 0 invalid_properties.push('invalid value for "data_reduction_thin_provision_saved_bytes", number of items must be greater than or equal to 0.') end if !@data_reduction_snapshot_saved_bytes.nil? && @data_reduction_snapshot_saved_bytes.length > 3000 invalid_properties.push('invalid value for "data_reduction_snapshot_saved_bytes", number of items must be less than or equal to 3000.') end if !@data_reduction_snapshot_saved_bytes.nil? && @data_reduction_snapshot_saved_bytes.length < 0 invalid_properties.push('invalid value for "data_reduction_snapshot_saved_bytes", number of items must be greater than or equal to 0.') end if !@data_reduction_clone_saved_bytes.nil? && @data_reduction_clone_saved_bytes.length > 3000 invalid_properties.push('invalid value for "data_reduction_clone_saved_bytes", number of items must be less than or equal to 3000.') end if !@data_reduction_clone_saved_bytes.nil? && @data_reduction_clone_saved_bytes.length < 0 invalid_properties.push('invalid value for "data_reduction_clone_saved_bytes", number of items must be greater than or equal to 0.') end if !@data_reduction_erasure_coding_saved_bytes.nil? && @data_reduction_erasure_coding_saved_bytes.length > 3000 invalid_properties.push('invalid value for "data_reduction_erasure_coding_saved_bytes", number of items must be less than or equal to 3000.') end if !@data_reduction_erasure_coding_saved_bytes.nil? && @data_reduction_erasure_coding_saved_bytes.length < 0 invalid_properties.push('invalid value for "data_reduction_erasure_coding_saved_bytes", number of items must be greater than or equal to 0.') end if !@data_reduction_dedup_saved_bytes.nil? && @data_reduction_dedup_saved_bytes.length > 3000 invalid_properties.push('invalid value for "data_reduction_dedup_saved_bytes", number of items must be less than or equal to 3000.') end if !@data_reduction_dedup_saved_bytes.nil? && @data_reduction_dedup_saved_bytes.length < 0 invalid_properties.push('invalid value for "data_reduction_dedup_saved_bytes", number of items must be greater than or equal to 0.') end if !@data_reduction_overall_saved_bytes.nil? && @data_reduction_overall_saved_bytes.length > 3000 invalid_properties.push('invalid value for "data_reduction_overall_saved_bytes", number of items must be less than or equal to 3000.') end if !@data_reduction_overall_saved_bytes.nil? && @data_reduction_overall_saved_bytes.length < 0 invalid_properties.push('invalid value for "data_reduction_overall_saved_bytes", number of items must be greater than or equal to 0.') end if !@data_reduction_compression_saved_bytes.nil? && @data_reduction_compression_saved_bytes.length > 3000 invalid_properties.push('invalid value for "data_reduction_compression_saved_bytes", number of items must be less than or equal to 3000.') end if !@data_reduction_compression_saved_bytes.nil? && @data_reduction_compression_saved_bytes.length < 0 invalid_properties.push('invalid value for "data_reduction_compression_saved_bytes", number of items must be greater than or equal to 0.') end if !@health.nil? && @health.length > 3000 invalid_properties.push('invalid value for "health", number of items must be less than or equal to 3000.') end if !@health.nil? && @health.length < 0 invalid_properties.push('invalid value for "health", number of items must be greater than or equal to 0.') end pattern = Regexp.new(/^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/) if !@container_ext_id.nil? && @container_ext_id !~ pattern invalid_properties.push("invalid value for \"container_ext_id\", must conform to the pattern #{pattern}.") end invalid_properties end |
#to_hash ⇒ Hash
Returns the object in the form of hash
2059 2060 2061 2062 2063 2064 2065 2066 2067 2068 2069 2070 2071 |
# File 'lib/nutanix_clustermgmt/models/clustermgmt_v40_stats_storage_container_stats.rb', line 2059 def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| value = self.send(attr) if value.nil? is_nullable = self.class.openapi_nullable.include?(attr) next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) end hash[param] = _to_hash(value) end hash end |
#valid? ⇒ Boolean
Check to see if the all the properties in the model are valid
997 998 999 1000 1001 1002 1003 1004 1005 1006 1007 1008 1009 1010 1011 1012 1013 1014 1015 1016 1017 1018 1019 1020 1021 1022 1023 1024 1025 1026 1027 1028 1029 1030 1031 1032 1033 1034 1035 1036 1037 1038 1039 1040 1041 1042 1043 1044 1045 1046 1047 1048 1049 1050 1051 1052 1053 1054 1055 1056 1057 1058 1059 1060 1061 1062 1063 1064 1065 1066 1067 1068 1069 1070 1071 1072 1073 1074 1075 1076 1077 1078 1079 1080 1081 1082 1083 1084 1085 1086 1087 1088 1089 1090 1091 1092 1093 1094 1095 |
# File 'lib/nutanix_clustermgmt/models/clustermgmt_v40_stats_storage_container_stats.rb', line 997 def valid? warn '[DEPRECATED] the `valid?` method is obsolete' return false if !@tenant_id.nil? && @tenant_id !~ Regexp.new(/^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/) return false if !@ext_id.nil? && @ext_id !~ Regexp.new(/^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/) return false if !@links.nil? && @links.length > 20 return false if !@links.nil? && @links.length < 0 return false if !@controller_num_iops.nil? && @controller_num_iops.length > 3000 return false if !@controller_num_iops.nil? && @controller_num_iops.length < 0 return false if !@controller_io_bandwidthk_bps.nil? && @controller_io_bandwidthk_bps.length > 3000 return false if !@controller_io_bandwidthk_bps.nil? && @controller_io_bandwidthk_bps.length < 0 return false if !@controller_avg_io_latencyu_secs.nil? && @controller_avg_io_latencyu_secs.length > 3000 return false if !@controller_avg_io_latencyu_secs.nil? && @controller_avg_io_latencyu_secs.length < 0 return false if !@controller_num_read_iops.nil? && @controller_num_read_iops.length > 3000 return false if !@controller_num_read_iops.nil? && @controller_num_read_iops.length < 0 return false if !@controller_num_write_iops.nil? && @controller_num_write_iops.length > 3000 return false if !@controller_num_write_iops.nil? && @controller_num_write_iops.length < 0 return false if !@controller_read_io_bandwidthk_bps.nil? && @controller_read_io_bandwidthk_bps.length > 3000 return false if !@controller_read_io_bandwidthk_bps.nil? && @controller_read_io_bandwidthk_bps.length < 0 return false if !@controller_write_io_bandwidthk_bps.nil? && @controller_write_io_bandwidthk_bps.length > 3000 return false if !@controller_write_io_bandwidthk_bps.nil? && @controller_write_io_bandwidthk_bps.length < 0 return false if !@controller_avg_read_io_latencyu_secs.nil? && @controller_avg_read_io_latencyu_secs.length > 3000 return false if !@controller_avg_read_io_latencyu_secs.nil? && @controller_avg_read_io_latencyu_secs.length < 0 return false if !@controller_avg_write_io_latencyu_secs.nil? && @controller_avg_write_io_latencyu_secs.length > 3000 return false if !@controller_avg_write_io_latencyu_secs.nil? && @controller_avg_write_io_latencyu_secs.length < 0 return false if !@storage_reserved_capacity_bytes.nil? && @storage_reserved_capacity_bytes.length > 3000 return false if !@storage_reserved_capacity_bytes.nil? && @storage_reserved_capacity_bytes.length < 0 return false if !@storage_actual_physical_usage_bytes.nil? && @storage_actual_physical_usage_bytes.length > 3000 return false if !@storage_actual_physical_usage_bytes.nil? && @storage_actual_physical_usage_bytes.length < 0 return false if !@data_reduction_saving_ratio_ppm.nil? && @data_reduction_saving_ratio_ppm.length > 3000 return false if !@data_reduction_saving_ratio_ppm.nil? && @data_reduction_saving_ratio_ppm.length < 0 return false if !@data_reduction_total_saving_ratio_ppm.nil? && @data_reduction_total_saving_ratio_ppm.length > 3000 return false if !@data_reduction_total_saving_ratio_ppm.nil? && @data_reduction_total_saving_ratio_ppm.length < 0 return false if !@storage_free_bytes.nil? && @storage_free_bytes.length > 3000 return false if !@storage_free_bytes.nil? && @storage_free_bytes.length < 0 return false if !@storage_capacity_bytes.nil? && @storage_capacity_bytes.length > 3000 return false if !@storage_capacity_bytes.nil? && @storage_capacity_bytes.length < 0 return false if !@data_reduction_saved_bytes.nil? && @data_reduction_saved_bytes.length > 3000 return false if !@data_reduction_saved_bytes.nil? && @data_reduction_saved_bytes.length < 0 return false if !@data_reduction_overall_pre_reduction_bytes.nil? && @data_reduction_overall_pre_reduction_bytes.length > 3000 return false if !@data_reduction_overall_pre_reduction_bytes.nil? && @data_reduction_overall_pre_reduction_bytes.length < 0 return false if !@data_reduction_overall_post_reduction_bytes.nil? && @data_reduction_overall_post_reduction_bytes.length > 3000 return false if !@data_reduction_overall_post_reduction_bytes.nil? && @data_reduction_overall_post_reduction_bytes.length < 0 return false if !@data_reduction_compression_saving_ratio_ppm.nil? && @data_reduction_compression_saving_ratio_ppm.length > 3000 return false if !@data_reduction_compression_saving_ratio_ppm.nil? && @data_reduction_compression_saving_ratio_ppm.length < 0 return false if !@data_reduction_dedup_saving_ratio_ppm.nil? && @data_reduction_dedup_saving_ratio_ppm.length > 3000 return false if !@data_reduction_dedup_saving_ratio_ppm.nil? && @data_reduction_dedup_saving_ratio_ppm.length < 0 return false if !@data_reduction_erasure_coding_saving_ratio_ppm.nil? && @data_reduction_erasure_coding_saving_ratio_ppm.length > 3000 return false if !@data_reduction_erasure_coding_saving_ratio_ppm.nil? && @data_reduction_erasure_coding_saving_ratio_ppm.length < 0 return false if !@data_reduction_thin_provision_saving_ratio_ppm.nil? && @data_reduction_thin_provision_saving_ratio_ppm.length > 3000 return false if !@data_reduction_thin_provision_saving_ratio_ppm.nil? && @data_reduction_thin_provision_saving_ratio_ppm.length < 0 return false if !@data_reduction_clone_saving_ratio_ppm.nil? && @data_reduction_clone_saving_ratio_ppm.length > 3000 return false if !@data_reduction_clone_saving_ratio_ppm.nil? && @data_reduction_clone_saving_ratio_ppm.length < 0 return false if !@data_reduction_snapshot_saving_ratio_ppm.nil? && @data_reduction_snapshot_saving_ratio_ppm.length > 3000 return false if !@data_reduction_snapshot_saving_ratio_ppm.nil? && @data_reduction_snapshot_saving_ratio_ppm.length < 0 return false if !@data_reduction_zero_write_savings_bytes.nil? && @data_reduction_zero_write_savings_bytes.length > 3000 return false if !@data_reduction_zero_write_savings_bytes.nil? && @data_reduction_zero_write_savings_bytes.length < 0 return false if !@controller_read_io_ratio_ppm.nil? && @controller_read_io_ratio_ppm.length > 3000 return false if !@controller_read_io_ratio_ppm.nil? && @controller_read_io_ratio_ppm.length < 0 return false if !@controller_write_io_ratio_ppm.nil? && @controller_write_io_ratio_ppm.length > 3000 return false if !@controller_write_io_ratio_ppm.nil? && @controller_write_io_ratio_ppm.length < 0 return false if !@storage_replication_factor.nil? && @storage_replication_factor.length > 3000 return false if !@storage_replication_factor.nil? && @storage_replication_factor.length < 0 return false if !@storage_usage_bytes.nil? && @storage_usage_bytes.length > 3000 return false if !@storage_usage_bytes.nil? && @storage_usage_bytes.length < 0 return false if !@storage_tier_das_sata_usage_bytes.nil? && @storage_tier_das_sata_usage_bytes.length > 3000 return false if !@storage_tier_das_sata_usage_bytes.nil? && @storage_tier_das_sata_usage_bytes.length < 0 return false if !@storage_tier_ssd_usage_bytes.nil? && @storage_tier_ssd_usage_bytes.length > 3000 return false if !@storage_tier_ssd_usage_bytes.nil? && @storage_tier_ssd_usage_bytes.length < 0 return false if !@storage_reserved_usage_bytes.nil? && @storage_reserved_usage_bytes.length > 3000 return false if !@storage_reserved_usage_bytes.nil? && @storage_reserved_usage_bytes.length < 0 return false if !@storage_reserved_free_bytes.nil? && @storage_reserved_free_bytes.length > 3000 return false if !@storage_reserved_free_bytes.nil? && @storage_reserved_free_bytes.length < 0 return false if !@storage_unreserved_usage_bytes.nil? && @storage_unreserved_usage_bytes.length > 3000 return false if !@storage_unreserved_usage_bytes.nil? && @storage_unreserved_usage_bytes.length < 0 return false if !@storage_other_containers_reserved_capacity.nil? && @storage_other_containers_reserved_capacity.length > 3000 return false if !@storage_other_containers_reserved_capacity.nil? && @storage_other_containers_reserved_capacity.length < 0 return false if !@storage_other_containers_unreserved_capacity.nil? && @storage_other_containers_unreserved_capacity.length > 3000 return false if !@storage_other_containers_unreserved_capacity.nil? && @storage_other_containers_unreserved_capacity.length < 0 return false if !@storage_snapshot_reclaimable.nil? && @storage_snapshot_reclaimable.length > 3000 return false if !@storage_snapshot_reclaimable.nil? && @storage_snapshot_reclaimable.length < 0 return false if !@data_reduction_thin_provision_saved_bytes.nil? && @data_reduction_thin_provision_saved_bytes.length > 3000 return false if !@data_reduction_thin_provision_saved_bytes.nil? && @data_reduction_thin_provision_saved_bytes.length < 0 return false if !@data_reduction_snapshot_saved_bytes.nil? && @data_reduction_snapshot_saved_bytes.length > 3000 return false if !@data_reduction_snapshot_saved_bytes.nil? && @data_reduction_snapshot_saved_bytes.length < 0 return false if !@data_reduction_clone_saved_bytes.nil? && @data_reduction_clone_saved_bytes.length > 3000 return false if !@data_reduction_clone_saved_bytes.nil? && @data_reduction_clone_saved_bytes.length < 0 return false if !@data_reduction_erasure_coding_saved_bytes.nil? && @data_reduction_erasure_coding_saved_bytes.length > 3000 return false if !@data_reduction_erasure_coding_saved_bytes.nil? && @data_reduction_erasure_coding_saved_bytes.length < 0 return false if !@data_reduction_dedup_saved_bytes.nil? && @data_reduction_dedup_saved_bytes.length > 3000 return false if !@data_reduction_dedup_saved_bytes.nil? && @data_reduction_dedup_saved_bytes.length < 0 return false if !@data_reduction_overall_saved_bytes.nil? && @data_reduction_overall_saved_bytes.length > 3000 return false if !@data_reduction_overall_saved_bytes.nil? && @data_reduction_overall_saved_bytes.length < 0 return false if !@data_reduction_compression_saved_bytes.nil? && @data_reduction_compression_saved_bytes.length > 3000 return false if !@data_reduction_compression_saved_bytes.nil? && @data_reduction_compression_saved_bytes.length < 0 return false if !@health.nil? && @health.length > 3000 return false if !@health.nil? && @health.length < 0 return false if !@container_ext_id.nil? && @container_ext_id !~ Regexp.new(/^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/) true end |