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 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 41class CertificatePermissions(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): 42 43 GET = "get" 44 LIST = "list" 45 DELETE = "delete" 46 CREATE = "create" 47 IMPORT_ENUM = "import" 48 UPDATE = "update" 49 MANAGECONTACTS = "managecontacts" 50 GETISSUERS = "getissuers" 51 LISTISSUERS = "listissuers" 52 SETISSUERS = "setissuers" 53 DELETEISSUERS = "deleteissuers" 54 MANAGEISSUERS = "manageissuers" 55 RECOVER = "recover" 56 PURGE = "purge" 57 BACKUP = "backup" 58 RESTORE = "restore" 59 60class CreateMode(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): 61 """The vault's create mode to indicate whether the vault need to be recovered or not. 62 """ 63 64 RECOVER = "recover" 65 DEFAULT = "default" 66 67class IdentityType(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): 68 """The type of identity. 69 """ 70 71 USER = "User" 72 APPLICATION = "Application" 73 MANAGED_IDENTITY = "ManagedIdentity" 74 KEY = "Key" 75 76class KeyPermissions(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): 77 78 ENCRYPT = "encrypt" 79 DECRYPT = "decrypt" 80 WRAP_KEY = "wrapKey" 81 UNWRAP_KEY = "unwrapKey" 82 SIGN = "sign" 83 VERIFY = "verify" 84 GET = "get" 85 LIST = "list" 86 CREATE = "create" 87 UPDATE = "update" 88 IMPORT_ENUM = "import" 89 DELETE = "delete" 90 BACKUP = "backup" 91 RESTORE = "restore" 92 RECOVER = "recover" 93 PURGE = "purge" 94 RELEASE = "release" 95 96class ManagedHsmSkuFamily(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): 97 """SKU Family of the managed HSM Pool 98 """ 99 100 B = "B" 101 102class ManagedHsmSkuName(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): 103 """SKU of the managed HSM Pool 104 """ 105 106 STANDARD_B1 = "Standard_B1" 107 CUSTOM_B32 = "Custom_B32" 108 109class NetworkRuleAction(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): 110 """The default action when no rule from ipRules and from virtualNetworkRules match. This is only 111 used after the bypass property has been evaluated. 112 """ 113 114 ALLOW = "Allow" 115 DENY = "Deny" 116 117class NetworkRuleBypassOptions(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): 118 """Tells what traffic can bypass network rules. This can be 'AzureServices' or 'None'. If not 119 specified the default is 'AzureServices'. 120 """ 121 122 AZURE_SERVICES = "AzureServices" 123 NONE = "None" 124 125class PrivateEndpointConnectionProvisioningState(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): 126 """The current provisioning state. 127 """ 128 129 SUCCEEDED = "Succeeded" 130 CREATING = "Creating" 131 UPDATING = "Updating" 132 DELETING = "Deleting" 133 FAILED = "Failed" 134 DISCONNECTED = "Disconnected" 135 136class PrivateEndpointServiceConnectionStatus(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): 137 """The private endpoint connection status. 138 """ 139 140 PENDING = "Pending" 141 APPROVED = "Approved" 142 REJECTED = "Rejected" 143 DISCONNECTED = "Disconnected" 144 145class ProvisioningState(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): 146 """Provisioning state. 147 """ 148 149 #: The managed HSM Pool has been full provisioned. 150 SUCCEEDED = "Succeeded" 151 #: The managed HSM Pool is currently being provisioned. 152 PROVISIONING = "Provisioning" 153 #: Provisioning of the managed HSM Pool has failed. 154 FAILED = "Failed" 155 #: The managed HSM Pool is currently being updated. 156 UPDATING = "Updating" 157 #: The managed HSM Pool is currently being deleted. 158 DELETING = "Deleting" 159 #: The managed HSM pool is ready for normal use. 160 ACTIVATED = "Activated" 161 #: The managed HSM pool is waiting for a security domain restore action. 162 SECURITY_DOMAIN_RESTORE = "SecurityDomainRestore" 163 #: The managed HSM pool is being restored from full HSM backup. 164 RESTORING = "Restoring" 165 166class PublicNetworkAccess(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): 167 """Control permission for data plane traffic coming from public networks while private endpoint is 168 enabled. 169 """ 170 171 ENABLED = "Enabled" 172 DISABLED = "Disabled" 173 174class Reason(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): 175 """The reason that a vault name could not be used. The Reason element is only returned if 176 NameAvailable is false. 177 """ 178 179 ACCOUNT_NAME_INVALID = "AccountNameInvalid" 180 ALREADY_EXISTS = "AlreadyExists" 181 182class SecretPermissions(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): 183 184 GET = "get" 185 LIST = "list" 186 SET = "set" 187 DELETE = "delete" 188 BACKUP = "backup" 189 RESTORE = "restore" 190 RECOVER = "recover" 191 PURGE = "purge" 192 193class SkuFamily(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): 194 """SKU family name 195 """ 196 197 A = "A" 198 199class SkuName(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): 200 """SKU name to specify whether the key vault is a standard vault or a premium vault. 201 """ 202 203 STANDARD = "standard" 204 PREMIUM = "premium" 205 206class StoragePermissions(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): 207 208 GET = "get" 209 LIST = "list" 210 DELETE = "delete" 211 SET = "set" 212 UPDATE = "update" 213 REGENERATEKEY = "regeneratekey" 214 RECOVER = "recover" 215 PURGE = "purge" 216 BACKUP = "backup" 217 RESTORE = "restore" 218 SETSAS = "setsas" 219 LISTSAS = "listsas" 220 GETSAS = "getsas" 221 DELETESAS = "deletesas" 222 223class VaultProvisioningState(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): 224 """Provisioning state of the vault. 225 """ 226 227 SUCCEEDED = "Succeeded" 228 REGISTERING_DNS = "RegisteringDns" 229