Class: NutanixClustermgmt::ClustermgmtV40StatsDiskStats
- Inherits:
-
ApiModelBase
- Object
- ApiModelBase
- NutanixClustermgmt::ClustermgmtV40StatsDiskStats
- Defined in:
- lib/nutanix_clustermgmt/models/clustermgmt_v40_stats_disk_stats.rb
Instance Attribute Summary collapse
-
#disk_avg_io_latency_microsec ⇒ Object
Average I/O latency.
-
#disk_base_io_bandwidthkbps ⇒ Object
Lower limit of data transfer that a Disk can handle per second.
-
#disk_base_io_latency_microsec ⇒ Object
Lower limit of the latency of I/O operations that the Disk can handle without exceeding its standard latency level.
-
#disk_base_num_iops ⇒ Object
Lower limit of I/O operations that a Disk can perform per second.
-
#disk_base_read_io_avg_latency_microsec ⇒ Object
Lower buffer capacity average read I/O latency, measured in microseconds (μs).
-
#disk_base_read_io_bandwidthkbps ⇒ Object
Lower buffer capacity for the amount of I/O bandwidth that a Disk can handle read operations.
-
#disk_base_read_iops ⇒ Object
Lower buffer capacity for the number of read IOPS that a Disk can handle.
-
#disk_base_write_io_avg_latency_microsec ⇒ Object
Lower buffer capacity average write I/O latency, measured in microseconds (μs).
-
#disk_base_write_io_bandwidthkbps ⇒ Object
Lower buffer capacity for the amount of I/O bandwidth that a Disk can handle write operations.
-
#disk_base_write_iops ⇒ Object
Lower buffer capacity of a number of write I/O per second.
-
#disk_capacity_bytes ⇒ Object
Total storage capacity of a device in bytes.
-
#disk_free_bytes ⇒ Object
Free storage space available on the Disk, measured in bytes.
-
#disk_io_bandwidthkbps ⇒ Object
I/O bandwidth in KB per second.
-
#disk_num_iops ⇒ Object
Number of I/O operations that a Disk performs per second.
-
#disk_peak_io_bandwidthkbps ⇒ Object
Upper limit of data transfer that a Disk can handle per second.
-
#disk_peak_io_latency_microsec ⇒ Object
Upper limit of the latency of I/O operations that the Disk can handle without exceeding its standard latency level.
-
#disk_peak_num_iops ⇒ Object
Upper limit of I/O operations that a Disk performs per second.
-
#disk_peak_read_io_avg_latency_microsec ⇒ Object
Upper buffer capacity average read I/O latency, measured in microseconds (μs).
-
#disk_peak_read_io_bandwidthkbps ⇒ Object
Upper buffer capacity for the amount of I/O bandwidth that a Disk can handle read operations.
-
#disk_peak_read_iops ⇒ Object
Upper buffer capacity for the number of read IOPS that a Disk can handle.
-
#disk_peak_write_io_avg_latency_microsec ⇒ Object
Upper buffer capacity average write I/O latency, measured in microseconds (μs).
-
#disk_peak_write_io_bandwidthkbps ⇒ Object
Upper buffer capacity for the amount of I/O bandwidth that a Disk can handle write operations.
-
#disk_peak_write_iops ⇒ Object
Upper buffer capacity of a number of write I/O per second.
-
#disk_read_io_avg_latency_microsec ⇒ Object
Average read I/O latency, measured in microseconds (μs).
-
#disk_read_io_bandwidthkbps ⇒ Object
Number of Disk read I/O per second as reported by Stargate.
-
#disk_read_io_ppm ⇒ Object
Disk read I/O, expressed in parts per million.
-
#disk_read_iops ⇒ Object
Number of read I/O per second.
-
#disk_usage_bytes ⇒ Object
Amount of storage currently being used, measured in bytes.
-
#disk_usage_ppm ⇒ Object
Disk space used on a storage device, expressed in parts per million (ppm).
-
#disk_write_io_avg_latency_microsec ⇒ Object
Average write I/O latency, measured in microseconds (μs).
-
#disk_write_io_bandwidthkbps ⇒ Object
Number of Disk write I/O per second reported by Stargate.
-
#disk_write_io_ppm ⇒ Object
Disk write I/O, expressed in parts per million.
-
#disk_write_iops ⇒ Object
Number of write I/O per second.
-
#ext_id ⇒ Object
A globally unique identifier of an instance that is suitable for external consumption.
-
#links ⇒ Object
A HATEOAS style link for the response.
-
#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 = {}) ⇒ ClustermgmtV40StatsDiskStats
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 = {}) ⇒ ClustermgmtV40StatsDiskStats
Initializes the object
236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 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 |
# File 'lib/nutanix_clustermgmt/models/clustermgmt_v40_stats_disk_stats.rb', line 236 def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `NutanixClustermgmt::ClustermgmtV40StatsDiskStats` 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::ClustermgmtV40StatsDiskStats`. 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?(:'disk_usage_ppm') if (value = attributes[:'disk_usage_ppm']).is_a?(Array) self.disk_usage_ppm = value end end if attributes.key?(:'disk_capacity_bytes') if (value = attributes[:'disk_capacity_bytes']).is_a?(Array) self.disk_capacity_bytes = value end end if attributes.key?(:'disk_num_iops') if (value = attributes[:'disk_num_iops']).is_a?(Array) self.disk_num_iops = value end end if attributes.key?(:'disk_peak_num_iops') if (value = attributes[:'disk_peak_num_iops']).is_a?(Array) self.disk_peak_num_iops = value end end if attributes.key?(:'disk_base_num_iops') if (value = attributes[:'disk_base_num_iops']).is_a?(Array) self.disk_base_num_iops = value end end if attributes.key?(:'disk_io_bandwidthkbps') if (value = attributes[:'disk_io_bandwidthkbps']).is_a?(Array) self.disk_io_bandwidthkbps = value end end if attributes.key?(:'disk_peak_io_bandwidthkbps') if (value = attributes[:'disk_peak_io_bandwidthkbps']).is_a?(Array) self.disk_peak_io_bandwidthkbps = value end end if attributes.key?(:'disk_base_io_bandwidthkbps') if (value = attributes[:'disk_base_io_bandwidthkbps']).is_a?(Array) self.disk_base_io_bandwidthkbps = value end end if attributes.key?(:'disk_avg_io_latency_microsec') if (value = attributes[:'disk_avg_io_latency_microsec']).is_a?(Array) self.disk_avg_io_latency_microsec = value end end if attributes.key?(:'disk_peak_io_latency_microsec') if (value = attributes[:'disk_peak_io_latency_microsec']).is_a?(Array) self.disk_peak_io_latency_microsec = value end end if attributes.key?(:'disk_base_io_latency_microsec') if (value = attributes[:'disk_base_io_latency_microsec']).is_a?(Array) self.disk_base_io_latency_microsec = value end end if attributes.key?(:'disk_free_bytes') if (value = attributes[:'disk_free_bytes']).is_a?(Array) self.disk_free_bytes = value end end if attributes.key?(:'disk_usage_bytes') if (value = attributes[:'disk_usage_bytes']).is_a?(Array) self.disk_usage_bytes = value end end if attributes.key?(:'disk_read_iops') if (value = attributes[:'disk_read_iops']).is_a?(Array) self.disk_read_iops = value end end if attributes.key?(:'disk_base_read_iops') if (value = attributes[:'disk_base_read_iops']).is_a?(Array) self.disk_base_read_iops = value end end if attributes.key?(:'disk_peak_read_iops') if (value = attributes[:'disk_peak_read_iops']).is_a?(Array) self.disk_peak_read_iops = value end end if attributes.key?(:'disk_write_iops') if (value = attributes[:'disk_write_iops']).is_a?(Array) self.disk_write_iops = value end end if attributes.key?(:'disk_peak_write_iops') if (value = attributes[:'disk_peak_write_iops']).is_a?(Array) self.disk_peak_write_iops = value end end if attributes.key?(:'disk_base_write_iops') if (value = attributes[:'disk_base_write_iops']).is_a?(Array) self.disk_base_write_iops = value end end if attributes.key?(:'disk_read_io_bandwidthkbps') if (value = attributes[:'disk_read_io_bandwidthkbps']).is_a?(Array) self.disk_read_io_bandwidthkbps = value end end if attributes.key?(:'disk_peak_read_io_bandwidthkbps') if (value = attributes[:'disk_peak_read_io_bandwidthkbps']).is_a?(Array) self.disk_peak_read_io_bandwidthkbps = value end end if attributes.key?(:'disk_base_read_io_bandwidthkbps') if (value = attributes[:'disk_base_read_io_bandwidthkbps']).is_a?(Array) self.disk_base_read_io_bandwidthkbps = value end end if attributes.key?(:'disk_write_io_bandwidthkbps') if (value = attributes[:'disk_write_io_bandwidthkbps']).is_a?(Array) self.disk_write_io_bandwidthkbps = value end end if attributes.key?(:'disk_peak_write_io_bandwidthkbps') if (value = attributes[:'disk_peak_write_io_bandwidthkbps']).is_a?(Array) self.disk_peak_write_io_bandwidthkbps = value end end if attributes.key?(:'disk_base_write_io_bandwidthkbps') if (value = attributes[:'disk_base_write_io_bandwidthkbps']).is_a?(Array) self.disk_base_write_io_bandwidthkbps = value end end if attributes.key?(:'disk_read_io_avg_latency_microsec') if (value = attributes[:'disk_read_io_avg_latency_microsec']).is_a?(Array) self.disk_read_io_avg_latency_microsec = value end end if attributes.key?(:'disk_peak_read_io_avg_latency_microsec') if (value = attributes[:'disk_peak_read_io_avg_latency_microsec']).is_a?(Array) self.disk_peak_read_io_avg_latency_microsec = value end end if attributes.key?(:'disk_base_read_io_avg_latency_microsec') if (value = attributes[:'disk_base_read_io_avg_latency_microsec']).is_a?(Array) self.disk_base_read_io_avg_latency_microsec = value end end if attributes.key?(:'disk_write_io_avg_latency_microsec') if (value = attributes[:'disk_write_io_avg_latency_microsec']).is_a?(Array) self.disk_write_io_avg_latency_microsec = value end end if attributes.key?(:'disk_peak_write_io_avg_latency_microsec') if (value = attributes[:'disk_peak_write_io_avg_latency_microsec']).is_a?(Array) self.disk_peak_write_io_avg_latency_microsec = value end end if attributes.key?(:'disk_base_write_io_avg_latency_microsec') if (value = attributes[:'disk_base_write_io_avg_latency_microsec']).is_a?(Array) self.disk_base_write_io_avg_latency_microsec = value end end if attributes.key?(:'disk_read_io_ppm') if (value = attributes[:'disk_read_io_ppm']).is_a?(Array) self.disk_read_io_ppm = value end end if attributes.key?(:'disk_write_io_ppm') if (value = attributes[:'disk_write_io_ppm']).is_a?(Array) self.disk_write_io_ppm = value end end end |
Instance Attribute Details
#disk_avg_io_latency_microsec ⇒ Object
Average I/O latency.
52 53 54 |
# File 'lib/nutanix_clustermgmt/models/clustermgmt_v40_stats_disk_stats.rb', line 52 def disk_avg_io_latency_microsec @disk_avg_io_latency_microsec end |
#disk_base_io_bandwidthkbps ⇒ Object
Lower limit of data transfer that a Disk can handle per second.
49 50 51 |
# File 'lib/nutanix_clustermgmt/models/clustermgmt_v40_stats_disk_stats.rb', line 49 def disk_base_io_bandwidthkbps @disk_base_io_bandwidthkbps end |
#disk_base_io_latency_microsec ⇒ Object
Lower limit of the latency of I/O operations that the Disk can handle without exceeding its standard latency level.
58 59 60 |
# File 'lib/nutanix_clustermgmt/models/clustermgmt_v40_stats_disk_stats.rb', line 58 def disk_base_io_latency_microsec @disk_base_io_latency_microsec end |
#disk_base_num_iops ⇒ Object
Lower limit of I/O operations that a Disk can perform per second.
40 41 42 |
# File 'lib/nutanix_clustermgmt/models/clustermgmt_v40_stats_disk_stats.rb', line 40 def disk_base_num_iops @disk_base_num_iops end |
#disk_base_read_io_avg_latency_microsec ⇒ Object
Lower buffer capacity average read I/O latency, measured in microseconds (μs).
109 110 111 |
# File 'lib/nutanix_clustermgmt/models/clustermgmt_v40_stats_disk_stats.rb', line 109 def disk_base_read_io_avg_latency_microsec @disk_base_read_io_avg_latency_microsec end |
#disk_base_read_io_bandwidthkbps ⇒ Object
Lower buffer capacity for the amount of I/O bandwidth that a Disk can handle read operations.
91 92 93 |
# File 'lib/nutanix_clustermgmt/models/clustermgmt_v40_stats_disk_stats.rb', line 91 def disk_base_read_io_bandwidthkbps @disk_base_read_io_bandwidthkbps end |
#disk_base_read_iops ⇒ Object
Lower buffer capacity for the number of read IOPS that a Disk can handle.
70 71 72 |
# File 'lib/nutanix_clustermgmt/models/clustermgmt_v40_stats_disk_stats.rb', line 70 def disk_base_read_iops @disk_base_read_iops end |
#disk_base_write_io_avg_latency_microsec ⇒ Object
Lower buffer capacity average write I/O latency, measured in microseconds (μs).
118 119 120 |
# File 'lib/nutanix_clustermgmt/models/clustermgmt_v40_stats_disk_stats.rb', line 118 def disk_base_write_io_avg_latency_microsec @disk_base_write_io_avg_latency_microsec end |
#disk_base_write_io_bandwidthkbps ⇒ Object
Lower buffer capacity for the amount of I/O bandwidth that a Disk can handle write operations.
100 101 102 |
# File 'lib/nutanix_clustermgmt/models/clustermgmt_v40_stats_disk_stats.rb', line 100 def disk_base_write_io_bandwidthkbps @disk_base_write_io_bandwidthkbps end |
#disk_base_write_iops ⇒ Object
Lower buffer capacity of a number of write I/O per second.
82 83 84 |
# File 'lib/nutanix_clustermgmt/models/clustermgmt_v40_stats_disk_stats.rb', line 82 def disk_base_write_iops @disk_base_write_iops end |
#disk_capacity_bytes ⇒ Object
Total storage capacity of a device in bytes.
31 32 33 |
# File 'lib/nutanix_clustermgmt/models/clustermgmt_v40_stats_disk_stats.rb', line 31 def disk_capacity_bytes @disk_capacity_bytes end |
#disk_free_bytes ⇒ Object
Free storage space available on the Disk, measured in bytes.
61 62 63 |
# File 'lib/nutanix_clustermgmt/models/clustermgmt_v40_stats_disk_stats.rb', line 61 def disk_free_bytes @disk_free_bytes end |
#disk_io_bandwidthkbps ⇒ Object
I/O bandwidth in KB per second.
43 44 45 |
# File 'lib/nutanix_clustermgmt/models/clustermgmt_v40_stats_disk_stats.rb', line 43 def disk_io_bandwidthkbps @disk_io_bandwidthkbps end |
#disk_num_iops ⇒ Object
Number of I/O operations that a Disk performs per second.
34 35 36 |
# File 'lib/nutanix_clustermgmt/models/clustermgmt_v40_stats_disk_stats.rb', line 34 def disk_num_iops @disk_num_iops end |
#disk_peak_io_bandwidthkbps ⇒ Object
Upper limit of data transfer that a Disk can handle per second.
46 47 48 |
# File 'lib/nutanix_clustermgmt/models/clustermgmt_v40_stats_disk_stats.rb', line 46 def disk_peak_io_bandwidthkbps @disk_peak_io_bandwidthkbps end |
#disk_peak_io_latency_microsec ⇒ Object
Upper limit of the latency of I/O operations that the Disk can handle without exceeding its standard latency level.
55 56 57 |
# File 'lib/nutanix_clustermgmt/models/clustermgmt_v40_stats_disk_stats.rb', line 55 def disk_peak_io_latency_microsec @disk_peak_io_latency_microsec end |
#disk_peak_num_iops ⇒ Object
Upper limit of I/O operations that a Disk performs per second.
37 38 39 |
# File 'lib/nutanix_clustermgmt/models/clustermgmt_v40_stats_disk_stats.rb', line 37 def disk_peak_num_iops @disk_peak_num_iops end |
#disk_peak_read_io_avg_latency_microsec ⇒ Object
Upper buffer capacity average read I/O latency, measured in microseconds (μs).
106 107 108 |
# File 'lib/nutanix_clustermgmt/models/clustermgmt_v40_stats_disk_stats.rb', line 106 def disk_peak_read_io_avg_latency_microsec @disk_peak_read_io_avg_latency_microsec end |
#disk_peak_read_io_bandwidthkbps ⇒ Object
Upper buffer capacity for the amount of I/O bandwidth that a Disk can handle read operations.
88 89 90 |
# File 'lib/nutanix_clustermgmt/models/clustermgmt_v40_stats_disk_stats.rb', line 88 def disk_peak_read_io_bandwidthkbps @disk_peak_read_io_bandwidthkbps end |
#disk_peak_read_iops ⇒ Object
Upper buffer capacity for the number of read IOPS that a Disk can handle.
73 74 75 |
# File 'lib/nutanix_clustermgmt/models/clustermgmt_v40_stats_disk_stats.rb', line 73 def disk_peak_read_iops @disk_peak_read_iops end |
#disk_peak_write_io_avg_latency_microsec ⇒ Object
Upper buffer capacity average write I/O latency, measured in microseconds (μs).
115 116 117 |
# File 'lib/nutanix_clustermgmt/models/clustermgmt_v40_stats_disk_stats.rb', line 115 def disk_peak_write_io_avg_latency_microsec @disk_peak_write_io_avg_latency_microsec end |
#disk_peak_write_io_bandwidthkbps ⇒ Object
Upper buffer capacity for the amount of I/O bandwidth that a Disk can handle write operations.
97 98 99 |
# File 'lib/nutanix_clustermgmt/models/clustermgmt_v40_stats_disk_stats.rb', line 97 def disk_peak_write_io_bandwidthkbps @disk_peak_write_io_bandwidthkbps end |
#disk_peak_write_iops ⇒ Object
Upper buffer capacity of a number of write I/O per second.
79 80 81 |
# File 'lib/nutanix_clustermgmt/models/clustermgmt_v40_stats_disk_stats.rb', line 79 def disk_peak_write_iops @disk_peak_write_iops end |
#disk_read_io_avg_latency_microsec ⇒ Object
Average read I/O latency, measured in microseconds (μs).
103 104 105 |
# File 'lib/nutanix_clustermgmt/models/clustermgmt_v40_stats_disk_stats.rb', line 103 def disk_read_io_avg_latency_microsec @disk_read_io_avg_latency_microsec end |
#disk_read_io_bandwidthkbps ⇒ Object
Number of Disk read I/O per second as reported by Stargate.
85 86 87 |
# File 'lib/nutanix_clustermgmt/models/clustermgmt_v40_stats_disk_stats.rb', line 85 def disk_read_io_bandwidthkbps @disk_read_io_bandwidthkbps end |
#disk_read_io_ppm ⇒ Object
Disk read I/O, expressed in parts per million.
121 122 123 |
# File 'lib/nutanix_clustermgmt/models/clustermgmt_v40_stats_disk_stats.rb', line 121 def disk_read_io_ppm @disk_read_io_ppm end |
#disk_read_iops ⇒ Object
Number of read I/O per second.
67 68 69 |
# File 'lib/nutanix_clustermgmt/models/clustermgmt_v40_stats_disk_stats.rb', line 67 def disk_read_iops @disk_read_iops end |
#disk_usage_bytes ⇒ Object
Amount of storage currently being used, measured in bytes.
64 65 66 |
# File 'lib/nutanix_clustermgmt/models/clustermgmt_v40_stats_disk_stats.rb', line 64 def disk_usage_bytes @disk_usage_bytes end |
#disk_usage_ppm ⇒ Object
Disk space used on a storage device, expressed in parts per million (ppm).
28 29 30 |
# File 'lib/nutanix_clustermgmt/models/clustermgmt_v40_stats_disk_stats.rb', line 28 def disk_usage_ppm @disk_usage_ppm end |
#disk_write_io_avg_latency_microsec ⇒ Object
Average write I/O latency, measured in microseconds (μs).
112 113 114 |
# File 'lib/nutanix_clustermgmt/models/clustermgmt_v40_stats_disk_stats.rb', line 112 def disk_write_io_avg_latency_microsec @disk_write_io_avg_latency_microsec end |
#disk_write_io_bandwidthkbps ⇒ Object
Number of Disk write I/O per second reported by Stargate.
94 95 96 |
# File 'lib/nutanix_clustermgmt/models/clustermgmt_v40_stats_disk_stats.rb', line 94 def disk_write_io_bandwidthkbps @disk_write_io_bandwidthkbps end |
#disk_write_io_ppm ⇒ Object
Disk write I/O, expressed in parts per million.
124 125 126 |
# File 'lib/nutanix_clustermgmt/models/clustermgmt_v40_stats_disk_stats.rb', line 124 def disk_write_io_ppm @disk_write_io_ppm end |
#disk_write_iops ⇒ Object
Number of write I/O per second.
76 77 78 |
# File 'lib/nutanix_clustermgmt/models/clustermgmt_v40_stats_disk_stats.rb', line 76 def disk_write_iops @disk_write_iops 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_disk_stats.rb', line 22 def ext_id @ext_id 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_disk_stats.rb', line 25 def links @links 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_disk_stats.rb', line 19 def tenant_id @tenant_id end |
Class Method Details
.acceptable_attribute_map ⇒ Object
Returns attribute mapping this model knows about
169 170 171 |
# File 'lib/nutanix_clustermgmt/models/clustermgmt_v40_stats_disk_stats.rb', line 169 def self.acceptable_attribute_map attribute_map end |
.acceptable_attributes ⇒ Object
Returns all the JSON keys this model knows about
174 175 176 |
# File 'lib/nutanix_clustermgmt/models/clustermgmt_v40_stats_disk_stats.rb', line 174 def self.acceptable_attributes acceptable_attribute_map.values end |
.attribute_map ⇒ Object
Attribute mapping from ruby-style variable name to JSON key.
127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 |
# File 'lib/nutanix_clustermgmt/models/clustermgmt_v40_stats_disk_stats.rb', line 127 def self.attribute_map { :'tenant_id' => :'tenantId', :'ext_id' => :'extId', :'links' => :'links', :'disk_usage_ppm' => :'diskUsagePpm', :'disk_capacity_bytes' => :'diskCapacityBytes', :'disk_num_iops' => :'diskNumIops', :'disk_peak_num_iops' => :'diskPeakNumIops', :'disk_base_num_iops' => :'diskBaseNumIops', :'disk_io_bandwidthkbps' => :'diskIoBandwidthkbps', :'disk_peak_io_bandwidthkbps' => :'diskPeakIoBandwidthkbps', :'disk_base_io_bandwidthkbps' => :'diskBaseIoBandwidthkbps', :'disk_avg_io_latency_microsec' => :'diskAvgIoLatencyMicrosec', :'disk_peak_io_latency_microsec' => :'diskPeakIoLatencyMicrosec', :'disk_base_io_latency_microsec' => :'diskBaseIoLatencyMicrosec', :'disk_free_bytes' => :'diskFreeBytes', :'disk_usage_bytes' => :'diskUsageBytes', :'disk_read_iops' => :'diskReadIops', :'disk_base_read_iops' => :'diskBaseReadIops', :'disk_peak_read_iops' => :'diskPeakReadIops', :'disk_write_iops' => :'diskWriteIops', :'disk_peak_write_iops' => :'diskPeakWriteIops', :'disk_base_write_iops' => :'diskBaseWriteIops', :'disk_read_io_bandwidthkbps' => :'diskReadIoBandwidthkbps', :'disk_peak_read_io_bandwidthkbps' => :'diskPeakReadIoBandwidthkbps', :'disk_base_read_io_bandwidthkbps' => :'diskBaseReadIoBandwidthkbps', :'disk_write_io_bandwidthkbps' => :'diskWriteIoBandwidthkbps', :'disk_peak_write_io_bandwidthkbps' => :'diskPeakWriteIoBandwidthkbps', :'disk_base_write_io_bandwidthkbps' => :'diskBaseWriteIoBandwidthkbps', :'disk_read_io_avg_latency_microsec' => :'diskReadIoAvgLatencyMicrosec', :'disk_peak_read_io_avg_latency_microsec' => :'diskPeakReadIoAvgLatencyMicrosec', :'disk_base_read_io_avg_latency_microsec' => :'diskBaseReadIoAvgLatencyMicrosec', :'disk_write_io_avg_latency_microsec' => :'diskWriteIoAvgLatencyMicrosec', :'disk_peak_write_io_avg_latency_microsec' => :'diskPeakWriteIoAvgLatencyMicrosec', :'disk_base_write_io_avg_latency_microsec' => :'diskBaseWriteIoAvgLatencyMicrosec', :'disk_read_io_ppm' => :'diskReadIoPpm', :'disk_write_io_ppm' => :'diskWriteIoPpm' } end |
.build_from_hash(attributes) ⇒ Object
Builds the object from hash
1526 1527 1528 1529 1530 1531 1532 1533 1534 1535 1536 1537 1538 1539 1540 1541 1542 1543 1544 |
# File 'lib/nutanix_clustermgmt/models/clustermgmt_v40_stats_disk_stats.rb', line 1526 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)
228 229 230 231 232 |
# File 'lib/nutanix_clustermgmt/models/clustermgmt_v40_stats_disk_stats.rb', line 228 def self.openapi_all_of [ :'CommonV10ResponseExternalizableAbstractModel' ] end |
.openapi_nullable ⇒ Object
List of attributes with nullable: true
221 222 223 224 225 |
# File 'lib/nutanix_clustermgmt/models/clustermgmt_v40_stats_disk_stats.rb', line 221 def self.openapi_nullable Set.new([ :'ext_id', ]) end |
.openapi_types ⇒ Object
Attribute type mapping.
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_disk_stats.rb', line 179 def self.openapi_types { :'tenant_id' => :'String', :'ext_id' => :'String', :'links' => :'Array<CommonV10ResponseApiLink>', :'disk_usage_ppm' => :'Array<CommonV10StatsTimeIntValuePair>', :'disk_capacity_bytes' => :'Array<CommonV10StatsTimeIntValuePair>', :'disk_num_iops' => :'Array<CommonV10StatsTimeIntValuePair>', :'disk_peak_num_iops' => :'Array<CommonV10StatsTimeIntValuePair>', :'disk_base_num_iops' => :'Array<CommonV10StatsTimeIntValuePair>', :'disk_io_bandwidthkbps' => :'Array<CommonV10StatsTimeIntValuePair>', :'disk_peak_io_bandwidthkbps' => :'Array<CommonV10StatsTimeIntValuePair>', :'disk_base_io_bandwidthkbps' => :'Array<CommonV10StatsTimeIntValuePair>', :'disk_avg_io_latency_microsec' => :'Array<CommonV10StatsTimeIntValuePair>', :'disk_peak_io_latency_microsec' => :'Array<CommonV10StatsTimeIntValuePair>', :'disk_base_io_latency_microsec' => :'Array<CommonV10StatsTimeIntValuePair>', :'disk_free_bytes' => :'Array<CommonV10StatsTimeIntValuePair>', :'disk_usage_bytes' => :'Array<CommonV10StatsTimeIntValuePair>', :'disk_read_iops' => :'Array<CommonV10StatsTimeIntValuePair>', :'disk_base_read_iops' => :'Array<CommonV10StatsTimeIntValuePair>', :'disk_peak_read_iops' => :'Array<CommonV10StatsTimeIntValuePair>', :'disk_write_iops' => :'Array<CommonV10StatsTimeIntValuePair>', :'disk_peak_write_iops' => :'Array<CommonV10StatsTimeIntValuePair>', :'disk_base_write_iops' => :'Array<CommonV10StatsTimeIntValuePair>', :'disk_read_io_bandwidthkbps' => :'Array<CommonV10StatsTimeIntValuePair>', :'disk_peak_read_io_bandwidthkbps' => :'Array<CommonV10StatsTimeIntValuePair>', :'disk_base_read_io_bandwidthkbps' => :'Array<CommonV10StatsTimeIntValuePair>', :'disk_write_io_bandwidthkbps' => :'Array<CommonV10StatsTimeIntValuePair>', :'disk_peak_write_io_bandwidthkbps' => :'Array<CommonV10StatsTimeIntValuePair>', :'disk_base_write_io_bandwidthkbps' => :'Array<CommonV10StatsTimeIntValuePair>', :'disk_read_io_avg_latency_microsec' => :'Array<CommonV10StatsTimeIntValuePair>', :'disk_peak_read_io_avg_latency_microsec' => :'Array<CommonV10StatsTimeIntValuePair>', :'disk_base_read_io_avg_latency_microsec' => :'Array<CommonV10StatsTimeIntValuePair>', :'disk_write_io_avg_latency_microsec' => :'Array<CommonV10StatsTimeIntValuePair>', :'disk_peak_write_io_avg_latency_microsec' => :'Array<CommonV10StatsTimeIntValuePair>', :'disk_base_write_io_avg_latency_microsec' => :'Array<CommonV10StatsTimeIntValuePair>', :'disk_read_io_ppm' => :'Array<CommonV10StatsTimeIntValuePair>', :'disk_write_io_ppm' => :'Array<CommonV10StatsTimeIntValuePair>' } end |
Instance Method Details
#==(o) ⇒ Object
Checks equality by comparing each attribute.
1470 1471 1472 1473 1474 1475 1476 1477 1478 1479 1480 1481 1482 1483 1484 1485 1486 1487 1488 1489 1490 1491 1492 1493 1494 1495 1496 1497 1498 1499 1500 1501 1502 1503 1504 1505 1506 1507 1508 1509 |
# File 'lib/nutanix_clustermgmt/models/clustermgmt_v40_stats_disk_stats.rb', line 1470 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 && disk_usage_ppm == o.disk_usage_ppm && disk_capacity_bytes == o.disk_capacity_bytes && disk_num_iops == o.disk_num_iops && disk_peak_num_iops == o.disk_peak_num_iops && disk_base_num_iops == o.disk_base_num_iops && disk_io_bandwidthkbps == o.disk_io_bandwidthkbps && disk_peak_io_bandwidthkbps == o.disk_peak_io_bandwidthkbps && disk_base_io_bandwidthkbps == o.disk_base_io_bandwidthkbps && disk_avg_io_latency_microsec == o.disk_avg_io_latency_microsec && disk_peak_io_latency_microsec == o.disk_peak_io_latency_microsec && disk_base_io_latency_microsec == o.disk_base_io_latency_microsec && disk_free_bytes == o.disk_free_bytes && disk_usage_bytes == o.disk_usage_bytes && disk_read_iops == o.disk_read_iops && disk_base_read_iops == o.disk_base_read_iops && disk_peak_read_iops == o.disk_peak_read_iops && disk_write_iops == o.disk_write_iops && disk_peak_write_iops == o.disk_peak_write_iops && disk_base_write_iops == o.disk_base_write_iops && disk_read_io_bandwidthkbps == o.disk_read_io_bandwidthkbps && disk_peak_read_io_bandwidthkbps == o.disk_peak_read_io_bandwidthkbps && disk_base_read_io_bandwidthkbps == o.disk_base_read_io_bandwidthkbps && disk_write_io_bandwidthkbps == o.disk_write_io_bandwidthkbps && disk_peak_write_io_bandwidthkbps == o.disk_peak_write_io_bandwidthkbps && disk_base_write_io_bandwidthkbps == o.disk_base_write_io_bandwidthkbps && disk_read_io_avg_latency_microsec == o.disk_read_io_avg_latency_microsec && disk_peak_read_io_avg_latency_microsec == o.disk_peak_read_io_avg_latency_microsec && disk_base_read_io_avg_latency_microsec == o.disk_base_read_io_avg_latency_microsec && disk_write_io_avg_latency_microsec == o.disk_write_io_avg_latency_microsec && disk_peak_write_io_avg_latency_microsec == o.disk_peak_write_io_avg_latency_microsec && disk_base_write_io_avg_latency_microsec == o.disk_base_write_io_avg_latency_microsec && disk_read_io_ppm == o.disk_read_io_ppm && disk_write_io_ppm == o.disk_write_io_ppm end |
#eql?(o) ⇒ Boolean
1513 1514 1515 |
# File 'lib/nutanix_clustermgmt/models/clustermgmt_v40_stats_disk_stats.rb', line 1513 def eql?(o) self == o end |
#hash ⇒ Integer
Calculates hash code according to all attributes.
1519 1520 1521 |
# File 'lib/nutanix_clustermgmt/models/clustermgmt_v40_stats_disk_stats.rb', line 1519 def hash [tenant_id, ext_id, links, disk_usage_ppm, disk_capacity_bytes, disk_num_iops, disk_peak_num_iops, disk_base_num_iops, disk_io_bandwidthkbps, disk_peak_io_bandwidthkbps, disk_base_io_bandwidthkbps, disk_avg_io_latency_microsec, disk_peak_io_latency_microsec, disk_base_io_latency_microsec, disk_free_bytes, disk_usage_bytes, disk_read_iops, disk_base_read_iops, disk_peak_read_iops, disk_write_iops, disk_peak_write_iops, disk_base_write_iops, disk_read_io_bandwidthkbps, disk_peak_read_io_bandwidthkbps, disk_base_read_io_bandwidthkbps, disk_write_io_bandwidthkbps, disk_peak_write_io_bandwidthkbps, disk_base_write_io_bandwidthkbps, disk_read_io_avg_latency_microsec, disk_peak_read_io_avg_latency_microsec, disk_base_read_io_avg_latency_microsec, disk_write_io_avg_latency_microsec, disk_peak_write_io_avg_latency_microsec, disk_base_write_io_avg_latency_microsec, disk_read_io_ppm, disk_write_io_ppm].hash end |
#list_invalid_properties ⇒ Object
Show invalid properties with the reasons. Usually used together with valid?
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 603 604 605 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 |
# File 'lib/nutanix_clustermgmt/models/clustermgmt_v40_stats_disk_stats.rb', line 465 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 !@disk_usage_ppm.nil? && @disk_usage_ppm.length > 3000 invalid_properties.push('invalid value for "disk_usage_ppm", number of items must be less than or equal to 3000.') end if !@disk_usage_ppm.nil? && @disk_usage_ppm.length < 0 invalid_properties.push('invalid value for "disk_usage_ppm", number of items must be greater than or equal to 0.') end if !@disk_capacity_bytes.nil? && @disk_capacity_bytes.length > 3000 invalid_properties.push('invalid value for "disk_capacity_bytes", number of items must be less than or equal to 3000.') end if !@disk_capacity_bytes.nil? && @disk_capacity_bytes.length < 0 invalid_properties.push('invalid value for "disk_capacity_bytes", number of items must be greater than or equal to 0.') end if !@disk_num_iops.nil? && @disk_num_iops.length > 3000 invalid_properties.push('invalid value for "disk_num_iops", number of items must be less than or equal to 3000.') end if !@disk_num_iops.nil? && @disk_num_iops.length < 0 invalid_properties.push('invalid value for "disk_num_iops", number of items must be greater than or equal to 0.') end if !@disk_peak_num_iops.nil? && @disk_peak_num_iops.length > 3000 invalid_properties.push('invalid value for "disk_peak_num_iops", number of items must be less than or equal to 3000.') end if !@disk_peak_num_iops.nil? && @disk_peak_num_iops.length < 0 invalid_properties.push('invalid value for "disk_peak_num_iops", number of items must be greater than or equal to 0.') end if !@disk_base_num_iops.nil? && @disk_base_num_iops.length > 3000 invalid_properties.push('invalid value for "disk_base_num_iops", number of items must be less than or equal to 3000.') end if !@disk_base_num_iops.nil? && @disk_base_num_iops.length < 0 invalid_properties.push('invalid value for "disk_base_num_iops", number of items must be greater than or equal to 0.') end if !@disk_io_bandwidthkbps.nil? && @disk_io_bandwidthkbps.length > 3000 invalid_properties.push('invalid value for "disk_io_bandwidthkbps", number of items must be less than or equal to 3000.') end if !@disk_io_bandwidthkbps.nil? && @disk_io_bandwidthkbps.length < 0 invalid_properties.push('invalid value for "disk_io_bandwidthkbps", number of items must be greater than or equal to 0.') end if !@disk_peak_io_bandwidthkbps.nil? && @disk_peak_io_bandwidthkbps.length > 3000 invalid_properties.push('invalid value for "disk_peak_io_bandwidthkbps", number of items must be less than or equal to 3000.') end if !@disk_peak_io_bandwidthkbps.nil? && @disk_peak_io_bandwidthkbps.length < 0 invalid_properties.push('invalid value for "disk_peak_io_bandwidthkbps", number of items must be greater than or equal to 0.') end if !@disk_base_io_bandwidthkbps.nil? && @disk_base_io_bandwidthkbps.length > 3000 invalid_properties.push('invalid value for "disk_base_io_bandwidthkbps", number of items must be less than or equal to 3000.') end if !@disk_base_io_bandwidthkbps.nil? && @disk_base_io_bandwidthkbps.length < 0 invalid_properties.push('invalid value for "disk_base_io_bandwidthkbps", number of items must be greater than or equal to 0.') end if !@disk_avg_io_latency_microsec.nil? && @disk_avg_io_latency_microsec.length > 3000 invalid_properties.push('invalid value for "disk_avg_io_latency_microsec", number of items must be less than or equal to 3000.') end if !@disk_avg_io_latency_microsec.nil? && @disk_avg_io_latency_microsec.length < 0 invalid_properties.push('invalid value for "disk_avg_io_latency_microsec", number of items must be greater than or equal to 0.') end if !@disk_peak_io_latency_microsec.nil? && @disk_peak_io_latency_microsec.length > 3000 invalid_properties.push('invalid value for "disk_peak_io_latency_microsec", number of items must be less than or equal to 3000.') end if !@disk_peak_io_latency_microsec.nil? && @disk_peak_io_latency_microsec.length < 0 invalid_properties.push('invalid value for "disk_peak_io_latency_microsec", number of items must be greater than or equal to 0.') end if !@disk_base_io_latency_microsec.nil? && @disk_base_io_latency_microsec.length > 3000 invalid_properties.push('invalid value for "disk_base_io_latency_microsec", number of items must be less than or equal to 3000.') end if !@disk_base_io_latency_microsec.nil? && @disk_base_io_latency_microsec.length < 0 invalid_properties.push('invalid value for "disk_base_io_latency_microsec", number of items must be greater than or equal to 0.') end if !@disk_free_bytes.nil? && @disk_free_bytes.length > 3000 invalid_properties.push('invalid value for "disk_free_bytes", number of items must be less than or equal to 3000.') end if !@disk_free_bytes.nil? && @disk_free_bytes.length < 0 invalid_properties.push('invalid value for "disk_free_bytes", number of items must be greater than or equal to 0.') end if !@disk_usage_bytes.nil? && @disk_usage_bytes.length > 3000 invalid_properties.push('invalid value for "disk_usage_bytes", number of items must be less than or equal to 3000.') end if !@disk_usage_bytes.nil? && @disk_usage_bytes.length < 0 invalid_properties.push('invalid value for "disk_usage_bytes", number of items must be greater than or equal to 0.') end if !@disk_read_iops.nil? && @disk_read_iops.length > 3000 invalid_properties.push('invalid value for "disk_read_iops", number of items must be less than or equal to 3000.') end if !@disk_read_iops.nil? && @disk_read_iops.length < 0 invalid_properties.push('invalid value for "disk_read_iops", number of items must be greater than or equal to 0.') end if !@disk_base_read_iops.nil? && @disk_base_read_iops.length > 3000 invalid_properties.push('invalid value for "disk_base_read_iops", number of items must be less than or equal to 3000.') end if !@disk_base_read_iops.nil? && @disk_base_read_iops.length < 0 invalid_properties.push('invalid value for "disk_base_read_iops", number of items must be greater than or equal to 0.') end if !@disk_peak_read_iops.nil? && @disk_peak_read_iops.length > 3000 invalid_properties.push('invalid value for "disk_peak_read_iops", number of items must be less than or equal to 3000.') end if !@disk_peak_read_iops.nil? && @disk_peak_read_iops.length < 0 invalid_properties.push('invalid value for "disk_peak_read_iops", number of items must be greater than or equal to 0.') end if !@disk_write_iops.nil? && @disk_write_iops.length > 3000 invalid_properties.push('invalid value for "disk_write_iops", number of items must be less than or equal to 3000.') end if !@disk_write_iops.nil? && @disk_write_iops.length < 0 invalid_properties.push('invalid value for "disk_write_iops", number of items must be greater than or equal to 0.') end if !@disk_peak_write_iops.nil? && @disk_peak_write_iops.length > 3000 invalid_properties.push('invalid value for "disk_peak_write_iops", number of items must be less than or equal to 3000.') end if !@disk_peak_write_iops.nil? && @disk_peak_write_iops.length < 0 invalid_properties.push('invalid value for "disk_peak_write_iops", number of items must be greater than or equal to 0.') end if !@disk_base_write_iops.nil? && @disk_base_write_iops.length > 3000 invalid_properties.push('invalid value for "disk_base_write_iops", number of items must be less than or equal to 3000.') end if !@disk_base_write_iops.nil? && @disk_base_write_iops.length < 0 invalid_properties.push('invalid value for "disk_base_write_iops", number of items must be greater than or equal to 0.') end if !@disk_read_io_bandwidthkbps.nil? && @disk_read_io_bandwidthkbps.length > 3000 invalid_properties.push('invalid value for "disk_read_io_bandwidthkbps", number of items must be less than or equal to 3000.') end if !@disk_read_io_bandwidthkbps.nil? && @disk_read_io_bandwidthkbps.length < 0 invalid_properties.push('invalid value for "disk_read_io_bandwidthkbps", number of items must be greater than or equal to 0.') end if !@disk_peak_read_io_bandwidthkbps.nil? && @disk_peak_read_io_bandwidthkbps.length > 3000 invalid_properties.push('invalid value for "disk_peak_read_io_bandwidthkbps", number of items must be less than or equal to 3000.') end if !@disk_peak_read_io_bandwidthkbps.nil? && @disk_peak_read_io_bandwidthkbps.length < 0 invalid_properties.push('invalid value for "disk_peak_read_io_bandwidthkbps", number of items must be greater than or equal to 0.') end if !@disk_base_read_io_bandwidthkbps.nil? && @disk_base_read_io_bandwidthkbps.length > 3000 invalid_properties.push('invalid value for "disk_base_read_io_bandwidthkbps", number of items must be less than or equal to 3000.') end if !@disk_base_read_io_bandwidthkbps.nil? && @disk_base_read_io_bandwidthkbps.length < 0 invalid_properties.push('invalid value for "disk_base_read_io_bandwidthkbps", number of items must be greater than or equal to 0.') end if !@disk_write_io_bandwidthkbps.nil? && @disk_write_io_bandwidthkbps.length > 3000 invalid_properties.push('invalid value for "disk_write_io_bandwidthkbps", number of items must be less than or equal to 3000.') end if !@disk_write_io_bandwidthkbps.nil? && @disk_write_io_bandwidthkbps.length < 0 invalid_properties.push('invalid value for "disk_write_io_bandwidthkbps", number of items must be greater than or equal to 0.') end if !@disk_peak_write_io_bandwidthkbps.nil? && @disk_peak_write_io_bandwidthkbps.length > 3000 invalid_properties.push('invalid value for "disk_peak_write_io_bandwidthkbps", number of items must be less than or equal to 3000.') end if !@disk_peak_write_io_bandwidthkbps.nil? && @disk_peak_write_io_bandwidthkbps.length < 0 invalid_properties.push('invalid value for "disk_peak_write_io_bandwidthkbps", number of items must be greater than or equal to 0.') end if !@disk_base_write_io_bandwidthkbps.nil? && @disk_base_write_io_bandwidthkbps.length > 3000 invalid_properties.push('invalid value for "disk_base_write_io_bandwidthkbps", number of items must be less than or equal to 3000.') end if !@disk_base_write_io_bandwidthkbps.nil? && @disk_base_write_io_bandwidthkbps.length < 0 invalid_properties.push('invalid value for "disk_base_write_io_bandwidthkbps", number of items must be greater than or equal to 0.') end if !@disk_read_io_avg_latency_microsec.nil? && @disk_read_io_avg_latency_microsec.length > 3000 invalid_properties.push('invalid value for "disk_read_io_avg_latency_microsec", number of items must be less than or equal to 3000.') end if !@disk_read_io_avg_latency_microsec.nil? && @disk_read_io_avg_latency_microsec.length < 0 invalid_properties.push('invalid value for "disk_read_io_avg_latency_microsec", number of items must be greater than or equal to 0.') end if !@disk_peak_read_io_avg_latency_microsec.nil? && @disk_peak_read_io_avg_latency_microsec.length > 3000 invalid_properties.push('invalid value for "disk_peak_read_io_avg_latency_microsec", number of items must be less than or equal to 3000.') end if !@disk_peak_read_io_avg_latency_microsec.nil? && @disk_peak_read_io_avg_latency_microsec.length < 0 invalid_properties.push('invalid value for "disk_peak_read_io_avg_latency_microsec", number of items must be greater than or equal to 0.') end if !@disk_base_read_io_avg_latency_microsec.nil? && @disk_base_read_io_avg_latency_microsec.length > 3000 invalid_properties.push('invalid value for "disk_base_read_io_avg_latency_microsec", number of items must be less than or equal to 3000.') end if !@disk_base_read_io_avg_latency_microsec.nil? && @disk_base_read_io_avg_latency_microsec.length < 0 invalid_properties.push('invalid value for "disk_base_read_io_avg_latency_microsec", number of items must be greater than or equal to 0.') end if !@disk_write_io_avg_latency_microsec.nil? && @disk_write_io_avg_latency_microsec.length > 3000 invalid_properties.push('invalid value for "disk_write_io_avg_latency_microsec", number of items must be less than or equal to 3000.') end if !@disk_write_io_avg_latency_microsec.nil? && @disk_write_io_avg_latency_microsec.length < 0 invalid_properties.push('invalid value for "disk_write_io_avg_latency_microsec", number of items must be greater than or equal to 0.') end if !@disk_peak_write_io_avg_latency_microsec.nil? && @disk_peak_write_io_avg_latency_microsec.length > 3000 invalid_properties.push('invalid value for "disk_peak_write_io_avg_latency_microsec", number of items must be less than or equal to 3000.') end if !@disk_peak_write_io_avg_latency_microsec.nil? && @disk_peak_write_io_avg_latency_microsec.length < 0 invalid_properties.push('invalid value for "disk_peak_write_io_avg_latency_microsec", number of items must be greater than or equal to 0.') end if !@disk_base_write_io_avg_latency_microsec.nil? && @disk_base_write_io_avg_latency_microsec.length > 3000 invalid_properties.push('invalid value for "disk_base_write_io_avg_latency_microsec", number of items must be less than or equal to 3000.') end if !@disk_base_write_io_avg_latency_microsec.nil? && @disk_base_write_io_avg_latency_microsec.length < 0 invalid_properties.push('invalid value for "disk_base_write_io_avg_latency_microsec", number of items must be greater than or equal to 0.') end if !@disk_read_io_ppm.nil? && @disk_read_io_ppm.length > 3000 invalid_properties.push('invalid value for "disk_read_io_ppm", number of items must be less than or equal to 3000.') end if !@disk_read_io_ppm.nil? && @disk_read_io_ppm.length < 0 invalid_properties.push('invalid value for "disk_read_io_ppm", number of items must be greater than or equal to 0.') end if !@disk_write_io_ppm.nil? && @disk_write_io_ppm.length > 3000 invalid_properties.push('invalid value for "disk_write_io_ppm", number of items must be less than or equal to 3000.') end if !@disk_write_io_ppm.nil? && @disk_write_io_ppm.length < 0 invalid_properties.push('invalid value for "disk_write_io_ppm", number of items must be greater than or equal to 0.') end invalid_properties end |
#to_hash ⇒ Hash
Returns the object in the form of hash
1548 1549 1550 1551 1552 1553 1554 1555 1556 1557 1558 1559 1560 |
# File 'lib/nutanix_clustermgmt/models/clustermgmt_v40_stats_disk_stats.rb', line 1548 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
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 |
# File 'lib/nutanix_clustermgmt/models/clustermgmt_v40_stats_disk_stats.rb', line 755 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 !@disk_usage_ppm.nil? && @disk_usage_ppm.length > 3000 return false if !@disk_usage_ppm.nil? && @disk_usage_ppm.length < 0 return false if !@disk_capacity_bytes.nil? && @disk_capacity_bytes.length > 3000 return false if !@disk_capacity_bytes.nil? && @disk_capacity_bytes.length < 0 return false if !@disk_num_iops.nil? && @disk_num_iops.length > 3000 return false if !@disk_num_iops.nil? && @disk_num_iops.length < 0 return false if !@disk_peak_num_iops.nil? && @disk_peak_num_iops.length > 3000 return false if !@disk_peak_num_iops.nil? && @disk_peak_num_iops.length < 0 return false if !@disk_base_num_iops.nil? && @disk_base_num_iops.length > 3000 return false if !@disk_base_num_iops.nil? && @disk_base_num_iops.length < 0 return false if !@disk_io_bandwidthkbps.nil? && @disk_io_bandwidthkbps.length > 3000 return false if !@disk_io_bandwidthkbps.nil? && @disk_io_bandwidthkbps.length < 0 return false if !@disk_peak_io_bandwidthkbps.nil? && @disk_peak_io_bandwidthkbps.length > 3000 return false if !@disk_peak_io_bandwidthkbps.nil? && @disk_peak_io_bandwidthkbps.length < 0 return false if !@disk_base_io_bandwidthkbps.nil? && @disk_base_io_bandwidthkbps.length > 3000 return false if !@disk_base_io_bandwidthkbps.nil? && @disk_base_io_bandwidthkbps.length < 0 return false if !@disk_avg_io_latency_microsec.nil? && @disk_avg_io_latency_microsec.length > 3000 return false if !@disk_avg_io_latency_microsec.nil? && @disk_avg_io_latency_microsec.length < 0 return false if !@disk_peak_io_latency_microsec.nil? && @disk_peak_io_latency_microsec.length > 3000 return false if !@disk_peak_io_latency_microsec.nil? && @disk_peak_io_latency_microsec.length < 0 return false if !@disk_base_io_latency_microsec.nil? && @disk_base_io_latency_microsec.length > 3000 return false if !@disk_base_io_latency_microsec.nil? && @disk_base_io_latency_microsec.length < 0 return false if !@disk_free_bytes.nil? && @disk_free_bytes.length > 3000 return false if !@disk_free_bytes.nil? && @disk_free_bytes.length < 0 return false if !@disk_usage_bytes.nil? && @disk_usage_bytes.length > 3000 return false if !@disk_usage_bytes.nil? && @disk_usage_bytes.length < 0 return false if !@disk_read_iops.nil? && @disk_read_iops.length > 3000 return false if !@disk_read_iops.nil? && @disk_read_iops.length < 0 return false if !@disk_base_read_iops.nil? && @disk_base_read_iops.length > 3000 return false if !@disk_base_read_iops.nil? && @disk_base_read_iops.length < 0 return false if !@disk_peak_read_iops.nil? && @disk_peak_read_iops.length > 3000 return false if !@disk_peak_read_iops.nil? && @disk_peak_read_iops.length < 0 return false if !@disk_write_iops.nil? && @disk_write_iops.length > 3000 return false if !@disk_write_iops.nil? && @disk_write_iops.length < 0 return false if !@disk_peak_write_iops.nil? && @disk_peak_write_iops.length > 3000 return false if !@disk_peak_write_iops.nil? && @disk_peak_write_iops.length < 0 return false if !@disk_base_write_iops.nil? && @disk_base_write_iops.length > 3000 return false if !@disk_base_write_iops.nil? && @disk_base_write_iops.length < 0 return false if !@disk_read_io_bandwidthkbps.nil? && @disk_read_io_bandwidthkbps.length > 3000 return false if !@disk_read_io_bandwidthkbps.nil? && @disk_read_io_bandwidthkbps.length < 0 return false if !@disk_peak_read_io_bandwidthkbps.nil? && @disk_peak_read_io_bandwidthkbps.length > 3000 return false if !@disk_peak_read_io_bandwidthkbps.nil? && @disk_peak_read_io_bandwidthkbps.length < 0 return false if !@disk_base_read_io_bandwidthkbps.nil? && @disk_base_read_io_bandwidthkbps.length > 3000 return false if !@disk_base_read_io_bandwidthkbps.nil? && @disk_base_read_io_bandwidthkbps.length < 0 return false if !@disk_write_io_bandwidthkbps.nil? && @disk_write_io_bandwidthkbps.length > 3000 return false if !@disk_write_io_bandwidthkbps.nil? && @disk_write_io_bandwidthkbps.length < 0 return false if !@disk_peak_write_io_bandwidthkbps.nil? && @disk_peak_write_io_bandwidthkbps.length > 3000 return false if !@disk_peak_write_io_bandwidthkbps.nil? && @disk_peak_write_io_bandwidthkbps.length < 0 return false if !@disk_base_write_io_bandwidthkbps.nil? && @disk_base_write_io_bandwidthkbps.length > 3000 return false if !@disk_base_write_io_bandwidthkbps.nil? && @disk_base_write_io_bandwidthkbps.length < 0 return false if !@disk_read_io_avg_latency_microsec.nil? && @disk_read_io_avg_latency_microsec.length > 3000 return false if !@disk_read_io_avg_latency_microsec.nil? && @disk_read_io_avg_latency_microsec.length < 0 return false if !@disk_peak_read_io_avg_latency_microsec.nil? && @disk_peak_read_io_avg_latency_microsec.length > 3000 return false if !@disk_peak_read_io_avg_latency_microsec.nil? && @disk_peak_read_io_avg_latency_microsec.length < 0 return false if !@disk_base_read_io_avg_latency_microsec.nil? && @disk_base_read_io_avg_latency_microsec.length > 3000 return false if !@disk_base_read_io_avg_latency_microsec.nil? && @disk_base_read_io_avg_latency_microsec.length < 0 return false if !@disk_write_io_avg_latency_microsec.nil? && @disk_write_io_avg_latency_microsec.length > 3000 return false if !@disk_write_io_avg_latency_microsec.nil? && @disk_write_io_avg_latency_microsec.length < 0 return false if !@disk_peak_write_io_avg_latency_microsec.nil? && @disk_peak_write_io_avg_latency_microsec.length > 3000 return false if !@disk_peak_write_io_avg_latency_microsec.nil? && @disk_peak_write_io_avg_latency_microsec.length < 0 return false if !@disk_base_write_io_avg_latency_microsec.nil? && @disk_base_write_io_avg_latency_microsec.length > 3000 return false if !@disk_base_write_io_avg_latency_microsec.nil? && @disk_base_write_io_avg_latency_microsec.length < 0 return false if !@disk_read_io_ppm.nil? && @disk_read_io_ppm.length > 3000 return false if !@disk_read_io_ppm.nil? && @disk_read_io_ppm.length < 0 return false if !@disk_write_io_ppm.nil? && @disk_write_io_ppm.length > 3000 return false if !@disk_write_io_ppm.nil? && @disk_write_io_ppm.length < 0 true end |