models.device_node module¶
-
class
models.device_node.
DeviceNode
(intermediate_node=None, leaf_node=None)[source]¶ Bases:
object
Implementation of the ‘DeviceNode’ model.
Specifies the list of devices that need to be combined to form the storage space. Only one of the fields is populated with a device node. If the device node is a leaf node, leafNode is populated with details about the partition blocks in the file. If the device node is an intermediate node, intermediateNode is populated with a device sub-tree.
- Attributes:
- intermediate_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.
- leaf_node (FilePartitionBlock): Defines a leaf node of a device tree.
This refers to a logical partition in a virtual disk file.
-
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.