models.supported_pattern module¶
-
class
models.supported_pattern.
SupportedPattern
(is_system_defined=None, name=None, pattern=None, pattern_type=None)[source]¶ Bases:
object
Implementation of the ‘SupportedPattern’ model.
Specifies details of the pattern available for search available in an application such as Pattern Finder within Analytics Work Bench.
- Attributes:
- is_system_defined (bool): Specifies the Authenticating
Database for this MongoDB cluster.
name (string): Specifies the name of the Pattern. pattern (string): Specifies the value of the pattern(Regex).
SSL only in this cluster.
- pattern_type (PatternTypeSupportedPatternEnum): Specifies the Pattern type.
‘REGULAR’ indicates that the pattern contains a regular expression. ‘TEMPLATE’ indicates that the pattern has a pre defined input pattern such as date of the form ‘DD-MM-YYYY’.
-
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.