models_v2.device_tree module

class models_v2.device_tree.DeviceTree(is_leaf=None, leaf_node_params=None, non_leaf_node_params=None)[source]

Bases: object

Implementation of the ‘DeviceTree’ model.

Specifies the tree structure of the logical volume.


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.