# 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 .feature_info_object_py3 import FeatureInfoObject
[docs]class PatternFeatureInfo(FeatureInfoObject):
"""Pattern feature.
:param id: A six-digit ID used for Features.
:type id: int
:param name: The name of the Feature.
:type name: str
:param is_active: Indicates if the feature is enabled.
:type is_active: bool
:param pattern: The Regular Expression to match.
:type pattern: str
"""
_attribute_map = {
'id': {'key': 'id', 'type': 'int'},
'name': {'key': 'name', 'type': 'str'},
'is_active': {'key': 'isActive', 'type': 'bool'},
'pattern': {'key': 'pattern', 'type': 'str'},
}
def __init__(self, *, id: int=None, name: str=None, is_active: bool=None, pattern: str=None, **kwargs) -> None:
super(PatternFeatureInfo, self).__init__(id=id, name=name, is_active=is_active, **kwargs)
self.pattern = pattern