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    THREE_HUNDRED_EIGHTY_SIX = "386"
36    ARM = "arm"
37    ARM64 = "arm64"
38
39class BaseImageDependencyType(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
40    """The type of the base image dependency.
41    """
42
43    BUILD_TIME = "BuildTime"
44    RUN_TIME = "RunTime"
45
46class BaseImageTriggerType(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
47    """The type of the auto trigger for base image dependency updates.
48    """
49
50    ALL = "All"
51    RUNTIME = "Runtime"
52
53class CreatedByType(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
54    """The type of identity that created the resource.
55    """
56
57    USER = "User"
58    APPLICATION = "Application"
59    MANAGED_IDENTITY = "ManagedIdentity"
60    KEY = "Key"
61
62class LastModifiedByType(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
63    """The type of identity that last modified the resource.
64    """
65
66    USER = "User"
67    APPLICATION = "Application"
68    MANAGED_IDENTITY = "ManagedIdentity"
69    KEY = "Key"
70
71class OS(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
72    """The OS of agent machine
73    """
74
75    WINDOWS = "Windows"
76    LINUX = "Linux"
77
78class ProvisioningState(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
79    """The provisioning state of this agent pool
80    """
81
82    CREATING = "Creating"
83    UPDATING = "Updating"
84    DELETING = "Deleting"
85    SUCCEEDED = "Succeeded"
86    FAILED = "Failed"
87    CANCELED = "Canceled"
88
89class ResourceIdentityType(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
90    """The identity type.
91    """
92
93    SYSTEM_ASSIGNED = "SystemAssigned"
94    USER_ASSIGNED = "UserAssigned"
95    SYSTEM_ASSIGNED_USER_ASSIGNED = "SystemAssigned, UserAssigned"
96    NONE = "None"
97
98class RunStatus(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
99    """The current status of the run.
100    """
101
102    QUEUED = "Queued"
103    STARTED = "Started"
104    RUNNING = "Running"
105    SUCCEEDED = "Succeeded"
106    FAILED = "Failed"
107    CANCELED = "Canceled"
108    ERROR = "Error"
109    TIMEOUT = "Timeout"
110
111class RunType(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
112    """The type of run.
113    """
114
115    QUICK_BUILD = "QuickBuild"
116    QUICK_RUN = "QuickRun"
117    AUTO_BUILD = "AutoBuild"
118    AUTO_RUN = "AutoRun"
119
120class SecretObjectType(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
121    """The type of the secret object which determines how the value of the secret object has to be
122    interpreted.
123    """
124
125    OPAQUE = "Opaque"
126    VAULTSECRET = "Vaultsecret"
127
128class SourceControlType(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
129    """The type of source control service.
130    """
131
132    GITHUB = "Github"
133    VISUAL_STUDIO_TEAM_SERVICE = "VisualStudioTeamService"
134
135class SourceRegistryLoginMode(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
136    """The authentication mode which determines the source registry login scope. The credentials for
137    the source registry
138    will be generated using the given scope. These credentials will be used to login to
139    the source registry during the run.
140    """
141
142    NONE = "None"
143    DEFAULT = "Default"
144
145class SourceTriggerEvent(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
146
147    COMMIT = "commit"
148    PULLREQUEST = "pullrequest"
149
150class StepType(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
151    """The type of the step.
152    """
153
154    DOCKER = "Docker"
155    FILE_TASK = "FileTask"
156    ENCODED_TASK = "EncodedTask"
157
158class TaskStatus(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
159    """The current status of task.
160    """
161
162    DISABLED = "Disabled"
163    ENABLED = "Enabled"
164
165class TokenType(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
166    """The type of Auth token.
167    """
168
169    PAT = "PAT"
170    O_AUTH = "OAuth"
171
172class TriggerStatus(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
173    """The current status of trigger.
174    """
175
176    DISABLED = "Disabled"
177    ENABLED = "Enabled"
178
179class UpdateTriggerPayloadType(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
180    """Type of Payload body for Base image update triggers.
181    """
182
183    DEFAULT = "Default"
184    TOKEN = "Token"
185
186class Variant(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
187    """Variant of the CPU.
188    """
189
190    V6 = "v6"
191    V7 = "v7"
192    V8 = "v8"
193