models_v2.indexing_policy module

class models_v2.indexing_policy.IndexingPolicy(enable_indexing=None, include_paths=None, exclude_paths=None)[source]

Bases: object

Implementation of the ‘Indexing Policy.’ model.

Specifies settings for indexing files found in an Object (such as a VM) so these files can be searched and recovered. This also specifies inclusion and exclusion rules that determine the directories to index.

Attributes:
enable_indexing (bool): Specifies if the files found in an Object

(such as a VM) should be indexed. If true (the default), files are indexed.

include_paths (list of string): Array of Indexed Directories.

Specifies a list of directories to index. Regular expression can also be specified to provide the directory paths. Example: /Users/<wildcard>/AppData

exclude_paths (list of string): Array of Excluded Directories.

Specifies a list of directories to exclude from indexing.Regular expression can also be specified to provide the directory paths. Example: /Users/<wildcard>/AppData

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.