models.source_filters_source_filter module

class models.source_filters_source_filter.SourceFilters_SourceFilter(is_regex=None, source_filter=None)[source]

Bases: object

Implementation of the ‘SourceFilters_SourceFilter’ model.

Plain text filter: { source_filter: “TestDatabase”, is_regex: false}. Wildcard filter: { source_filter: “Test?Database*”, is_regex: false}. Regex filter: { source_filter: “^Test.*Database$”, is_regex: true}.

Attributes:
is_regex (bool): If true, this implies ‘source_filter’ is a regex

filter. If false, it will be treated as wildcard/plain text filter.

source_filter (string): This contains the filter string.

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.