models.disk_unit module

class models.disk_unit.DiskUnit(bus_number=None, controller_type=None, unit_number=None)[source]

Bases: object

Implementation of the ‘DiskUnit’ model.

Specifies information about a disk unit in a controller.

Attributes:
bus_number (long|int): Specifies the Id of the controller bus that

controls the disk.

controller_type (string): Specifies the controller type like SCSI, or

IDE etc.

unit_number (long|int): Specifies the disk file name. This is the VMDK

name and not the flat file name.

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.