1# coding=utf-8
2# --------------------------------------------------------------------------
3# Copyright (c) Microsoft Corporation. All rights reserved.
4# Licensed under the MIT License. See License.txt in the project root for license information.
5# Code generated by Microsoft (R) AutoRest Code Generator.
6# Changes may cause incorrect behavior and will be lost if the code is regenerated.
7# --------------------------------------------------------------------------
8
9from enum import Enum, EnumMeta
10from six import with_metaclass
11
12class _CaseInsensitiveEnumMeta(EnumMeta):
13    def __getitem__(self, name):
14        return super().__getitem__(name.upper())
15
16    def __getattr__(cls, name):
17        """Return the enum member matching `name`
18        We use __getattr__ instead of descriptors or inserting into the enum
19        class' __dict__ in order to support `name` and `value` being both
20        properties for enum members (which live in the class' __dict__) and
21        enum members themselves.
22        """
23        try:
24            return cls._member_map_[name.upper()]
25        except KeyError:
26            raise AttributeError(name)
27
28
29class Architecture(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
30    """The OS architecture.
31    """
32
33    AMD64 = "amd64"
34    X86 = "x86"
35    ARM = "arm"
36
37class BaseImageDependencyType(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
38    """The type of the base image dependency.
39    """
40
41    BUILD_TIME = "BuildTime"
42    RUN_TIME = "RunTime"
43
44class BaseImageTriggerType(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
45    """The type of the auto trigger for base image dependency updates.
46    """
47
48    ALL = "All"
49    RUNTIME = "Runtime"
50
51class OS(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
52    """The operating system type required for the run.
53    """
54
55    WINDOWS = "Windows"
56    LINUX = "Linux"
57
58class ProvisioningState(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
59    """The provisioning state of a run.
60    """
61
62    CREATING = "Creating"
63    UPDATING = "Updating"
64    DELETING = "Deleting"
65    SUCCEEDED = "Succeeded"
66    FAILED = "Failed"
67    CANCELED = "Canceled"
68
69class RunStatus(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
70    """The current status of the run.
71    """
72
73    QUEUED = "Queued"
74    STARTED = "Started"
75    RUNNING = "Running"
76    SUCCEEDED = "Succeeded"
77    FAILED = "Failed"
78    CANCELED = "Canceled"
79    ERROR = "Error"
80    TIMEOUT = "Timeout"
81
82class RunType(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
83    """The type of run.
84    """
85
86    QUICK_BUILD = "QuickBuild"
87    QUICK_RUN = "QuickRun"
88    AUTO_BUILD = "AutoBuild"
89    AUTO_RUN = "AutoRun"
90
91class SecretObjectType(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
92    """The type of the secret object which determines how the value of the secret object has to be
93    interpreted.
94    """
95
96    OPAQUE = "Opaque"
97
98class SourceControlType(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
99    """The type of source control service.
100    """
101
102    GITHUB = "Github"
103    VISUAL_STUDIO_TEAM_SERVICE = "VisualStudioTeamService"
104
105class SourceRegistryLoginMode(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
106    """The authentication mode which determines the source registry login scope. The credentials for
107    the source registry
108    will be generated using the given scope. These credentials will be used to login to
109    the source registry during the run.
110    """
111
112    NONE = "None"
113    DEFAULT = "Default"
114
115class SourceTriggerEvent(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
116
117    COMMIT = "commit"
118    PULLREQUEST = "pullrequest"
119
120class StepType(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
121    """The type of the step.
122    """
123
124    DOCKER = "Docker"
125    FILE_TASK = "FileTask"
126    ENCODED_TASK = "EncodedTask"
127
128class TaskStatus(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
129    """The current status of task.
130    """
131
132    DISABLED = "Disabled"
133    ENABLED = "Enabled"
134
135class TokenType(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
136    """The type of Auth token.
137    """
138
139    PAT = "PAT"
140    O_AUTH = "OAuth"
141
142class TriggerStatus(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
143    """The current status of trigger.
144    """
145
146    DISABLED = "Disabled"
147    ENABLED = "Enabled"
148
149class Variant(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
150    """Variant of the CPU.
151    """
152
153    V6 = "v6"
154    V7 = "v7"
155    V8 = "v8"
156