models.file_stubbing_params module

class models.file_stubbing_params.FileStubbingParams(cold_file_window=None, delete_orphan_data=None, file_select_policy=None, file_size=None, file_size_policy=None, filtering_policy=None, migrate_without_stub=None, nfs_mount_path=None, target_view_name=None)[source]

Bases: object

Implementation of the ‘FileStubbingParams’ model.

File Stubbing Parameters Message to capture the additional stubbing params for a file-based environment.

Attributes:
cold_file_window (long|int): Identifies the cold files in the NAS

source. Files that haven’t been accessed/modified in the last cold_file_window msecs or are older than cold_window_msecs are migrated.

delete_orphan_data (bool): Delete migrated data if no symlink at

source is pointing to it.

file_select_policy (int): File migrate policy based on file

access/modify time and age.

file_size (long|int): Gives the size criteria to be used for selecting

the files to be migrated. The cold files that are equal and greater than file_size or smaller than file_size are migrated.

file_size_policy (int): File size policy for selecting files to

migrate.

filtering_policy (FilteringPolicyProto): Proto to encapsulate the

filtering policy for backup objects like files or directories. If an object is not matched by any of the ‘allow_filters’, it will be excluded in the backup. If an object is matched by one of the ‘deny_filters’, it will always be excluded in the backup. Basically ‘deny_filters’ overwrite ‘allow_filters’ if they both match the same object. Currently we only support two kinds of filter: prefix which always starts with ‘/’, or postfix which always starts with ‘*’ (cannot be “*” only). We don’t support regular expression right now. A concrete example is: Allow filters: “/” Deny filters: “/tmp”, “*.mp4” Using such a policy will include everything under the root directory except the /tmp directory and all the mp4 files.

migrate_without_stub (bool): Migrate data without stub. nfs_mount_path (string): Mount path where the Cohesity target view

must be mounted on all NFS clients for accessing the migrated data.

target_view_name (string): The target view name to which the data will

be migrated.

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.