models.restore_file_result_info module¶
-
class
models.restore_file_result_info.
RestoreFileResultInfo
(copy_stats=None, destination_dir=None, error=None, restored_file_info=None, status=None)[source]¶ Bases:
object
Implementation of the ‘RestoreFileResultInfo’ model.
This message captures result of restore of individual file or directory as initiated from magneto. Note, it is expected that the agents go through the “estimation” phase first for the entire batch of restore requests and then start copying. These state transitions are reflected in the “status” field here.
- Attributes:
- copy_stats (RestoreFileCopyStats): This message captures the progress
information regarding restore of file/directory.
- destination_dir (string): This is set to the destination directory
where the file/directory was copied.
error (ErrorProto): TODO: type description here. restored_file_info (RestoredFileInfo): TODO: type description here. status (int): Status of the restore.
-
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.