models_v2.device_tree_node module

class models_v2.device_tree_node.DeviceTreeNode(is_leaf=None, leaf_node_params=None, non_leaf_node_params=None)[source]

Bases: object

Implementation of the ‘DeviceTreeNode’ model.

Specifies the tree structure of a logical volume. The leaves are slices of partitions and the other nodes are assemled by combining nodes in some mode.


is_leaf (bool): Specifies if the node is a leaf node. leaf_node_params (LeafNodeParams): Specifies the parameters for a leaf


non_leaf_node_params (NonLeafNodeParams): Specifies the parameters for

a non leaf node.

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.