models.device_tree_partition_slice module

class models.device_tree_partition_slice.DeviceTreePartitionSlice(disk_file_name=None, length=None, lvm_data_offset=None, offset=None, partition_number=None)[source]

Bases: object

Implementation of the ‘DeviceTree_PartitionSlice’ model.

TODO: type model description here.

Attributes:

disk_file_name (string): The disk to use. length (long|int): The length of data for the LVM volume (for which

this device tree is being built) in bytes. It does not include size of the LVM meta data.

lvm_data_offset (long|int): Each LVM partition starts with LVM meta

data. After the meta data there can be data for one or more LVM volumes. This field indicates the offset in bytes (relative to partition) where data for various LVM volumes starts on the partition. NOTE: If this device tree represents first LVM volume on the partition, ‘lvm_data_offset’ is equal to ‘offset’.

offset (long|int): This is the offset (in bytes) where data for the

LVM volume (for which this device tree is being build) starts relative to the start of the partition above.

partition_number (int): The partition to use in the disk above.

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.