models.virtual_disk_mapping module

class models.virtual_disk_mapping.VirtualDiskMapping(disk_to_overwrite=None, source_disk=None, target_location_id=None)[source]

Bases: object

Implementation of the ‘VirtualDiskMapping’ model.

Specifies the request data struct for virtual disk mapping with only the disk ids.

Attributes:
disk_to_overwrite (VirtualDiskIdInformation): Specifies information

about disk which user wants to overwrite. If specified, then powerOffVmBeforeRecovery must be true.

source_disk (VirtualDiskIdInformation): Specifies information about

the source disk.

target_location_id (long|int): Specifies the target location

information, for e.g. a datastore in VMware environment. If diskToOverwrite is specified then the target location is automatically deduced.

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.