models_v2.device_tree_leaf_node module

class models_v2.device_tree_leaf_node.DeviceTreeLeafNode(disk_name=None, partition_number=None, offset_bytes=None, length_bytes=None)[source]

Bases: object

Implementation of the ‘DeviceTreeLeafNode’ model.

Specifies the parameters of a leaf node in device tree.

Attributes:

disk_name (string): Specifies the disk name. partition_number (int): Specifies the paritition number. offset_bytes (long|int): Specifies 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.

length_bytes (long|int): Specifies The length of data in bytes for the

LVM volume (for which this device tree is being built). It does not include size of the LVM meta data.

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.