models.restore_wrapper_proto module

class models.restore_wrapper_proto.RestoreWrapperProto(destroy_cloned_task_state_vec=None, owner_restore_wrapper_proto=None, perform_refresh_task_state_vec=None, perform_restore_job_state=None, perform_restore_task_state=None, restore_sub_task_wrapper_proto_vec=None)[source]

Bases: object

Implementation of the ‘RestoreWrapperProto’ model.

If this message is a checkpoint record in WAL-logging or if this message is used to send restore task info back to the user, it will contain the info of the restore job/task and the list of all destroy tasks (only when the record is for a restore task of type clone) associated with it. If this message is delta record, it will contain the state mutation for one of individual restore job, restore task and individual destroy task.

destroy_cloned_task_state_vec (list of DestroyClonedTaskStateProto):

For a restore task of type ‘Clone’, this field contains the info of the destroy task(s).

owner_restore_wrapper_proto (RestoreWrapperProto): TODO: type

description here.

perform_refresh_task_state_vec (list of PerformRestoreTaskStateProto):

Contains information of the refresh tasks for a clone

perform_restore_job_state (PerformRestoreJobStateProto): Proto to

define the persistent information of a wrapper restore job that spawns multiple child restore tasks.

perform_restore_task_state (PerformRestoreTaskStateProto): TODO: type

description here.

restore_sub_task_wrapper_proto_vec (list of object): If this restore

has sub tasks, the following field will get populated with the wrapper proto of all of its sub-tasks. Note that this field is only populated for Iris in response to ‘GetRestoreTasksArg’ RPC. It is not persisted in Magneto’s WAL. List of environments that use this field: kSQL : Used for multi-stage SQL restore that supports a hot-standy.

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.