models_v2.disk_details module

class models_v2.disk_details.DiskDetails(id=None, serial_number=None, capacity_in_bytes=None, model=None, node_id=None, status=None, mtype=None, location=None)[source]

Bases: object

Implementation of the ‘Disk details’ model.

Specifies the details of a disk that belongs to a node.

Attributes:

id (long|int): Specifies id to uniquely identify a disk. serial_number (string): Specifies serial number of disk. capacity_in_bytes (long|int): Specifies capacity of disk in bytes. model (string): Specifies product model of disk. node_id (long|int): Specifies node id of the node that this disk

belong to.

status (Status20Enum): Specifies status of the disk. mtype (Type22Enum): Specifies type of the disk. location (string): Specifies location of the disk in node.

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.