1# --------------------------------------------------------------------------------------------
2# Copyright (c) Microsoft Corporation. All rights reserved.
3# Licensed under the MIT License. See License.txt in the project root for license information.
4# --------------------------------------------------------------------------------------------
5# Generated file, DO NOT EDIT
6# Changes may cause incorrect behavior and will be lost if the code is regenerated.
7# --------------------------------------------------------------------------------------------
8
9from msrest.serialization import Model
10
11
12class Rule(Model):
13    """Rule.
14
15    :param clauses:
16    :type clauses: list of :class:`FilterClause <work.v4_0.models.FilterClause>`
17    :param filter:
18    :type filter: str
19    :param is_enabled:
20    :type is_enabled: str
21    :param name:
22    :type name: str
23    :param settings:
24    :type settings: dict
25    """
26
27    _attribute_map = {
28        'clauses': {'key': 'clauses', 'type': '[FilterClause]'},
29        'filter': {'key': 'filter', 'type': 'str'},
30        'is_enabled': {'key': 'isEnabled', 'type': 'str'},
31        'name': {'key': 'name', 'type': 'str'},
32        'settings': {'key': 'settings', 'type': '{str}'}
33    }
34
35    def __init__(self, clauses=None, filter=None, is_enabled=None, name=None, settings=None):
36        super(Rule, self).__init__()
37        self.clauses = clauses
38        self.filter = filter
39        self.is_enabled = is_enabled
40        self.name = name
41        self.settings = settings
42