models.disk_partition module¶
-
class
models.disk_partition.
DiskPartition
(length_bytes=None, number=None, offset_bytes=None, type_uuid=None, uuid=None)[source]¶ Bases:
object
Implementation of the ‘DiskPartition’ model.
Specifies information about each partition in a physical disk.
- Attributes:
length_bytes (long|int): Specifies the length of the block in bytes. number (long|int): Specifies a unique number of the partition within
the linear disk file.
- offset_bytes (long|int): Specifies the offset of the block (in bytes)
from the beginning of the containing object such as a physical disk or a virtual disk file.
- type_uuid (string): Specifies the partition type uuid. If disk is
unpartitioned, this field is not set. If disk is MBR partitioned, this field is set to a partition type. If disk is GPT partitioned, this field is set to a partition type GUID.
- uuid (string): Specifies the partition uuid. If disk is unpartitioned,
this field is not set. If disk is MBR partitioned, this field is not set. If disk is GPT partitioned, this field is set to a partition GUID.
-
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.