models.file_partition_block module

class models.file_partition_block.FilePartitionBlock(disk_file_name=None, length_bytes=None, number=None, offset_bytes=None)[source]

Bases: object

Implementation of the ‘FilePartitionBlock’ model.

Defines a leaf node of a device tree. This refers to a logical partition in a virtual disk file.

disk_file_name (string): Specifies the disk file name where the

logical partition is.

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.

classmethod from_dictionary(dictionary)[source]

Creates an instance of this model from a dictionary


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.


object: An instance of this structure class.