Class: NutanixClustermgmt::ClustermgmtV40ConfigHost
- Inherits:
-
ApiModelBase
- Object
- ApiModelBase
- NutanixClustermgmt::ClustermgmtV40ConfigHost
- Defined in:
- lib/nutanix_clustermgmt/models/clustermgmt_v40_config_host.rb
Overview
Host entity with its attributes.
Defined Under Namespace
Classes: EnumAttributeValidator
Instance Attribute Summary collapse
-
#block_model ⇒ Object
Rackable unit model name.
-
#block_serial ⇒ Object
Rackable unit serial name.
-
#boot_time_usecs ⇒ Object
Boot time in secs.
-
#cluster ⇒ Object
Returns the value of attribute cluster.
-
#controller_vm ⇒ Object
Returns the value of attribute controller_vm.
-
#cpu_capacity_hz ⇒ Object
CPU capacity in Hz.
-
#cpu_frequency_hz ⇒ Object
CPU frequency in Hz.
-
#cpu_model ⇒ Object
CPU model name.
-
#default_vhd_container_uuid ⇒ Object
Default VHD container UUID.
-
#default_vhd_location ⇒ Object
Default VHD location.
-
#default_vm_container_uuid ⇒ Object
Default VM container UUID.
-
#default_vm_location ⇒ Object
Default VM location.
-
#disk ⇒ Object
Disks attached to host.
-
#ext_id ⇒ Object
A globally unique identifier of an instance that is suitable for external consumption.
-
#failover_cluster_fqdn ⇒ Object
Failover cluster FQDN.
-
#failover_cluster_node_status ⇒ Object
Failover cluster node status.
-
#gpu_driver_version ⇒ Object
GPU driver version.
-
#gpu_list ⇒ Object
GPU attached list.
-
#has_csr ⇒ Object
Certificate signing request status.
-
#host_name ⇒ Object
Name of the host.
-
#host_type ⇒ Object
Returns the value of attribute host_type.
-
#hypervisor ⇒ Object
Returns the value of attribute hypervisor.
-
#ipmi ⇒ Object
Returns the value of attribute ipmi.
-
#is_degraded ⇒ Object
Node degraded status.
-
#is_hardware_virtualized ⇒ Object
Indicates whether the hardware is virtualized or not.
-
#is_reboot_pending ⇒ Object
Reboot pending status.
-
#is_secure_booted ⇒ Object
Secure boot status.
-
#key_management_device_to_cert_status ⇒ Object
Mapping of key management device to certificate status list.
-
#links ⇒ Object
A HATEOAS style link for the response.
-
#maintenance_state ⇒ Object
Host Maintenance State.
-
#memory_size_bytes ⇒ Object
Memory size in bytes.
-
#node_status ⇒ Object
Returns the value of attribute node_status.
-
#number_of_cpu_cores ⇒ Object
Number of CPU cores.
-
#number_of_cpu_sockets ⇒ Object
Number of CPU sockets.
-
#number_of_cpu_threads ⇒ Object
Number of CPU threads.
-
#rackable_unit_uuid ⇒ Object
Rackable unit UUID.
-
#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 = {}) ⇒ ClustermgmtV40ConfigHost
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 = {}) ⇒ ClustermgmtV40ConfigHost
Initializes the object
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 |
# File 'lib/nutanix_clustermgmt/models/clustermgmt_v40_config_host.rb', line 258 def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `NutanixClustermgmt::ClustermgmtV40ConfigHost` 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::ClustermgmtV40ConfigHost`. 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?(:'host_name') self.host_name = attributes[:'host_name'] end if attributes.key?(:'host_type') self.host_type = attributes[:'host_type'] end if attributes.key?(:'hypervisor') self.hypervisor = attributes[:'hypervisor'] end if attributes.key?(:'cluster') self.cluster = attributes[:'cluster'] end if attributes.key?(:'controller_vm') self.controller_vm = attributes[:'controller_vm'] end if attributes.key?(:'disk') if (value = attributes[:'disk']).is_a?(Array) self.disk = value end end if attributes.key?(:'is_degraded') self.is_degraded = attributes[:'is_degraded'] end if attributes.key?(:'is_secure_booted') self.is_secure_booted = attributes[:'is_secure_booted'] end if attributes.key?(:'is_hardware_virtualized') self.is_hardware_virtualized = attributes[:'is_hardware_virtualized'] end if attributes.key?(:'has_csr') self.has_csr = attributes[:'has_csr'] end if attributes.key?(:'key_management_device_to_cert_status') if (value = attributes[:'key_management_device_to_cert_status']).is_a?(Array) self.key_management_device_to_cert_status = value end end if attributes.key?(:'number_of_cpu_cores') self.number_of_cpu_cores = attributes[:'number_of_cpu_cores'] end if attributes.key?(:'number_of_cpu_threads') self.number_of_cpu_threads = attributes[:'number_of_cpu_threads'] end if attributes.key?(:'number_of_cpu_sockets') self.number_of_cpu_sockets = attributes[:'number_of_cpu_sockets'] end if attributes.key?(:'cpu_capacity_hz') self.cpu_capacity_hz = attributes[:'cpu_capacity_hz'] end if attributes.key?(:'cpu_frequency_hz') self.cpu_frequency_hz = attributes[:'cpu_frequency_hz'] end if attributes.key?(:'cpu_model') self.cpu_model = attributes[:'cpu_model'] end if attributes.key?(:'gpu_driver_version') self.gpu_driver_version = attributes[:'gpu_driver_version'] end if attributes.key?(:'gpu_list') if (value = attributes[:'gpu_list']).is_a?(Array) self.gpu_list = value end end if attributes.key?(:'default_vhd_location') self.default_vhd_location = attributes[:'default_vhd_location'] end if attributes.key?(:'default_vhd_container_uuid') self.default_vhd_container_uuid = attributes[:'default_vhd_container_uuid'] end if attributes.key?(:'default_vm_location') self.default_vm_location = attributes[:'default_vm_location'] end if attributes.key?(:'default_vm_container_uuid') self.default_vm_container_uuid = attributes[:'default_vm_container_uuid'] end if attributes.key?(:'is_reboot_pending') self.is_reboot_pending = attributes[:'is_reboot_pending'] end if attributes.key?(:'failover_cluster_fqdn') self.failover_cluster_fqdn = attributes[:'failover_cluster_fqdn'] end if attributes.key?(:'failover_cluster_node_status') self.failover_cluster_node_status = attributes[:'failover_cluster_node_status'] end if attributes.key?(:'boot_time_usecs') self.boot_time_usecs = attributes[:'boot_time_usecs'] end if attributes.key?(:'memory_size_bytes') self.memory_size_bytes = attributes[:'memory_size_bytes'] end if attributes.key?(:'block_serial') self.block_serial = attributes[:'block_serial'] end if attributes.key?(:'block_model') self.block_model = attributes[:'block_model'] end if attributes.key?(:'maintenance_state') self.maintenance_state = attributes[:'maintenance_state'] end if attributes.key?(:'node_status') self.node_status = attributes[:'node_status'] end if attributes.key?(:'ipmi') self.ipmi = attributes[:'ipmi'] end if attributes.key?(:'rackable_unit_uuid') self.rackable_unit_uuid = attributes[:'rackable_unit_uuid'] end end |
Instance Attribute Details
#block_model ⇒ Object
Rackable unit model name.
112 113 114 |
# File 'lib/nutanix_clustermgmt/models/clustermgmt_v40_config_host.rb', line 112 def block_model @block_model end |
#block_serial ⇒ Object
Rackable unit serial name.
109 110 111 |
# File 'lib/nutanix_clustermgmt/models/clustermgmt_v40_config_host.rb', line 109 def block_serial @block_serial end |
#boot_time_usecs ⇒ Object
Boot time in secs.
103 104 105 |
# File 'lib/nutanix_clustermgmt/models/clustermgmt_v40_config_host.rb', line 103 def boot_time_usecs @boot_time_usecs end |
#cluster ⇒ Object
Returns the value of attribute cluster.
35 36 37 |
# File 'lib/nutanix_clustermgmt/models/clustermgmt_v40_config_host.rb', line 35 def cluster @cluster end |
#controller_vm ⇒ Object
Returns the value of attribute controller_vm.
37 38 39 |
# File 'lib/nutanix_clustermgmt/models/clustermgmt_v40_config_host.rb', line 37 def controller_vm @controller_vm end |
#cpu_capacity_hz ⇒ Object
CPU capacity in Hz.
67 68 69 |
# File 'lib/nutanix_clustermgmt/models/clustermgmt_v40_config_host.rb', line 67 def cpu_capacity_hz @cpu_capacity_hz end |
#cpu_frequency_hz ⇒ Object
CPU frequency in Hz.
70 71 72 |
# File 'lib/nutanix_clustermgmt/models/clustermgmt_v40_config_host.rb', line 70 def cpu_frequency_hz @cpu_frequency_hz end |
#cpu_model ⇒ Object
CPU model name.
73 74 75 |
# File 'lib/nutanix_clustermgmt/models/clustermgmt_v40_config_host.rb', line 73 def cpu_model @cpu_model end |
#default_vhd_container_uuid ⇒ Object
Default VHD container UUID.
85 86 87 |
# File 'lib/nutanix_clustermgmt/models/clustermgmt_v40_config_host.rb', line 85 def default_vhd_container_uuid @default_vhd_container_uuid end |
#default_vhd_location ⇒ Object
Default VHD location.
82 83 84 |
# File 'lib/nutanix_clustermgmt/models/clustermgmt_v40_config_host.rb', line 82 def default_vhd_location @default_vhd_location end |
#default_vm_container_uuid ⇒ Object
Default VM container UUID.
91 92 93 |
# File 'lib/nutanix_clustermgmt/models/clustermgmt_v40_config_host.rb', line 91 def default_vm_container_uuid @default_vm_container_uuid end |
#default_vm_location ⇒ Object
Default VM location.
88 89 90 |
# File 'lib/nutanix_clustermgmt/models/clustermgmt_v40_config_host.rb', line 88 def default_vm_location @default_vm_location end |
#disk ⇒ Object
Disks attached to host.
40 41 42 |
# File 'lib/nutanix_clustermgmt/models/clustermgmt_v40_config_host.rb', line 40 def disk @disk end |
#ext_id ⇒ Object
A globally unique identifier of an instance that is suitable for external consumption.
23 24 25 |
# File 'lib/nutanix_clustermgmt/models/clustermgmt_v40_config_host.rb', line 23 def ext_id @ext_id end |
#failover_cluster_fqdn ⇒ Object
Failover cluster FQDN.
97 98 99 |
# File 'lib/nutanix_clustermgmt/models/clustermgmt_v40_config_host.rb', line 97 def failover_cluster_fqdn @failover_cluster_fqdn end |
#failover_cluster_node_status ⇒ Object
Failover cluster node status.
100 101 102 |
# File 'lib/nutanix_clustermgmt/models/clustermgmt_v40_config_host.rb', line 100 def failover_cluster_node_status @failover_cluster_node_status end |
#gpu_driver_version ⇒ Object
GPU driver version.
76 77 78 |
# File 'lib/nutanix_clustermgmt/models/clustermgmt_v40_config_host.rb', line 76 def gpu_driver_version @gpu_driver_version end |
#gpu_list ⇒ Object
GPU attached list.
79 80 81 |
# File 'lib/nutanix_clustermgmt/models/clustermgmt_v40_config_host.rb', line 79 def gpu_list @gpu_list end |
#has_csr ⇒ Object
Certificate signing request status.
52 53 54 |
# File 'lib/nutanix_clustermgmt/models/clustermgmt_v40_config_host.rb', line 52 def has_csr @has_csr end |
#host_name ⇒ Object
Name of the host.
29 30 31 |
# File 'lib/nutanix_clustermgmt/models/clustermgmt_v40_config_host.rb', line 29 def host_name @host_name end |
#host_type ⇒ Object
Returns the value of attribute host_type.
31 32 33 |
# File 'lib/nutanix_clustermgmt/models/clustermgmt_v40_config_host.rb', line 31 def host_type @host_type end |
#hypervisor ⇒ Object
Returns the value of attribute hypervisor.
33 34 35 |
# File 'lib/nutanix_clustermgmt/models/clustermgmt_v40_config_host.rb', line 33 def hypervisor @hypervisor end |
#ipmi ⇒ Object
Returns the value of attribute ipmi.
119 120 121 |
# File 'lib/nutanix_clustermgmt/models/clustermgmt_v40_config_host.rb', line 119 def ipmi @ipmi end |
#is_degraded ⇒ Object
Node degraded status.
43 44 45 |
# File 'lib/nutanix_clustermgmt/models/clustermgmt_v40_config_host.rb', line 43 def is_degraded @is_degraded end |
#is_hardware_virtualized ⇒ Object
Indicates whether the hardware is virtualized or not.
49 50 51 |
# File 'lib/nutanix_clustermgmt/models/clustermgmt_v40_config_host.rb', line 49 def is_hardware_virtualized @is_hardware_virtualized end |
#is_reboot_pending ⇒ Object
Reboot pending status.
94 95 96 |
# File 'lib/nutanix_clustermgmt/models/clustermgmt_v40_config_host.rb', line 94 def is_reboot_pending @is_reboot_pending end |
#is_secure_booted ⇒ Object
Secure boot status.
46 47 48 |
# File 'lib/nutanix_clustermgmt/models/clustermgmt_v40_config_host.rb', line 46 def is_secure_booted @is_secure_booted end |
#key_management_device_to_cert_status ⇒ Object
Mapping of key management device to certificate status list.
55 56 57 |
# File 'lib/nutanix_clustermgmt/models/clustermgmt_v40_config_host.rb', line 55 def key_management_device_to_cert_status @key_management_device_to_cert_status 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.
26 27 28 |
# File 'lib/nutanix_clustermgmt/models/clustermgmt_v40_config_host.rb', line 26 def links @links end |
#maintenance_state ⇒ Object
Host Maintenance State.
115 116 117 |
# File 'lib/nutanix_clustermgmt/models/clustermgmt_v40_config_host.rb', line 115 def maintenance_state @maintenance_state end |
#memory_size_bytes ⇒ Object
Memory size in bytes.
106 107 108 |
# File 'lib/nutanix_clustermgmt/models/clustermgmt_v40_config_host.rb', line 106 def memory_size_bytes @memory_size_bytes end |
#node_status ⇒ Object
Returns the value of attribute node_status.
117 118 119 |
# File 'lib/nutanix_clustermgmt/models/clustermgmt_v40_config_host.rb', line 117 def node_status @node_status end |
#number_of_cpu_cores ⇒ Object
Number of CPU cores.
58 59 60 |
# File 'lib/nutanix_clustermgmt/models/clustermgmt_v40_config_host.rb', line 58 def number_of_cpu_cores @number_of_cpu_cores end |
#number_of_cpu_sockets ⇒ Object
Number of CPU sockets.
64 65 66 |
# File 'lib/nutanix_clustermgmt/models/clustermgmt_v40_config_host.rb', line 64 def number_of_cpu_sockets @number_of_cpu_sockets end |
#number_of_cpu_threads ⇒ Object
Number of CPU threads.
61 62 63 |
# File 'lib/nutanix_clustermgmt/models/clustermgmt_v40_config_host.rb', line 61 def number_of_cpu_threads @number_of_cpu_threads end |
#rackable_unit_uuid ⇒ Object
Rackable unit UUID.
122 123 124 |
# File 'lib/nutanix_clustermgmt/models/clustermgmt_v40_config_host.rb', line 122 def rackable_unit_uuid @rackable_unit_uuid 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).
20 21 22 |
# File 'lib/nutanix_clustermgmt/models/clustermgmt_v40_config_host.rb', line 20 def tenant_id @tenant_id end |
Class Method Details
.acceptable_attribute_map ⇒ Object
Returns attribute mapping this model knows about
190 191 192 |
# File 'lib/nutanix_clustermgmt/models/clustermgmt_v40_config_host.rb', line 190 def self.acceptable_attribute_map attribute_map end |
.acceptable_attributes ⇒ Object
Returns all the JSON keys this model knows about
195 196 197 |
# File 'lib/nutanix_clustermgmt/models/clustermgmt_v40_config_host.rb', line 195 def self.acceptable_attributes acceptable_attribute_map.values end |
.attribute_map ⇒ Object
Attribute mapping from ruby-style variable name to JSON key.
147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 |
# File 'lib/nutanix_clustermgmt/models/clustermgmt_v40_config_host.rb', line 147 def self.attribute_map { :'tenant_id' => :'tenantId', :'ext_id' => :'extId', :'links' => :'links', :'host_name' => :'hostName', :'host_type' => :'hostType', :'hypervisor' => :'hypervisor', :'cluster' => :'cluster', :'controller_vm' => :'controllerVm', :'disk' => :'disk', :'is_degraded' => :'isDegraded', :'is_secure_booted' => :'isSecureBooted', :'is_hardware_virtualized' => :'isHardwareVirtualized', :'has_csr' => :'hasCsr', :'key_management_device_to_cert_status' => :'keyManagementDeviceToCertStatus', :'number_of_cpu_cores' => :'numberOfCpuCores', :'number_of_cpu_threads' => :'numberOfCpuThreads', :'number_of_cpu_sockets' => :'numberOfCpuSockets', :'cpu_capacity_hz' => :'cpuCapacityHz', :'cpu_frequency_hz' => :'cpuFrequencyHz', :'cpu_model' => :'cpuModel', :'gpu_driver_version' => :'gpuDriverVersion', :'gpu_list' => :'gpuList', :'default_vhd_location' => :'defaultVhdLocation', :'default_vhd_container_uuid' => :'defaultVhdContainerUuid', :'default_vm_location' => :'defaultVmLocation', :'default_vm_container_uuid' => :'defaultVmContainerUuid', :'is_reboot_pending' => :'isRebootPending', :'failover_cluster_fqdn' => :'failoverClusterFqdn', :'failover_cluster_node_status' => :'failoverClusterNodeStatus', :'boot_time_usecs' => :'bootTimeUsecs', :'memory_size_bytes' => :'memorySizeBytes', :'block_serial' => :'blockSerial', :'block_model' => :'blockModel', :'maintenance_state' => :'maintenanceState', :'node_status' => :'nodeStatus', :'ipmi' => :'ipmi', :'rackable_unit_uuid' => :'rackableUnitUuid' } end |
.build_from_hash(attributes) ⇒ Object
Builds the object from hash
756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 |
# File 'lib/nutanix_clustermgmt/models/clustermgmt_v40_config_host.rb', line 756 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)
250 251 252 253 254 |
# File 'lib/nutanix_clustermgmt/models/clustermgmt_v40_config_host.rb', line 250 def self.openapi_all_of [ :'CommonV10ResponseExternalizableAbstractModel' ] end |
.openapi_nullable ⇒ Object
List of attributes with nullable: true
243 244 245 246 247 |
# File 'lib/nutanix_clustermgmt/models/clustermgmt_v40_config_host.rb', line 243 def self.openapi_nullable Set.new([ :'ext_id', ]) end |
.openapi_types ⇒ Object
Attribute type mapping.
200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 |
# File 'lib/nutanix_clustermgmt/models/clustermgmt_v40_config_host.rb', line 200 def self.openapi_types { :'tenant_id' => :'String', :'ext_id' => :'String', :'links' => :'Array<CommonV10ResponseApiLink>', :'host_name' => :'String', :'host_type' => :'ClustermgmtV40ConfigHostTypeEnum', :'hypervisor' => :'ClustermgmtV40ConfigHypervisorReference', :'cluster' => :'ClustermgmtV40ConfigClusterReference', :'controller_vm' => :'ClustermgmtV40ConfigControllerVmReference', :'disk' => :'Array<ClustermgmtV40ConfigDiskReference>', :'is_degraded' => :'Boolean', :'is_secure_booted' => :'Boolean', :'is_hardware_virtualized' => :'Boolean', :'has_csr' => :'Boolean', :'key_management_device_to_cert_status' => :'Array<ClustermgmtV40ConfigKeyManagementDeviceToCertStatusInfo>', :'number_of_cpu_cores' => :'Integer', :'number_of_cpu_threads' => :'Integer', :'number_of_cpu_sockets' => :'Integer', :'cpu_capacity_hz' => :'Integer', :'cpu_frequency_hz' => :'Integer', :'cpu_model' => :'String', :'gpu_driver_version' => :'String', :'gpu_list' => :'Array<String>', :'default_vhd_location' => :'String', :'default_vhd_container_uuid' => :'String', :'default_vm_location' => :'String', :'default_vm_container_uuid' => :'String', :'is_reboot_pending' => :'Boolean', :'failover_cluster_fqdn' => :'String', :'failover_cluster_node_status' => :'String', :'boot_time_usecs' => :'Integer', :'memory_size_bytes' => :'Integer', :'block_serial' => :'String', :'block_model' => :'String', :'maintenance_state' => :'String', :'node_status' => :'ClustermgmtV40ConfigNodeStatus', :'ipmi' => :'ClustermgmtV40ConfigIpmiReference', :'rackable_unit_uuid' => :'String' } end |
Instance Method Details
#==(o) ⇒ Object
Checks equality by comparing each attribute.
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 |
# File 'lib/nutanix_clustermgmt/models/clustermgmt_v40_config_host.rb', line 699 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 && host_name == o.host_name && host_type == o.host_type && hypervisor == o.hypervisor && cluster == o.cluster && controller_vm == o.controller_vm && disk == o.disk && is_degraded == o.is_degraded && is_secure_booted == o.is_secure_booted && is_hardware_virtualized == o.is_hardware_virtualized && has_csr == o.has_csr && key_management_device_to_cert_status == o.key_management_device_to_cert_status && number_of_cpu_cores == o.number_of_cpu_cores && number_of_cpu_threads == o.number_of_cpu_threads && number_of_cpu_sockets == o.number_of_cpu_sockets && cpu_capacity_hz == o.cpu_capacity_hz && cpu_frequency_hz == o.cpu_frequency_hz && cpu_model == o.cpu_model && gpu_driver_version == o.gpu_driver_version && gpu_list == o.gpu_list && default_vhd_location == o.default_vhd_location && default_vhd_container_uuid == o.default_vhd_container_uuid && default_vm_location == o.default_vm_location && default_vm_container_uuid == o.default_vm_container_uuid && is_reboot_pending == o.is_reboot_pending && failover_cluster_fqdn == o.failover_cluster_fqdn && failover_cluster_node_status == o.failover_cluster_node_status && boot_time_usecs == o.boot_time_usecs && memory_size_bytes == o.memory_size_bytes && block_serial == o.block_serial && block_model == o.block_model && maintenance_state == o.maintenance_state && node_status == o.node_status && ipmi == o.ipmi && rackable_unit_uuid == o.rackable_unit_uuid end |
#eql?(o) ⇒ Boolean
743 744 745 |
# File 'lib/nutanix_clustermgmt/models/clustermgmt_v40_config_host.rb', line 743 def eql?(o) self == o end |
#hash ⇒ Integer
Calculates hash code according to all attributes.
749 750 751 |
# File 'lib/nutanix_clustermgmt/models/clustermgmt_v40_config_host.rb', line 749 def hash [tenant_id, ext_id, links, host_name, host_type, hypervisor, cluster, controller_vm, disk, is_degraded, is_secure_booted, is_hardware_virtualized, has_csr, key_management_device_to_cert_status, number_of_cpu_cores, number_of_cpu_threads, number_of_cpu_sockets, cpu_capacity_hz, cpu_frequency_hz, cpu_model, gpu_driver_version, gpu_list, default_vhd_location, default_vhd_container_uuid, default_vm_location, default_vm_container_uuid, is_reboot_pending, failover_cluster_fqdn, failover_cluster_node_status, boot_time_usecs, memory_size_bytes, block_serial, block_model, maintenance_state, node_status, ipmi, rackable_unit_uuid].hash end |
#list_invalid_properties ⇒ Object
Show invalid properties with the reasons. Usually used together with valid?
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 |
# File 'lib/nutanix_clustermgmt/models/clustermgmt_v40_config_host.rb', line 431 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 !@host_name.nil? && @host_name.to_s.length > 63 invalid_properties.push('invalid value for "host_name", the character length must be smaller than or equal to 63.') end if !@disk.nil? && @disk.length > 1024 invalid_properties.push('invalid value for "disk", number of items must be less than or equal to 1024.') end if !@disk.nil? && @disk.length < 0 invalid_properties.push('invalid value for "disk", number of items must be greater than or equal to 0.') end if !@key_management_device_to_cert_status.nil? && @key_management_device_to_cert_status.length > 1024 invalid_properties.push('invalid value for "key_management_device_to_cert_status", number of items must be less than or equal to 1024.') end if !@key_management_device_to_cert_status.nil? && @key_management_device_to_cert_status.length < 0 invalid_properties.push('invalid value for "key_management_device_to_cert_status", number of items must be greater than or equal to 0.') end if !@gpu_list.nil? && @gpu_list.length > 1024 invalid_properties.push('invalid value for "gpu_list", number of items must be less than or equal to 1024.') end if !@gpu_list.nil? && @gpu_list.length < 0 invalid_properties.push('invalid value for "gpu_list", 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 !@default_vhd_container_uuid.nil? && @default_vhd_container_uuid !~ pattern invalid_properties.push("invalid value for \"default_vhd_container_uuid\", 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 !@default_vm_container_uuid.nil? && @default_vm_container_uuid !~ pattern invalid_properties.push("invalid value for \"default_vm_container_uuid\", must conform to the pattern #{pattern}.") end pattern = Regexp.new(/^([a-z0-9]+(-[a-z0-9]+)*\.)+([a-z0-9]+(-[a-z0-9]+)*){1,63}$/) if !@failover_cluster_fqdn.nil? && @failover_cluster_fqdn !~ pattern invalid_properties.push("invalid value for \"failover_cluster_fqdn\", 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 !@rackable_unit_uuid.nil? && @rackable_unit_uuid !~ pattern invalid_properties.push("invalid value for \"rackable_unit_uuid\", must conform to the pattern #{pattern}.") end invalid_properties end |
#to_hash ⇒ Hash
Returns the object in the form of hash
778 779 780 781 782 783 784 785 786 787 788 789 790 |
# File 'lib/nutanix_clustermgmt/models/clustermgmt_v40_config_host.rb', line 778 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
505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 |
# File 'lib/nutanix_clustermgmt/models/clustermgmt_v40_config_host.rb', line 505 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 !@host_name.nil? && @host_name.to_s.length > 63 return false if !@disk.nil? && @disk.length > 1024 return false if !@disk.nil? && @disk.length < 0 return false if !@key_management_device_to_cert_status.nil? && @key_management_device_to_cert_status.length > 1024 return false if !@key_management_device_to_cert_status.nil? && @key_management_device_to_cert_status.length < 0 return false if !@gpu_list.nil? && @gpu_list.length > 1024 return false if !@gpu_list.nil? && @gpu_list.length < 0 return false if !@default_vhd_container_uuid.nil? && @default_vhd_container_uuid !~ 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 !@default_vm_container_uuid.nil? && @default_vm_container_uuid !~ 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 !@failover_cluster_fqdn.nil? && @failover_cluster_fqdn !~ Regexp.new(/^([a-z0-9]+(-[a-z0-9]+)*\.)+([a-z0-9]+(-[a-z0-9]+)*){1,63}$/) return false if !@rackable_unit_uuid.nil? && @rackable_unit_uuid !~ 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 |