models.data_lock_constraints module

class models.data_lock_constraints.DataLockConstraints(expiry_time_usecs=None, worm_retention_type=None)[source]

Bases: object

Implementation of the ‘DataLockConstraints’ model.

Specifies the datalock retention type and expiry time when datalock expires

Attributes:
expiry_time_usecs (long|int): Specifies expiry time to keep Snapshots

under datalock in a protection group.

worm_retention_type (WormRetentionTypeEnum): Specifies WORM retention

type for the snapshots. When a WORM retention type is specified, the snapshots of the Protection Jobs using this policy will be kept until the maximum of the snapshot retention time. During that time, the snapshots cannot be deleted. ‘kNone’ implies there is no WORM retention set. ‘kCompliance’ implies WORM retention is set for compliance reason. ‘kAdministrative’ implies WORM retention is set for administrative purposes.

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.