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 ResourceIdentityType(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): 70 """The identity type. 71 """ 72 73 SYSTEM_ASSIGNED = "SystemAssigned" 74 USER_ASSIGNED = "UserAssigned" 75 SYSTEM_ASSIGNED_USER_ASSIGNED = "SystemAssigned, UserAssigned" 76 NONE = "None" 77 78class RunStatus(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): 79 """The current status of the run. 80 """ 81 82 QUEUED = "Queued" 83 STARTED = "Started" 84 RUNNING = "Running" 85 SUCCEEDED = "Succeeded" 86 FAILED = "Failed" 87 CANCELED = "Canceled" 88 ERROR = "Error" 89 TIMEOUT = "Timeout" 90 91class RunType(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): 92 """The type of run. 93 """ 94 95 QUICK_BUILD = "QuickBuild" 96 QUICK_RUN = "QuickRun" 97 AUTO_BUILD = "AutoBuild" 98 AUTO_RUN = "AutoRun" 99 100class SecretObjectType(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): 101 """The type of the secret object which determines how the value of the secret object has to be 102 interpreted. 103 """ 104 105 OPAQUE = "Opaque" 106 VAULTSECRET = "Vaultsecret" 107 108class SourceControlType(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): 109 """The type of source control service. 110 """ 111 112 GITHUB = "Github" 113 VISUAL_STUDIO_TEAM_SERVICE = "VisualStudioTeamService" 114 115class SourceRegistryLoginMode(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): 116 """The authentication mode which determines the source registry login scope. The credentials for 117 the source registry 118 will be generated using the given scope. These credentials will be used to login to 119 the source registry during the run. 120 """ 121 122 NONE = "None" 123 DEFAULT = "Default" 124 125class SourceTriggerEvent(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): 126 127 COMMIT = "commit" 128 PULLREQUEST = "pullrequest" 129 130class StepType(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): 131 """The type of the step. 132 """ 133 134 DOCKER = "Docker" 135 FILE_TASK = "FileTask" 136 ENCODED_TASK = "EncodedTask" 137 138class TaskStatus(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): 139 """The current status of task. 140 """ 141 142 DISABLED = "Disabled" 143 ENABLED = "Enabled" 144 145class TokenType(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): 146 """The type of Auth token. 147 """ 148 149 PAT = "PAT" 150 O_AUTH = "OAuth" 151 152class TriggerStatus(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): 153 """The current status of trigger. 154 """ 155 156 DISABLED = "Disabled" 157 ENABLED = "Enabled" 158 159class Variant(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): 160 """Variant of the CPU. 161 """ 162 163 V6 = "v6" 164 V7 = "v7" 165 V8 = "v8" 166