models.hardware_info module

class models.hardware_info.HardwareInfo(chassis_model=None, chassis_serial=None, chassis_type=None, cohesity_chassis_serial=None, cohesity_node_serial=None, hba_model=None, ipmi_lan_channel=None, max_slots=None, node_model=None, node_serial=None, product_model=None, product_model_type=None, slot_number=None)[source]

Bases: object

Implementation of the ‘HardwareInfo’ model.

This struct should match the fields in the hardware JSON file. Hardware JSON file serves as cache for hardware info to reduce hardware polling which takes time.

Attributes:

chassis_model (string): TODO: type description here. chassis_serial (string): TODO: type description here. chassis_type (string): TODO: type description here. cohesity_chassis_serial (string): TODO: type description here. cohesity_node_serial (string): TODO: type description here. hba_model (string): TODO: type description here. ipmi_lan_channel (string): TODO: type description here. max_slots (string): TODO: type description here. node_model (string): TODO: type description here. node_serial (string): TODO: type description here. product_model (string): TODO: type description here. product_model_type (string): TODO: type description here. slot_number (string): TODO: type description here.

classmethod from_dictionary(dictionary)[source]

Creates an instance of this model from a dictionary

Args:

dictionary (dictionary): A dictionary representation of the object as obtained from the deserialization of the server’s response. The keys MUST match property names in the API description.

Returns:

object: An instance of this structure class.