models.volume_info module

class models.volume_info.VolumeInfo(disk_vec=None, display_name=None, filesystem_type=None, fs_label=None, fs_uuid=None, is_bootable=None, is_dedup=None, is_supported=None, lv_info=None, subvol_info=None, volume_guid=None, volume_identifier=None, volume_type=None)[source]

Bases: object

Implementation of the ‘VolumeInfo’ model.

Information about each logical volume (filesystem).

disk_vec (list of VolumeInfoDiskInfo): Information about all the disks

and partitions needed to mount this logical volume.

display_name (string): Display name. filesystem_type (string): Filesystem on this volume. fs_label (string): Filesystem label. fs_uuid (string): Filesystem uuid. is_bootable (bool): Is this volume bootable? is_dedup (bool): Is this a dedup volume? Currently, set to true only

for ntfs dedup volume.

is_supported (bool): Is this a supported Volume (filesystem)? lv_info (VolumeInfoLogicalVolumeInfo): This is extra attribute which

uniquely identifies a logical volume in LVM or LDM.

subvol_info (VolumeInfo_SubVolumeInfo): This is set to capture info

about any active subvolume for this volume.

volume_guid (string): The guid of the volume represented by this

virtual disk. This information will be originally populated by magneto for physical environments.

volume_identifier (int): We assign a unique number to every volume

within a VM which we see for the first time. The identifier will be monotonically increasing number startin from 1.

volume_type (int): Whether this volume is simple, lvm or ldm.

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.