# coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for
# license information.
#
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
# --------------------------------------------------------------------------
from msrest.serialization import Model
[docs]class JSONRegexFeature(Model):
"""Exported Model - A Pattern feature.
:param pattern: The Regular Expression to match.
:type pattern: str
:param activated: Indicates if the Pattern feature is enabled.
:type activated: bool
:param name: Name of the feature.
:type name: str
"""
_attribute_map = {
'pattern': {'key': 'pattern', 'type': 'str'},
'activated': {'key': 'activated', 'type': 'bool'},
'name': {'key': 'name', 'type': 'str'},
}
def __init__(self, *, pattern: str=None, activated: bool=None, name: str=None, **kwargs) -> None:
super(JSONRegexFeature, self).__init__(**kwargs)
self.pattern = pattern
self.activated = activated
self.name = name