models.chassis_info module

class models.chassis_info.ChassisInfo(chassis_id=None, chassis_name=None, chassis_serial=None, location=None, rack_id=None)[source]

Bases: object

Implementation of the ‘ChassisInfo’ model.

ChassisInfo is the struct for the Chassis.

Attributes:
chassis_id (long|int): ChassisId is a unique id assigned to the

chassis.

chassis_name (string): ChassisName is the name of the chassis. This

could be the chassis serial number by default.

chassis_serial (string): Chassis serial. location (string): Location is the location of the chassis within the

rack.

rack_id (long|int): Rack is the rack within which this chassis lives.

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.