File: models.py

package info (click to toggle)
azure-devops-cli-extension 1.0.2-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 20,384 kB
  • sloc: python: 160,782; xml: 198; makefile: 56; sh: 51
file content (63 lines) | stat: -rw-r--r-- 1,901 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
# --------------------------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# --------------------------------------------------------------------------------------------
# Generated file, DO NOT EDIT
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
# --------------------------------------------------------------------------------------------

from msrest.serialization import Model


class FeatureFlag(Model):
    """FeatureFlag.

    :param description:
    :type description: str
    :param effective_state:
    :type effective_state: str
    :param explicit_state:
    :type explicit_state: str
    :param name:
    :type name: str
    :param uri:
    :type uri: str
    """

    _attribute_map = {
        'description': {'key': 'description', 'type': 'str'},
        'effective_state': {'key': 'effectiveState', 'type': 'str'},
        'explicit_state': {'key': 'explicitState', 'type': 'str'},
        'name': {'key': 'name', 'type': 'str'},
        'uri': {'key': 'uri', 'type': 'str'}
    }

    def __init__(self, description=None, effective_state=None, explicit_state=None, name=None, uri=None):
        super(FeatureFlag, self).__init__()
        self.description = description
        self.effective_state = effective_state
        self.explicit_state = explicit_state
        self.name = name
        self.uri = uri


class FeatureFlagPatch(Model):
    """FeatureFlagPatch.

    :param state:
    :type state: str
    """

    _attribute_map = {
        'state': {'key': 'state', 'type': 'str'}
    }

    def __init__(self, state=None):
        super(FeatureFlagPatch, self).__init__()
        self.state = state


__all__ = [
    'FeatureFlag',
    'FeatureFlagPatch',
]