models.view_id_mapping_proto_file_level_data_lock_config module

class models.view_id_mapping_proto_file_level_data_lock_config.ViewIdMappingProto_FileLevelDataLockConfig(auto_lock_duration_usecs=None, default_retention_duration_usecs=None, hold_timestamp_usecs=None, max_retention_duration_usecs=None, min_retention_duration_usecs=None, mode=None, protocol=None)[source]

Bases: object

Implementation of the ‘ViewIdMappingProto_FileLevelDataLockConfig’ model.

TODO: Type model description here.

Attributes:
auto_lock_duration_usecs (long|int): Auto-lock automatically commit

files to WORM state in the filesystem if they have not been modified for an administrator-specified period of time. When the auto-lock is enabled, this field must be set to idle time duration after which file would be automatically locked. Auto locking will be disabled when configured with default value of -1.

default_retention_duration_usecs (long|int): Default retention

duration is used when an explicit retention timestamp is not set by user/application when locking a file. If the administrator does not want to enforce this, this field must not be set. If file requires being retained forever by default, this must be set to INT64_MAX. If minimum and maximum retention are enforced, then this must be always between these two durations.

hold_timestamp_usecs (long|int): Specifies timestamp to protect

locked files until a specific date. This would override retention periods and deny any mutable or remove operations on locked files until a specific date.

max_retention_duration_usecs (long|int): Specifies maximum retention

duration of worm locked file. If the administrator does not want to enforce this, this must not be set. If default and max retention duration are enforced, max retention duration must be greater than or equal to default retention duration. If min and max retention duration are enforced, max retention duration must be greater than and equal to min retention duration.

min_retention_duration_usecs (long|int): Minimum and maximum retention

duration allow the administrator to enforce retention duration that falls within a specified range. If the administrator does not want to enforce this, this must not be set. If the file requires being retained forever, this must be set to INT64_MAX. If default retention is enforced, this must be less than or equal to default retention. If max retention are enforced, default retention duration must be less than and equal to max retention duration.

mode (int): Explicit locking mode. protocol (int): Explicit locking protocol.

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.