models.disk_block module

class models.disk_block.DiskBlock(length_bytes=None, offset_bytes=None)[source]

Bases: object

Implementation of the ‘DiskBlock’ model.

Specifies a contiguous block by defining an offset and length of the block.


length_bytes (long|int): Specifies the length of the block in bytes. 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.