models_v2.data_lock_constraints module

class models_v2.data_lock_constraints.DataLockConstraints(mode=None, expiry_time_usecs=None)[source]

Bases: object

Implementation of the ‘DataLock Constraints’ model.

Specifies the dataLock constraints for local or target snapshot.

Attributes:
mode (Mode2Enum): Specifies the type of WORM retention type.

‘Compliance’ implies WORM retention is set for compliance reason. ‘Administrative’ implies WORM retention is set for administrative purposes.

expiry_time_usecs (long|int): Specifies the expiry time of attempt in

Unix epoch Timestamp (in microseconds).

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.