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 Action(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
30    """The action of virtual network rule.
31    """
32
33    ALLOW = "Allow"
34
35class ActionsRequired(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
36    """A message indicating if changes on the service provider require any updates on the consumer.
37    """
38
39    NONE = "None"
40    RECREATE = "Recreate"
41
42class ConnectionStatus(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
43    """The private link service connection status.
44    """
45
46    APPROVED = "Approved"
47    PENDING = "Pending"
48    REJECTED = "Rejected"
49    DISCONNECTED = "Disconnected"
50
51class CreatedByType(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
52    """The type of identity that created the resource.
53    """
54
55    USER = "User"
56    APPLICATION = "Application"
57    MANAGED_IDENTITY = "ManagedIdentity"
58    KEY = "Key"
59
60class DefaultAction(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
61    """The default action of allow or deny when no other rules match.
62    """
63
64    ALLOW = "Allow"
65    DENY = "Deny"
66
67class EncryptionStatus(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
68    """Indicates whether or not the encryption is enabled for container registry.
69    """
70
71    ENABLED = "enabled"
72    DISABLED = "disabled"
73
74class ImportMode(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
75    """When Force, any existing target tags will be overwritten. When NoForce, any existing target
76    tags will fail the operation before any copying begins.
77    """
78
79    NO_FORCE = "NoForce"
80    FORCE = "Force"
81
82class LastModifiedByType(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
83    """The type of identity that last modified the resource.
84    """
85
86    USER = "User"
87    APPLICATION = "Application"
88    MANAGED_IDENTITY = "ManagedIdentity"
89    KEY = "Key"
90
91class NetworkRuleBypassOptions(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
92    """Whether to allow trusted Azure services to access a network restricted registry.
93    """
94
95    AZURE_SERVICES = "AzureServices"
96    NONE = "None"
97
98class PasswordName(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
99    """The password name.
100    """
101
102    PASSWORD = "password"
103    PASSWORD2 = "password2"
104
105class PipelineOptions(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
106
107    OVERWRITE_TAGS = "OverwriteTags"
108    OVERWRITE_BLOBS = "OverwriteBlobs"
109    DELETE_SOURCE_BLOB_ON_SUCCESS = "DeleteSourceBlobOnSuccess"
110    CONTINUE_ON_ERRORS = "ContinueOnErrors"
111
112class PipelineRunSourceType(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
113    """The type of the source.
114    """
115
116    AZURE_STORAGE_BLOB = "AzureStorageBlob"
117
118class PipelineRunTargetType(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
119    """The type of the target.
120    """
121
122    AZURE_STORAGE_BLOB = "AzureStorageBlob"
123
124class PipelineSourceType(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
125    """The type of source for the import pipeline.
126    """
127
128    AZURE_STORAGE_BLOB_CONTAINER = "AzureStorageBlobContainer"
129
130class PolicyStatus(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
131    """The value that indicates whether the policy is enabled or not.
132    """
133
134    ENABLED = "enabled"
135    DISABLED = "disabled"
136
137class ProvisioningState(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
138    """The provisioning state of the pipeline at the time the operation was called.
139    """
140
141    CREATING = "Creating"
142    UPDATING = "Updating"
143    DELETING = "Deleting"
144    SUCCEEDED = "Succeeded"
145    FAILED = "Failed"
146    CANCELED = "Canceled"
147
148class PublicNetworkAccess(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
149    """Whether or not public network access is allowed for the container registry.
150    """
151
152    ENABLED = "Enabled"
153    DISABLED = "Disabled"
154
155class RegistryUsageUnit(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
156    """The unit of measurement.
157    """
158
159    COUNT = "Count"
160    BYTES = "Bytes"
161
162class ResourceIdentityType(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
163    """The identity type.
164    """
165
166    SYSTEM_ASSIGNED = "SystemAssigned"
167    USER_ASSIGNED = "UserAssigned"
168    SYSTEM_ASSIGNED_USER_ASSIGNED = "SystemAssigned, UserAssigned"
169    NONE = "None"
170
171class SkuName(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
172    """The SKU name of the container registry. Required for registry creation.
173    """
174
175    CLASSIC = "Classic"
176    BASIC = "Basic"
177    STANDARD = "Standard"
178    PREMIUM = "Premium"
179
180class SkuTier(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
181    """The SKU tier based on the SKU name.
182    """
183
184    CLASSIC = "Classic"
185    BASIC = "Basic"
186    STANDARD = "Standard"
187    PREMIUM = "Premium"
188
189class TriggerStatus(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
190    """The current status of the source trigger.
191    """
192
193    ENABLED = "Enabled"
194    DISABLED = "Disabled"
195
196class TrustPolicyType(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
197    """The type of trust policy.
198    """
199
200    NOTARY = "Notary"
201
202class WebhookAction(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
203
204    PUSH = "push"
205    DELETE = "delete"
206    QUARANTINE = "quarantine"
207    CHART_PUSH = "chart_push"
208    CHART_DELETE = "chart_delete"
209
210class WebhookStatus(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
211    """The status of the webhook at the time the operation was called.
212    """
213
214    ENABLED = "enabled"
215    DISABLED = "disabled"
216