Class: IntersightClient::NiatelemetryNiaInventory
- Defined in:
- lib/intersight_client/models/niatelemetry_nia_inventory.rb
Overview
Inventory object available per device scope. This common object holds a device level information.
Defined Under Namespace
Classes: EnumAttributeValidator
Instance Attribute Summary collapse
-
#class_id ⇒ Object
The fully-qualified name of the instantiated, concrete type.
-
#cpu ⇒ Object
CPU usage of device being inventoried.
-
#crash_reset_logs ⇒ Object
Last crash reset reason of device being inventoried.
-
#customer_device_connector ⇒ Object
Returns the value of the customerDeviceConnector field.
-
#dcnm_license_state ⇒ Object
Returns the License state of the device.
-
#device_discovery ⇒ Object
Returns the value of the deviceDiscovery field.
-
#device_health ⇒ Object
Returns the device health.
-
#device_id ⇒ Object
Returns the value of the deviceId field.
-
#device_name ⇒ Object
Name of device being inventoried.
-
#device_type ⇒ Object
Type of device being inventoried.
-
#device_up_time ⇒ Object
Returns the device up time.
-
#disk ⇒ Object
Returns the value of attribute disk.
-
#dn ⇒ Object
Dn for the inventories present.
-
#fabric_name ⇒ Object
Name of the fabric of the device being inventoried.
-
#fex_count ⇒ Object
Number of fabric extendors utilized.
-
#infra_wi_node_count ⇒ Object
Number of appliances as physical device that are wired into the cluster.
-
#interface ⇒ Object
Returns the value of attribute interface.
-
#ip_address ⇒ Object
The IP address of the device being inventoried.
-
#is_virtual_node ⇒ Object
Flag to specify if the node is virtual.
-
#last_reboot_time ⇒ Object
Returns the last reboot Time of the device.
-
#last_reset_reason ⇒ Object
Returns the last reset reason of the device.
-
#license_state ⇒ Object
Returns the value of attribute license_state.
-
#license_type ⇒ Object
Returns the License type of the device.
-
#log_in_time ⇒ Object
Last log in time device being inventoried.
-
#log_out_time ⇒ Object
Last log out time of device being inventoried.
-
#mac_sec_count ⇒ Object
Number of Macsec configured interfaces on a TOR.
-
#mac_sec_fab_count ⇒ Object
Number of Macsec configured interfaces on a Spine.
-
#macsec_total_count ⇒ Object
Number of total Macsec configured interfaces for all nodes.
-
#memory ⇒ Object
Memory usage of device being inventoried.
-
#node_id ⇒ Object
The ID of the device being inventoried.
-
#nxos_bgp_mvpn ⇒ Object
Returns the value of attribute nxos_bgp_mvpn.
-
#nxos_bootflash_details ⇒ Object
Returns the value of attribute nxos_bootflash_details.
-
#nxos_dci_interface_status ⇒ Object
Returns the status of dci interface configured.
-
#nxos_interface_brief ⇒ Object
Returns the value of attribute nxos_interface_brief.
-
#nxos_nve_interface_status ⇒ Object
Returns the value of the nxosNveInterface field.
-
#nxos_nve_packet_counters ⇒ Object
Returns the value of attribute nxos_nve_packet_counters.
-
#nxos_nve_vni ⇒ Object
Returns the value of attribute nxos_nve_vni.
-
#nxos_ospf_neighbors ⇒ Object
Total number of ospf neighbors per switch in DCNM.
-
#nxos_pim_neighbors ⇒ Object
Total number of pim neighbors per switch in DCNM.
-
#nxos_telnet ⇒ Object
Returns the value of the nxosTelnet field.
-
#nxos_total_routes ⇒ Object
Total number of routes configured in the DCNM.
-
#nxos_vtp ⇒ Object
Returns the value of attribute nxos_vtp.
-
#object_type ⇒ Object
The fully-qualified name of the instantiated, concrete type.
-
#record_type ⇒ Object
Type of record DCNM / APIC / SE.
-
#record_version ⇒ Object
Version of record being pushed.
-
#registered_device ⇒ Object
Returns the value of attribute registered_device.
-
#route_prefix_count ⇒ Object
Total nuumber of v4 and v6 routes per node.
-
#route_prefix_v4_count ⇒ Object
Number of v4 routes per node.
-
#route_prefix_v6_count ⇒ Object
Number of v6 routes per node.
-
#serial ⇒ Object
Serial number of device being invetoried.
-
#site_name ⇒ Object
Name of fabric domain of the controller.
-
#smart_account_id ⇒ Object
Returns the value of the smartAccountId/CustomerId field.
-
#software_download ⇒ Object
Last software downloaded of device being inventoried.
-
#system_up_time ⇒ Object
The amount of time that the device being inventoried been up.
-
#version ⇒ Object
Software version of device being inventoried.
Attributes inherited from MoBaseMo
#account_moid, #ancestors, #create_time, #display_names, #domain_group_moid, #mod_time, #moid, #owners, #parent, #permission_resources, #shared_scope, #tags, #version_context
Class Method Summary collapse
-
.acceptable_attribute_map ⇒ Object
Returns the key-value map of all the JSON attributes this model knows about, including the ones defined in its parent(s).
-
.acceptable_attributes ⇒ Object
Returns all the JSON keys this model knows about, including the ones defined in its parent(s).
-
.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_discriminator_name ⇒ Object
discriminator’s property name in 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.
-
#_deserialize(type, value) ⇒ Object
Deserializes the data based on type.
-
#_to_hash(value) ⇒ Hash
Outputs non-array value in the form of hash For object, use to_hash.
-
#build_from_hash(attributes) ⇒ Object
Builds the object from hash.
- #eql?(o) ⇒ Boolean
-
#hash ⇒ Integer
Calculates hash code according to all attributes.
-
#initialize(attributes = {}) ⇒ NiatelemetryNiaInventory
constructor
Initializes the object.
-
#list_invalid_properties ⇒ Object
Show invalid properties with the reasons.
-
#to_body ⇒ Hash
to_body is an alias to to_hash (backward compatibility).
-
#to_hash ⇒ Hash
Returns the object in the form of hash.
-
#to_s ⇒ String
Returns the string representation of the object.
-
#valid? ⇒ Boolean
Check to see if the all the properties in the model are valid.
Constructor Details
#initialize(attributes = {}) ⇒ NiatelemetryNiaInventory
Initializes the object
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 |
# File 'lib/intersight_client/models/niatelemetry_nia_inventory.rb', line 357 def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `IntersightClient::NiatelemetryNiaInventory` initialize method" end # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.acceptable_attribute_map.key?(k.to_sym)) fail ArgumentError, "`#{k}` is not a valid attribute in `#{self.class.name}`. Please check the name to make sure it's valid. List of attributes: " + self.class.acceptable_attribute_map.keys.inspect end h[k.to_sym] = v } # call parent's initialize super(attributes) if attributes.key?(:'class_id') self.class_id = attributes[:'class_id'] else self.class_id = 'niatelemetry.NiaInventory' end if attributes.key?(:'object_type') self.object_type = attributes[:'object_type'] else self.object_type = 'niatelemetry.NiaInventory' end if attributes.key?(:'cpu') self.cpu = attributes[:'cpu'] end if attributes.key?(:'crash_reset_logs') self.crash_reset_logs = attributes[:'crash_reset_logs'] end if attributes.key?(:'customer_device_connector') self.customer_device_connector = attributes[:'customer_device_connector'] end if attributes.key?(:'dcnm_license_state') self.dcnm_license_state = attributes[:'dcnm_license_state'] end if attributes.key?(:'device_discovery') self.device_discovery = attributes[:'device_discovery'] end if attributes.key?(:'device_health') self.device_health = attributes[:'device_health'] end if attributes.key?(:'device_id') self.device_id = attributes[:'device_id'] end if attributes.key?(:'device_name') self.device_name = attributes[:'device_name'] end if attributes.key?(:'device_type') self.device_type = attributes[:'device_type'] end if attributes.key?(:'device_up_time') self.device_up_time = attributes[:'device_up_time'] end if attributes.key?(:'disk') self.disk = attributes[:'disk'] end if attributes.key?(:'dn') self.dn = attributes[:'dn'] end if attributes.key?(:'fabric_name') self.fabric_name = attributes[:'fabric_name'] end if attributes.key?(:'fex_count') self.fex_count = attributes[:'fex_count'] end if attributes.key?(:'infra_wi_node_count') self.infra_wi_node_count = attributes[:'infra_wi_node_count'] end if attributes.key?(:'interface') if (value = attributes[:'interface']).is_a?(Array) self.interface = value end end if attributes.key?(:'ip_address') self.ip_address = attributes[:'ip_address'] end if attributes.key?(:'is_virtual_node') self.is_virtual_node = attributes[:'is_virtual_node'] end if attributes.key?(:'last_reboot_time') self.last_reboot_time = attributes[:'last_reboot_time'] end if attributes.key?(:'last_reset_reason') self.last_reset_reason = attributes[:'last_reset_reason'] end if attributes.key?(:'license_type') self.license_type = attributes[:'license_type'] end if attributes.key?(:'log_in_time') self.log_in_time = attributes[:'log_in_time'] end if attributes.key?(:'log_out_time') self.log_out_time = attributes[:'log_out_time'] end if attributes.key?(:'mac_sec_count') self.mac_sec_count = attributes[:'mac_sec_count'] end if attributes.key?(:'mac_sec_fab_count') self.mac_sec_fab_count = attributes[:'mac_sec_fab_count'] end if attributes.key?(:'macsec_total_count') self.macsec_total_count = attributes[:'macsec_total_count'] end if attributes.key?(:'memory') self.memory = attributes[:'memory'] end if attributes.key?(:'node_id') self.node_id = attributes[:'node_id'] end if attributes.key?(:'nxos_bgp_mvpn') self.nxos_bgp_mvpn = attributes[:'nxos_bgp_mvpn'] end if attributes.key?(:'nxos_bootflash_details') self.nxos_bootflash_details = attributes[:'nxos_bootflash_details'] end if attributes.key?(:'nxos_dci_interface_status') self.nxos_dci_interface_status = attributes[:'nxos_dci_interface_status'] end if attributes.key?(:'nxos_interface_brief') self.nxos_interface_brief = attributes[:'nxos_interface_brief'] end if attributes.key?(:'nxos_nve_interface_status') self.nxos_nve_interface_status = attributes[:'nxos_nve_interface_status'] end if attributes.key?(:'nxos_nve_packet_counters') self.nxos_nve_packet_counters = attributes[:'nxos_nve_packet_counters'] end if attributes.key?(:'nxos_nve_vni') self.nxos_nve_vni = attributes[:'nxos_nve_vni'] end if attributes.key?(:'nxos_ospf_neighbors') self.nxos_ospf_neighbors = attributes[:'nxos_ospf_neighbors'] end if attributes.key?(:'nxos_pim_neighbors') self.nxos_pim_neighbors = attributes[:'nxos_pim_neighbors'] end if attributes.key?(:'nxos_telnet') self.nxos_telnet = attributes[:'nxos_telnet'] end if attributes.key?(:'nxos_total_routes') self.nxos_total_routes = attributes[:'nxos_total_routes'] end if attributes.key?(:'nxos_vtp') self.nxos_vtp = attributes[:'nxos_vtp'] end if attributes.key?(:'record_type') self.record_type = attributes[:'record_type'] end if attributes.key?(:'record_version') self.record_version = attributes[:'record_version'] end if attributes.key?(:'route_prefix_count') self.route_prefix_count = attributes[:'route_prefix_count'] end if attributes.key?(:'route_prefix_v4_count') self.route_prefix_v4_count = attributes[:'route_prefix_v4_count'] end if attributes.key?(:'route_prefix_v6_count') self.route_prefix_v6_count = attributes[:'route_prefix_v6_count'] end if attributes.key?(:'serial') self.serial = attributes[:'serial'] end if attributes.key?(:'site_name') self.site_name = attributes[:'site_name'] end if attributes.key?(:'smart_account_id') self.smart_account_id = attributes[:'smart_account_id'] end if attributes.key?(:'software_download') self.software_download = attributes[:'software_download'] end if attributes.key?(:'system_up_time') self.system_up_time = attributes[:'system_up_time'] end if attributes.key?(:'version') self.version = attributes[:'version'] end if attributes.key?(:'license_state') self.license_state = attributes[:'license_state'] end if attributes.key?(:'registered_device') self.registered_device = attributes[:'registered_device'] end end |
Instance Attribute Details
#class_id ⇒ Object
The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data.
20 21 22 |
# File 'lib/intersight_client/models/niatelemetry_nia_inventory.rb', line 20 def class_id @class_id end |
#cpu ⇒ Object
CPU usage of device being inventoried. This determines the percentage of CPU resources used.
26 27 28 |
# File 'lib/intersight_client/models/niatelemetry_nia_inventory.rb', line 26 def cpu @cpu end |
#crash_reset_logs ⇒ Object
Last crash reset reason of device being inventoried. This determines the last reason for a device’s restart due to crash of the system.
29 30 31 |
# File 'lib/intersight_client/models/niatelemetry_nia_inventory.rb', line 29 def crash_reset_logs @crash_reset_logs end |
#customer_device_connector ⇒ Object
Returns the value of the customerDeviceConnector field.
32 33 34 |
# File 'lib/intersight_client/models/niatelemetry_nia_inventory.rb', line 32 def customer_device_connector @customer_device_connector end |
#dcnm_license_state ⇒ Object
Returns the License state of the device.
35 36 37 |
# File 'lib/intersight_client/models/niatelemetry_nia_inventory.rb', line 35 def dcnm_license_state @dcnm_license_state end |
#device_discovery ⇒ Object
Returns the value of the deviceDiscovery field.
38 39 40 |
# File 'lib/intersight_client/models/niatelemetry_nia_inventory.rb', line 38 def device_discovery @device_discovery end |
#device_health ⇒ Object
Returns the device health.
41 42 43 |
# File 'lib/intersight_client/models/niatelemetry_nia_inventory.rb', line 41 def device_health @device_health end |
#device_id ⇒ Object
Returns the value of the deviceId field.
44 45 46 |
# File 'lib/intersight_client/models/niatelemetry_nia_inventory.rb', line 44 def device_id @device_id end |
#device_name ⇒ Object
Name of device being inventoried. The name the user assigns to the device is inventoried here.
47 48 49 |
# File 'lib/intersight_client/models/niatelemetry_nia_inventory.rb', line 47 def device_name @device_name end |
#device_type ⇒ Object
Type of device being inventoried. This determines whether the device is a controller, leaf or spine.
50 51 52 |
# File 'lib/intersight_client/models/niatelemetry_nia_inventory.rb', line 50 def device_type @device_type end |
#device_up_time ⇒ Object
Returns the device up time.
53 54 55 |
# File 'lib/intersight_client/models/niatelemetry_nia_inventory.rb', line 53 def device_up_time @device_up_time end |
#disk ⇒ Object
Returns the value of attribute disk.
55 56 57 |
# File 'lib/intersight_client/models/niatelemetry_nia_inventory.rb', line 55 def disk @disk end |
#dn ⇒ Object
Dn for the inventories present.
58 59 60 |
# File 'lib/intersight_client/models/niatelemetry_nia_inventory.rb', line 58 def dn @dn end |
#fabric_name ⇒ Object
Name of the fabric of the device being inventoried.
61 62 63 |
# File 'lib/intersight_client/models/niatelemetry_nia_inventory.rb', line 61 def fabric_name @fabric_name end |
#fex_count ⇒ Object
Number of fabric extendors utilized.
64 65 66 |
# File 'lib/intersight_client/models/niatelemetry_nia_inventory.rb', line 64 def fex_count @fex_count end |
#infra_wi_node_count ⇒ Object
Number of appliances as physical device that are wired into the cluster.
67 68 69 |
# File 'lib/intersight_client/models/niatelemetry_nia_inventory.rb', line 67 def infra_wi_node_count @infra_wi_node_count end |
#interface ⇒ Object
Returns the value of attribute interface.
69 70 71 |
# File 'lib/intersight_client/models/niatelemetry_nia_inventory.rb', line 69 def interface @interface end |
#ip_address ⇒ Object
The IP address of the device being inventoried.
72 73 74 |
# File 'lib/intersight_client/models/niatelemetry_nia_inventory.rb', line 72 def ip_address @ip_address end |
#is_virtual_node ⇒ Object
Flag to specify if the node is virtual.
75 76 77 |
# File 'lib/intersight_client/models/niatelemetry_nia_inventory.rb', line 75 def is_virtual_node @is_virtual_node end |
#last_reboot_time ⇒ Object
Returns the last reboot Time of the device.
78 79 80 |
# File 'lib/intersight_client/models/niatelemetry_nia_inventory.rb', line 78 def last_reboot_time @last_reboot_time end |
#last_reset_reason ⇒ Object
Returns the last reset reason of the device.
81 82 83 |
# File 'lib/intersight_client/models/niatelemetry_nia_inventory.rb', line 81 def last_reset_reason @last_reset_reason end |
#license_state ⇒ Object
Returns the value of attribute license_state.
170 171 172 |
# File 'lib/intersight_client/models/niatelemetry_nia_inventory.rb', line 170 def license_state @license_state end |
#license_type ⇒ Object
Returns the License type of the device.
84 85 86 |
# File 'lib/intersight_client/models/niatelemetry_nia_inventory.rb', line 84 def license_type @license_type end |
#log_in_time ⇒ Object
Last log in time device being inventoried. This determines the last login time on the device.
87 88 89 |
# File 'lib/intersight_client/models/niatelemetry_nia_inventory.rb', line 87 def log_in_time @log_in_time end |
#log_out_time ⇒ Object
Last log out time of device being inventoried. This determines the last logout time on the device.
90 91 92 |
# File 'lib/intersight_client/models/niatelemetry_nia_inventory.rb', line 90 def log_out_time @log_out_time end |
#mac_sec_count ⇒ Object
Number of Macsec configured interfaces on a TOR.
93 94 95 |
# File 'lib/intersight_client/models/niatelemetry_nia_inventory.rb', line 93 def mac_sec_count @mac_sec_count end |
#mac_sec_fab_count ⇒ Object
Number of Macsec configured interfaces on a Spine.
96 97 98 |
# File 'lib/intersight_client/models/niatelemetry_nia_inventory.rb', line 96 def mac_sec_fab_count @mac_sec_fab_count end |
#macsec_total_count ⇒ Object
Number of total Macsec configured interfaces for all nodes.
99 100 101 |
# File 'lib/intersight_client/models/niatelemetry_nia_inventory.rb', line 99 def macsec_total_count @macsec_total_count end |
#memory ⇒ Object
Memory usage of device being inventoried. This determines the percentage of memory resources used.
102 103 104 |
# File 'lib/intersight_client/models/niatelemetry_nia_inventory.rb', line 102 def memory @memory end |
#node_id ⇒ Object
The ID of the device being inventoried.
105 106 107 |
# File 'lib/intersight_client/models/niatelemetry_nia_inventory.rb', line 105 def node_id @node_id end |
#nxos_bgp_mvpn ⇒ Object
Returns the value of attribute nxos_bgp_mvpn.
107 108 109 |
# File 'lib/intersight_client/models/niatelemetry_nia_inventory.rb', line 107 def nxos_bgp_mvpn @nxos_bgp_mvpn end |
#nxos_bootflash_details ⇒ Object
Returns the value of attribute nxos_bootflash_details.
109 110 111 |
# File 'lib/intersight_client/models/niatelemetry_nia_inventory.rb', line 109 def nxos_bootflash_details @nxos_bootflash_details end |
#nxos_dci_interface_status ⇒ Object
Returns the status of dci interface configured.
112 113 114 |
# File 'lib/intersight_client/models/niatelemetry_nia_inventory.rb', line 112 def nxos_dci_interface_status @nxos_dci_interface_status end |
#nxos_interface_brief ⇒ Object
Returns the value of attribute nxos_interface_brief.
114 115 116 |
# File 'lib/intersight_client/models/niatelemetry_nia_inventory.rb', line 114 def nxos_interface_brief @nxos_interface_brief end |
#nxos_nve_interface_status ⇒ Object
Returns the value of the nxosNveInterface field.
117 118 119 |
# File 'lib/intersight_client/models/niatelemetry_nia_inventory.rb', line 117 def nxos_nve_interface_status @nxos_nve_interface_status end |
#nxos_nve_packet_counters ⇒ Object
Returns the value of attribute nxos_nve_packet_counters.
119 120 121 |
# File 'lib/intersight_client/models/niatelemetry_nia_inventory.rb', line 119 def nxos_nve_packet_counters @nxos_nve_packet_counters end |
#nxos_nve_vni ⇒ Object
Returns the value of attribute nxos_nve_vni.
121 122 123 |
# File 'lib/intersight_client/models/niatelemetry_nia_inventory.rb', line 121 def nxos_nve_vni @nxos_nve_vni end |
#nxos_ospf_neighbors ⇒ Object
Total number of ospf neighbors per switch in DCNM.
124 125 126 |
# File 'lib/intersight_client/models/niatelemetry_nia_inventory.rb', line 124 def nxos_ospf_neighbors @nxos_ospf_neighbors end |
#nxos_pim_neighbors ⇒ Object
Total number of pim neighbors per switch in DCNM.
127 128 129 |
# File 'lib/intersight_client/models/niatelemetry_nia_inventory.rb', line 127 def nxos_pim_neighbors @nxos_pim_neighbors end |
#nxos_telnet ⇒ Object
Returns the value of the nxosTelnet field.
130 131 132 |
# File 'lib/intersight_client/models/niatelemetry_nia_inventory.rb', line 130 def nxos_telnet @nxos_telnet end |
#nxos_total_routes ⇒ Object
Total number of routes configured in the DCNM.
133 134 135 |
# File 'lib/intersight_client/models/niatelemetry_nia_inventory.rb', line 133 def nxos_total_routes @nxos_total_routes end |
#nxos_vtp ⇒ Object
Returns the value of attribute nxos_vtp.
135 136 137 |
# File 'lib/intersight_client/models/niatelemetry_nia_inventory.rb', line 135 def nxos_vtp @nxos_vtp end |
#object_type ⇒ Object
The fully-qualified name of the instantiated, concrete type. The value should be the same as the ‘ClassId’ property.
23 24 25 |
# File 'lib/intersight_client/models/niatelemetry_nia_inventory.rb', line 23 def object_type @object_type end |
#record_type ⇒ Object
Type of record DCNM / APIC / SE. This determines the type of platform where inventory was collected.
138 139 140 |
# File 'lib/intersight_client/models/niatelemetry_nia_inventory.rb', line 138 def record_type @record_type end |
#record_version ⇒ Object
Version of record being pushed. This determines what was the API version for data available from the device.
141 142 143 |
# File 'lib/intersight_client/models/niatelemetry_nia_inventory.rb', line 141 def record_version @record_version end |
#registered_device ⇒ Object
Returns the value of attribute registered_device.
172 173 174 |
# File 'lib/intersight_client/models/niatelemetry_nia_inventory.rb', line 172 def registered_device @registered_device end |
#route_prefix_count ⇒ Object
Total nuumber of v4 and v6 routes per node.
144 145 146 |
# File 'lib/intersight_client/models/niatelemetry_nia_inventory.rb', line 144 def route_prefix_count @route_prefix_count end |
#route_prefix_v4_count ⇒ Object
Number of v4 routes per node.
147 148 149 |
# File 'lib/intersight_client/models/niatelemetry_nia_inventory.rb', line 147 def route_prefix_v4_count @route_prefix_v4_count end |
#route_prefix_v6_count ⇒ Object
Number of v6 routes per node.
150 151 152 |
# File 'lib/intersight_client/models/niatelemetry_nia_inventory.rb', line 150 def route_prefix_v6_count @route_prefix_v6_count end |
#serial ⇒ Object
Serial number of device being invetoried. The serial number is unique per device and will be used as the key.
153 154 155 |
# File 'lib/intersight_client/models/niatelemetry_nia_inventory.rb', line 153 def serial @serial end |
#site_name ⇒ Object
Name of fabric domain of the controller.
156 157 158 |
# File 'lib/intersight_client/models/niatelemetry_nia_inventory.rb', line 156 def site_name @site_name end |
#smart_account_id ⇒ Object
Returns the value of the smartAccountId/CustomerId field.
159 160 161 |
# File 'lib/intersight_client/models/niatelemetry_nia_inventory.rb', line 159 def smart_account_id @smart_account_id end |
#software_download ⇒ Object
Last software downloaded of device being inventoried. This determines if software download API was used.
162 163 164 |
# File 'lib/intersight_client/models/niatelemetry_nia_inventory.rb', line 162 def software_download @software_download end |
#system_up_time ⇒ Object
The amount of time that the device being inventoried been up.
165 166 167 |
# File 'lib/intersight_client/models/niatelemetry_nia_inventory.rb', line 165 def system_up_time @system_up_time end |
#version ⇒ Object
Software version of device being inventoried. The various software version values for each device are available on cisco.com.
168 169 170 |
# File 'lib/intersight_client/models/niatelemetry_nia_inventory.rb', line 168 def version @version end |
Class Method Details
.acceptable_attribute_map ⇒ Object
Returns the key-value map of all the JSON attributes this model knows about, including the ones defined in its parent(s)
263 264 265 |
# File 'lib/intersight_client/models/niatelemetry_nia_inventory.rb', line 263 def self.acceptable_attribute_map attribute_map.merge(superclass.acceptable_attribute_map) end |
.acceptable_attributes ⇒ Object
Returns all the JSON keys this model knows about, including the ones defined in its parent(s)
258 259 260 |
# File 'lib/intersight_client/models/niatelemetry_nia_inventory.rb', line 258 def self.acceptable_attributes attribute_map.values.concat(superclass.acceptable_attributes) end |
.attribute_map ⇒ Object
Attribute mapping from ruby-style variable name to JSON key.
197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 |
# File 'lib/intersight_client/models/niatelemetry_nia_inventory.rb', line 197 def self.attribute_map { :'class_id' => :'ClassId', :'object_type' => :'ObjectType', :'cpu' => :'Cpu', :'crash_reset_logs' => :'CrashResetLogs', :'customer_device_connector' => :'CustomerDeviceConnector', :'dcnm_license_state' => :'DcnmLicenseState', :'device_discovery' => :'DeviceDiscovery', :'device_health' => :'DeviceHealth', :'device_id' => :'DeviceId', :'device_name' => :'DeviceName', :'device_type' => :'DeviceType', :'device_up_time' => :'DeviceUpTime', :'disk' => :'Disk', :'dn' => :'Dn', :'fabric_name' => :'FabricName', :'fex_count' => :'FexCount', :'infra_wi_node_count' => :'InfraWiNodeCount', :'interface' => :'Interface', :'ip_address' => :'IpAddress', :'is_virtual_node' => :'IsVirtualNode', :'last_reboot_time' => :'LastRebootTime', :'last_reset_reason' => :'LastResetReason', :'license_type' => :'LicenseType', :'log_in_time' => :'LogInTime', :'log_out_time' => :'LogOutTime', :'mac_sec_count' => :'MacSecCount', :'mac_sec_fab_count' => :'MacSecFabCount', :'macsec_total_count' => :'MacsecTotalCount', :'memory' => :'Memory', :'node_id' => :'NodeId', :'nxos_bgp_mvpn' => :'NxosBgpMvpn', :'nxos_bootflash_details' => :'NxosBootflashDetails', :'nxos_dci_interface_status' => :'NxosDciInterfaceStatus', :'nxos_interface_brief' => :'NxosInterfaceBrief', :'nxos_nve_interface_status' => :'NxosNveInterfaceStatus', :'nxos_nve_packet_counters' => :'NxosNvePacketCounters', :'nxos_nve_vni' => :'NxosNveVni', :'nxos_ospf_neighbors' => :'NxosOspfNeighbors', :'nxos_pim_neighbors' => :'NxosPimNeighbors', :'nxos_telnet' => :'NxosTelnet', :'nxos_total_routes' => :'NxosTotalRoutes', :'nxos_vtp' => :'NxosVtp', :'record_type' => :'RecordType', :'record_version' => :'RecordVersion', :'route_prefix_count' => :'RoutePrefixCount', :'route_prefix_v4_count' => :'RoutePrefixV4Count', :'route_prefix_v6_count' => :'RoutePrefixV6Count', :'serial' => :'Serial', :'site_name' => :'SiteName', :'smart_account_id' => :'SmartAccountId', :'software_download' => :'SoftwareDownload', :'system_up_time' => :'SystemUpTime', :'version' => :'Version', :'license_state' => :'LicenseState', :'registered_device' => :'RegisteredDevice' } end |
.build_from_hash(attributes) ⇒ Object
Builds the object from hash
724 725 726 |
# File 'lib/intersight_client/models/niatelemetry_nia_inventory.rb', line 724 def self.build_from_hash(attributes) new.build_from_hash(attributes) end |
.openapi_all_of ⇒ Object
List of class defined in allOf (OpenAPI v3)
343 344 345 346 347 348 |
# File 'lib/intersight_client/models/niatelemetry_nia_inventory.rb', line 343 def self.openapi_all_of [ :'MoBaseMo', :'NiatelemetryNiaInventoryAllOf' ] end |
.openapi_discriminator_name ⇒ Object
discriminator’s property name in OpenAPI v3
351 352 353 |
# File 'lib/intersight_client/models/niatelemetry_nia_inventory.rb', line 351 def self.openapi_discriminator_name :'ClassId' end |
.openapi_nullable ⇒ Object
List of attributes with nullable: true
329 330 331 332 333 334 335 336 337 338 339 340 |
# File 'lib/intersight_client/models/niatelemetry_nia_inventory.rb', line 329 def self.openapi_nullable Set.new([ :'disk', :'interface', :'nxos_bgp_mvpn', :'nxos_bootflash_details', :'nxos_interface_brief', :'nxos_nve_packet_counters', :'nxos_nve_vni', :'nxos_vtp', ]) end |
.openapi_types ⇒ Object
Attribute type mapping.
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 |
# File 'lib/intersight_client/models/niatelemetry_nia_inventory.rb', line 268 def self.openapi_types { :'class_id' => :'String', :'object_type' => :'String', :'cpu' => :'Float', :'crash_reset_logs' => :'String', :'customer_device_connector' => :'String', :'dcnm_license_state' => :'String', :'device_discovery' => :'String', :'device_health' => :'Integer', :'device_id' => :'String', :'device_name' => :'String', :'device_type' => :'String', :'device_up_time' => :'Integer', :'disk' => :'NiatelemetryDiskinfo', :'dn' => :'String', :'fabric_name' => :'String', :'fex_count' => :'Integer', :'infra_wi_node_count' => :'Integer', :'interface' => :'Array<NiatelemetryInterfaceElement>', :'ip_address' => :'String', :'is_virtual_node' => :'String', :'last_reboot_time' => :'String', :'last_reset_reason' => :'String', :'license_type' => :'String', :'log_in_time' => :'String', :'log_out_time' => :'String', :'mac_sec_count' => :'Integer', :'mac_sec_fab_count' => :'Integer', :'macsec_total_count' => :'Integer', :'memory' => :'Integer', :'node_id' => :'String', :'nxos_bgp_mvpn' => :'NiatelemetryNxosBgpMvpn', :'nxos_bootflash_details' => :'NiatelemetryBootflashDetails', :'nxos_dci_interface_status' => :'String', :'nxos_interface_brief' => :'NiatelemetryInterface', :'nxos_nve_interface_status' => :'String', :'nxos_nve_packet_counters' => :'NiatelemetryNvePacketCounters', :'nxos_nve_vni' => :'NiatelemetryNveVni', :'nxos_ospf_neighbors' => :'Integer', :'nxos_pim_neighbors' => :'String', :'nxos_telnet' => :'String', :'nxos_total_routes' => :'Integer', :'nxos_vtp' => :'NiatelemetryNxosVtp', :'record_type' => :'String', :'record_version' => :'String', :'route_prefix_count' => :'Integer', :'route_prefix_v4_count' => :'Integer', :'route_prefix_v6_count' => :'Integer', :'serial' => :'String', :'site_name' => :'String', :'smart_account_id' => :'Integer', :'software_download' => :'String', :'system_up_time' => :'String', :'version' => :'String', :'license_state' => :'NiatelemetryNiaLicenseStateRelationship', :'registered_device' => :'AssetDeviceRegistrationRelationship' } end |
Instance Method Details
#==(o) ⇒ Object
Checks equality by comparing each attribute.
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 |
# File 'lib/intersight_client/models/niatelemetry_nia_inventory.rb', line 649 def ==(o) return true if self.equal?(o) self.class == o.class && class_id == o.class_id && object_type == o.object_type && cpu == o.cpu && crash_reset_logs == o.crash_reset_logs && customer_device_connector == o.customer_device_connector && dcnm_license_state == o.dcnm_license_state && device_discovery == o.device_discovery && device_health == o.device_health && device_id == o.device_id && device_name == o.device_name && device_type == o.device_type && device_up_time == o.device_up_time && disk == o.disk && dn == o.dn && fabric_name == o.fabric_name && fex_count == o.fex_count && infra_wi_node_count == o.infra_wi_node_count && interface == o.interface && ip_address == o.ip_address && is_virtual_node == o.is_virtual_node && last_reboot_time == o.last_reboot_time && last_reset_reason == o.last_reset_reason && license_type == o.license_type && log_in_time == o.log_in_time && log_out_time == o.log_out_time && mac_sec_count == o.mac_sec_count && mac_sec_fab_count == o.mac_sec_fab_count && macsec_total_count == o.macsec_total_count && memory == o.memory && node_id == o.node_id && nxos_bgp_mvpn == o.nxos_bgp_mvpn && nxos_bootflash_details == o.nxos_bootflash_details && nxos_dci_interface_status == o.nxos_dci_interface_status && nxos_interface_brief == o.nxos_interface_brief && nxos_nve_interface_status == o.nxos_nve_interface_status && nxos_nve_packet_counters == o.nxos_nve_packet_counters && nxos_nve_vni == o.nxos_nve_vni && nxos_ospf_neighbors == o.nxos_ospf_neighbors && nxos_pim_neighbors == o.nxos_pim_neighbors && nxos_telnet == o.nxos_telnet && nxos_total_routes == o.nxos_total_routes && nxos_vtp == o.nxos_vtp && record_type == o.record_type && record_version == o.record_version && route_prefix_count == o.route_prefix_count && route_prefix_v4_count == o.route_prefix_v4_count && route_prefix_v6_count == o.route_prefix_v6_count && serial == o.serial && site_name == o.site_name && smart_account_id == o.smart_account_id && software_download == o.software_download && system_up_time == o.system_up_time && version == o.version && license_state == o.license_state && registered_device == o.registered_device && super(o) end |
#_deserialize(type, value) ⇒ Object
Deserializes the data based on type
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 |
# File 'lib/intersight_client/models/niatelemetry_nia_inventory.rb', line 755 def _deserialize(type, value) case type.to_sym when :Time Time.parse(value) when :Date Date.parse(value) when :String value.to_s when :Integer value.to_i when :Float value.to_f when :Boolean if value.to_s =~ /\A(true|t|yes|y|1)\z/i true else false end when :Object # generic object (usually a Hash), return directly value when /\AArray<(?<inner_type>.+)>\z/ inner_type = Regexp.last_match[:inner_type] value.map { |v| _deserialize(inner_type, v) } when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/ k_type = Regexp.last_match[:k_type] v_type = Regexp.last_match[:v_type] {}.tap do |hash| value.each do |k, v| hash[_deserialize(k_type, k)] = _deserialize(v_type, v) end end else # model # models (e.g. Pet) or oneOf klass = IntersightClient.const_get(type) klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) end end |
#_to_hash(value) ⇒ Hash
Outputs non-array value in the form of hash For object, use to_hash. Otherwise, just return the value
826 827 828 829 830 831 832 833 834 835 836 837 838 |
# File 'lib/intersight_client/models/niatelemetry_nia_inventory.rb', line 826 def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } elsif value.is_a?(Hash) {}.tap do |hash| value.each { |k, v| hash[k] = _to_hash(v) } end elsif value.respond_to? :to_hash value.to_hash else value end end |
#build_from_hash(attributes) ⇒ Object
Builds the object from hash
731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 |
# File 'lib/intersight_client/models/niatelemetry_nia_inventory.rb', line 731 def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) super(attributes) NiatelemetryNiaInventory.openapi_types.each_pair do |key, type| if attributes[NiatelemetryNiaInventory.attribute_map[key]].nil? && NiatelemetryNiaInventory.openapi_nullable.include?(key) self.send("#{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[NiatelemetryNiaInventory.attribute_map[key]].is_a?(Array) self.send("#{key}=", attributes[NiatelemetryNiaInventory.attribute_map[key]].map { |v| _deserialize($1, v) }) end elsif !attributes[NiatelemetryNiaInventory.attribute_map[key]].nil? self.send("#{key}=", _deserialize(type, attributes[NiatelemetryNiaInventory.attribute_map[key]])) end end self end |
#eql?(o) ⇒ Boolean
711 712 713 |
# File 'lib/intersight_client/models/niatelemetry_nia_inventory.rb', line 711 def eql?(o) self == o end |
#hash ⇒ Integer
Calculates hash code according to all attributes.
717 718 719 |
# File 'lib/intersight_client/models/niatelemetry_nia_inventory.rb', line 717 def hash [class_id, object_type, cpu, crash_reset_logs, customer_device_connector, dcnm_license_state, device_discovery, device_health, device_id, device_name, device_type, device_up_time, disk, dn, fabric_name, fex_count, infra_wi_node_count, interface, ip_address, is_virtual_node, last_reboot_time, last_reset_reason, license_type, log_in_time, log_out_time, mac_sec_count, mac_sec_fab_count, macsec_total_count, memory, node_id, nxos_bgp_mvpn, nxos_bootflash_details, nxos_dci_interface_status, nxos_interface_brief, nxos_nve_interface_status, nxos_nve_packet_counters, nxos_nve_vni, nxos_ospf_neighbors, nxos_pim_neighbors, nxos_telnet, nxos_total_routes, nxos_vtp, record_type, record_version, route_prefix_count, route_prefix_v4_count, route_prefix_v6_count, serial, site_name, smart_account_id, software_download, system_up_time, version, license_state, registered_device].hash end |
#list_invalid_properties ⇒ Object
Show invalid properties with the reasons. Usually used together with valid?
602 603 604 605 606 607 608 609 610 611 612 613 |
# File 'lib/intersight_client/models/niatelemetry_nia_inventory.rb', line 602 def list_invalid_properties invalid_properties = super if @class_id.nil? invalid_properties.push('invalid value for "class_id", class_id cannot be nil.') end if @object_type.nil? invalid_properties.push('invalid value for "object_type", object_type cannot be nil.') end invalid_properties end |
#to_body ⇒ Hash
to_body is an alias to to_hash (backward compatibility)
802 803 804 |
# File 'lib/intersight_client/models/niatelemetry_nia_inventory.rb', line 802 def to_body to_hash end |
#to_hash ⇒ Hash
Returns the object in the form of hash
808 809 810 811 812 813 814 815 816 817 818 819 820 |
# File 'lib/intersight_client/models/niatelemetry_nia_inventory.rb', line 808 def to_hash hash = super NiatelemetryNiaInventory.attribute_map.each_pair do |attr, param| value = self.send(attr) if value.nil? is_nullable = NiatelemetryNiaInventory.openapi_nullable.include?(attr) next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) end hash[param] = _to_hash(value) end hash end |
#to_s ⇒ String
Returns the string representation of the object
796 797 798 |
# File 'lib/intersight_client/models/niatelemetry_nia_inventory.rb', line 796 def to_s to_hash.to_s end |
#valid? ⇒ Boolean
Check to see if the all the properties in the model are valid
617 618 619 620 621 622 623 624 625 |
# File 'lib/intersight_client/models/niatelemetry_nia_inventory.rb', line 617 def valid? return false if @class_id.nil? class_id_validator = EnumAttributeValidator.new('String', ["niatelemetry.NiaInventory"]) return false unless class_id_validator.valid?(@class_id) return false if @object_type.nil? object_type_validator = EnumAttributeValidator.new('String', ["niatelemetry.NiaInventory"]) return false unless object_type_validator.valid?(@object_type) true && super end |