models.logical_volume module

class models.logical_volume.LogicalVolume(device_root_node=None, group_name=None, group_uuid=None, name=None, uuid=None)[source]

Bases: object

Implementation of the ‘LogicalVolume’ model.

Specifies attributes for a kLVM (Linux) or kLDM (Windows) filesystem.

Attributes:
device_root_node (DeviceTreeDetails): Specifies a logical volume

stored as a tree where the leaves are the blocks of partitions and intermediate nodes are assembled by combining nodes using one of the following modes: linear layout, striped, mirrored, RAID etc. A deviceTree is a block device formed by combining one or more Devices using a combining strategy.

group_name (string): Specifies the group name of the logical volume. group_uuid (string): Specifies the group uuid of the logical volume. name (string): Specifies the name of the logical volume. uuid (string): Specifies the uuid of the logical volume.

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.