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 AccessPolicyUpdateKind(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
30
31    ADD = "add"
32    REPLACE = "replace"
33    REMOVE = "remove"
34
35class CertificatePermissions(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
36
37    GET = "get"
38    LIST = "list"
39    DELETE = "delete"
40    CREATE = "create"
41    IMPORT_ENUM = "import"
42    UPDATE = "update"
43    MANAGECONTACTS = "managecontacts"
44    GETISSUERS = "getissuers"
45    LISTISSUERS = "listissuers"
46    SETISSUERS = "setissuers"
47    DELETEISSUERS = "deleteissuers"
48    MANAGEISSUERS = "manageissuers"
49    RECOVER = "recover"
50    PURGE = "purge"
51    BACKUP = "backup"
52    RESTORE = "restore"
53
54class CreateMode(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
55    """The vault's create mode to indicate whether the vault need to be recovered or not.
56    """
57
58    RECOVER = "recover"
59    DEFAULT = "default"
60
61class KeyPermissions(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
62
63    ENCRYPT = "encrypt"
64    DECRYPT = "decrypt"
65    WRAP_KEY = "wrapKey"
66    UNWRAP_KEY = "unwrapKey"
67    SIGN = "sign"
68    VERIFY = "verify"
69    GET = "get"
70    LIST = "list"
71    CREATE = "create"
72    UPDATE = "update"
73    IMPORT_ENUM = "import"
74    DELETE = "delete"
75    BACKUP = "backup"
76    RESTORE = "restore"
77    RECOVER = "recover"
78    PURGE = "purge"
79
80class NetworkRuleAction(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
81    """The default action when no rule from ipRules and from virtualNetworkRules match. This is only
82    used after the bypass property has been evaluated.
83    """
84
85    ALLOW = "Allow"
86    DENY = "Deny"
87
88class NetworkRuleBypassOptions(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
89    """Tells what traffic can bypass network rules. This can be 'AzureServices' or 'None'.  If not
90    specified the default is 'AzureServices'.
91    """
92
93    AZURE_SERVICES = "AzureServices"
94    NONE = "None"
95
96class PrivateEndpointConnectionProvisioningState(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
97    """The current provisioning state.
98    """
99
100    SUCCEEDED = "Succeeded"
101    CREATING = "Creating"
102    UPDATING = "Updating"
103    DELETING = "Deleting"
104    FAILED = "Failed"
105    DISCONNECTED = "Disconnected"
106
107class PrivateEndpointServiceConnectionStatus(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
108    """The private endpoint connection status.
109    """
110
111    PENDING = "Pending"
112    APPROVED = "Approved"
113    REJECTED = "Rejected"
114    DISCONNECTED = "Disconnected"
115
116class Reason(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
117    """The reason that a vault name could not be used. The Reason element is only returned if
118    NameAvailable is false.
119    """
120
121    ACCOUNT_NAME_INVALID = "AccountNameInvalid"
122    ALREADY_EXISTS = "AlreadyExists"
123
124class SecretPermissions(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
125
126    GET = "get"
127    LIST = "list"
128    SET = "set"
129    DELETE = "delete"
130    BACKUP = "backup"
131    RESTORE = "restore"
132    RECOVER = "recover"
133    PURGE = "purge"
134
135class SkuFamily(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
136    """SKU family name
137    """
138
139    A = "A"
140
141class SkuName(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
142    """SKU name to specify whether the key vault is a standard vault or a premium vault.
143    """
144
145    STANDARD = "standard"
146    PREMIUM = "premium"
147
148class StoragePermissions(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
149
150    GET = "get"
151    LIST = "list"
152    DELETE = "delete"
153    SET = "set"
154    UPDATE = "update"
155    REGENERATEKEY = "regeneratekey"
156    RECOVER = "recover"
157    PURGE = "purge"
158    BACKUP = "backup"
159    RESTORE = "restore"
160    SETSAS = "setsas"
161    LISTSAS = "listsas"
162    GETSAS = "getsas"
163    DELETESAS = "deletesas"
164