# 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 PatternUpdateObject(Model):
"""Object model for updating an existing Pattern feature.
:param pattern: The Regular Expression to match.
:type pattern: str
:param name: Name of the feature.
:type name: str
:param is_active: Indicates if the Pattern feature is enabled. Default
value: True .
:type is_active: bool
"""
_attribute_map = {
'pattern': {'key': 'pattern', 'type': 'str'},
'name': {'key': 'name', 'type': 'str'},
'is_active': {'key': 'isActive', 'type': 'bool'},
}
def __init__(self, *, pattern: str=None, name: str=None, is_active: bool=True, **kwargs) -> None:
super(PatternUpdateObject, self).__init__(**kwargs)
self.pattern = pattern
self.name = name
self.is_active = is_active