models.virtual_disk_recover_task_state module¶
-
class
models.virtual_disk_recover_task_state.
VirtualDiskRecoverTaskState
(error=None, is_instant_recovery_finished=None, task_state=None, virtual_disk_restore_response=None)[source]¶ Bases:
object
Implementation of the ‘VirtualDiskRecoverTaskState’ model.
Specifies the complete information about a recover virtual disk task state.
- Attributes:
- error (RequestError): The error encountered by task (if any). Only
valid if the task has finished.
- is_instant_recovery_finished (bool): Specifies if instant recovery of
the virtual disk is complete.
- task_state (TaskStateEnum): Specifies the current state of the restore
virtual disks task. Specifies the current state of the restore virtual disks task. ‘kDetachDisksDone’ indicates the detached state of disks. ‘kSetupDisksDone’ indicates that disks setup is completed. ‘kMigrateDisksStarted’ indicates that disks are being migrated. ‘kMigrateDisksDone’ indicates that disk migration is completed. ‘kUnMountDatastoreDone’ indicates that disk has unmounted the datastore.
- virtual_disk_restore_response (VirtualDiskRestoreResponse): Specifies
the response for recovery of virtual disks of a vm.
-
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.