models.job_policy_proto module

class models.job_policy_proto.JobPolicyProto(backup_policy=None, snapshot_target_policy_vec=None)[source]

Bases: object

Implementation of the ‘JobPolicyProto’ model.

A message that specifies the policies to use for a job.

backup_policy (BackupPolicyProto): If a backup does not get a chance

to when it’s due (either due to the system being busy or a conflict with another instance of the same job), the backup will still be run when the conflicts go away. But, if there are multiple instances of the same job that are due to be run, only the latest instance would be run.

snapshot_target_policy_vec (list of SnapshotTargetPolicyProto):

Specifies additional policies that can be used to copy snapshots created by a backup run to different targets (such as a remote replica, tape etc). Each policy also specifies the retention policy that should be applied to the copied snapshots at the respective target.

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.