models.virtual_disk_restore_parameters module

class models.virtual_disk_restore_parameters.VirtualDiskRestoreParameters(power_off_vm_before_recovery=None, power_on_vm_after_recovery=None, target_source_id=None, virtual_disk_mappings=None)[source]

Bases: object

Implementation of the ‘VirtualDiskRestoreParameters’ model.

Specifies the parameters to recover virtual disks of a vm.

power_off_vm_before_recovery (bool): Specifies whether to power off

the VM before recovering virtual disks.

power_on_vm_after_recovery (bool): Specifies whether to power on the

VM after recovering virtual disks.

target_source_id (long|int): Specifies the target entity to which the

disks should be attached.

virtual_disk_mappings (list of VirtualDiskMapping): Specifies the list

of virtual disks mappings.

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.