models_v2.cdp_retention module¶
-
class
models_v2.cdp_retention.
CdpRetention
(unit=None, duration=None, data_lock_config=None)[source]¶ Bases:
object
Implementation of the ‘CdpRetention’ model.
Specifies the retention of a CDP backup.
- Attributes:
- unit (Unit7Enum): Specificies the Retention Unit of a CDP backup
measured in minutes or hours.
duration (int): Specifies the duration for a cdp backup retention. data_lock_config (DataLockConfig): Specifies WORM retention type for
the snapshots. When a WORM retention type is specified, the snapshots of the Protection Groups using this policy will be kept for the last N days as specified in the duration of the datalock. During that time, the snapshots cannot be deleted.
-
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.