models.retention_policy_proto module

class models.retention_policy_proto.RetentionPolicyProto(num_days_to_keep=None, num_secs_to_keep=None, worm_retention=None)[source]

Bases: object

Implementation of the ‘RetentionPolicyProto’ model.

Message that specifies the retention policy for backup snapshots.

Attributes:
num_days_to_keep (long|int): The number of days to keep the snapshots

for a backup run.

num_secs_to_keep (int): The number of seconds to keep the snapshots

for a backup run.

worm_retention (WormRetentionProto): Message that specifies the WORM

attributes. WORM attributes can be associated with any of the following: 1. backup policy: compliance or administrative policy with worm retention. 2. backup runs: worm retention inherited from policy at successful backup run completion.. 3. backup tasks do not inherit WORM retention. Instead they check for WORM property on the corresponding backup run. There are no WORM attributes associated with the backup job.

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.