models.file_extension_filter module

class models.file_extension_filter.FileExtensionFilter(file_extensions_list=None, is_enabled=None, mode=None)[source]

Bases: object

Implementation of the ‘FileExtensionFilter’ model.

TODO: type model description here.

Attributes:
file_extensions_list (list of string): The list of file extensions to

apply

is_enabled (bool): If set, it enables the file extension filter mode (ModeFileExtensionFilterEnum): The mode applied to the list of

file extensions ‘kWhitelist’ indicates a whitelist extension filter. ‘kBlacklist’ indicates a blacklist extension filter.

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.