models.indexing_policy module

class models.indexing_policy.IndexingPolicy(allow_prefixes=None, deny_prefixes=None, disable_indexing=None)[source]

Bases: object

Implementation of the ‘IndexingPolicy’ 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:
allow_prefixes (list of string): Array of Indexed Directories.

Specifies a list of directories to index.

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

Specifies a list of directories to exclude from indexing.

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

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

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.