models.data_migration_policy module

class models.data_migration_policy.DataMigrationPolicy(days_to_keep=None, scheduling_policy=None, worm_retention_type=None)[source]

Bases: object

Implementation of the ‘DataMigrationPolicy’ model.

Specifies settings for data migration in NAS environment. This also specifies the retention policy that should be applied to files after they have been moved to cohesity cluster.

Attributes:
days_to_keep (long|int): Specifies how many days to retain Snapshots

on the Cohesity Cluster.

scheduling_policy (SchedulingPolicy): Specifies settings that define a

backup schedule for a Protection Job.

worm_retention_type (WormRetentionTypeDataMigrationPolicyEnum):

Specifies WORM retention type for the files. When a WORM retention type is specified, the files will be kept until the maximum of the retention time. During that time, the files 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.