models.hyperv_datastore module

class models.hyperv_datastore.HypervDatastore(capacity=None, free_space=None, mount_points=None, mtype=None)[source]

Bases: object

Implementation of the ‘HypervDatastore’ model.

Specifies information about a Datastore Object in HyperV environment.

Attributes:

capacity (int): Specifies the capacity of the datastore in bytes. free_space (int): Specifies the available space on the datastore in

bytes.

mount_points (list of string): Specifies the available mount points on

the datastore.

mtype (TypeHypervDatastoreEnum): Specifies the type of the datastore

object like kFileShare or kVolume. overrideDescription: true Specifies the type of a HyperV datastore object. ‘kFileShare’ indicates SMB file share datastore. ‘kVolume’ indicates a volume which can a LUN.

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.