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 CreateMode(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): 30 """The mode to create a new server. 31 """ 32 33 DEFAULT = "Default" 34 POINT_IN_TIME_RESTORE = "PointInTimeRestore" 35 GEO_RESTORE = "GeoRestore" 36 REPLICA = "Replica" 37 38class GeoRedundantBackup(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): 39 """Enable Geo-redundant or not for server backup. 40 """ 41 42 ENABLED = "Enabled" 43 DISABLED = "Disabled" 44 45class IdentityType(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): 46 """The identity type. Set this to 'SystemAssigned' in order to automatically create and assign an 47 Azure Active Directory principal for the resource. 48 """ 49 50 SYSTEM_ASSIGNED = "SystemAssigned" 51 52class InfrastructureEncryption(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): 53 """Add a second layer of encryption for your data using new encryption algorithm which gives 54 additional data protection. Value is optional but if passed in, must be 'Disabled' or 55 'Enabled'. 56 """ 57 58 #: Default value for single layer of encryption for data at rest. 59 ENABLED = "Enabled" 60 #: Additional (2nd) layer of encryption for data at rest. 61 DISABLED = "Disabled" 62 63class MinimalTlsVersionEnum(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): 64 """Enforce a minimal Tls version for the server. 65 """ 66 67 TLS1_0 = "TLS1_0" 68 TLS1_1 = "TLS1_1" 69 TLS1_2 = "TLS1_2" 70 TLS_ENFORCEMENT_DISABLED = "TLSEnforcementDisabled" 71 72class OperationOrigin(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): 73 """The intended executor of the operation. 74 """ 75 76 NOT_SPECIFIED = "NotSpecified" 77 USER = "user" 78 SYSTEM = "system" 79 80class PrivateEndpointProvisioningState(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): 81 """State of the private endpoint connection. 82 """ 83 84 APPROVING = "Approving" 85 READY = "Ready" 86 DROPPING = "Dropping" 87 FAILED = "Failed" 88 REJECTING = "Rejecting" 89 90class PrivateLinkServiceConnectionStateActionsRequire(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): 91 """The actions required for private link service connection. 92 """ 93 94 NONE = "None" 95 96class PrivateLinkServiceConnectionStateStatus(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): 97 """The private link service connection status. 98 """ 99 100 APPROVED = "Approved" 101 PENDING = "Pending" 102 REJECTED = "Rejected" 103 DISCONNECTED = "Disconnected" 104 105class PublicNetworkAccessEnum(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): 106 """Whether or not public network access is allowed for this server. Value is optional but if 107 passed in, must be 'Enabled' or 'Disabled' 108 """ 109 110 ENABLED = "Enabled" 111 DISABLED = "Disabled" 112 113class QueryPerformanceInsightResetDataResultState(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): 114 """Indicates result of the operation. 115 """ 116 117 SUCCEEDED = "Succeeded" 118 FAILED = "Failed" 119 120class SecurityAlertPolicyName(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): 121 122 DEFAULT = "Default" 123 124class ServerKeyType(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): 125 """The key type like 'AzureKeyVault'. 126 """ 127 128 AZURE_KEY_VAULT = "AzureKeyVault" 129 130class ServerSecurityAlertPolicyState(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): 131 """Specifies the state of the policy, whether it is enabled or disabled. 132 """ 133 134 ENABLED = "Enabled" 135 DISABLED = "Disabled" 136 137class ServerState(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): 138 """A state of a server that is visible to user. 139 """ 140 141 READY = "Ready" 142 DROPPING = "Dropping" 143 DISABLED = "Disabled" 144 INACCESSIBLE = "Inaccessible" 145 146class ServerVersion(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): 147 """The version of a server. 148 """ 149 150 FIVE6 = "5.6" 151 FIVE7 = "5.7" 152 EIGHT0 = "8.0" 153 154class SkuTier(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): 155 """The tier of the particular SKU, e.g. Basic. 156 """ 157 158 BASIC = "Basic" 159 GENERAL_PURPOSE = "GeneralPurpose" 160 MEMORY_OPTIMIZED = "MemoryOptimized" 161 162class SslEnforcementEnum(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): 163 """Enable ssl enforcement or not when connect to server. 164 """ 165 166 ENABLED = "Enabled" 167 DISABLED = "Disabled" 168 169class StorageAutogrow(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): 170 """Enable Storage Auto Grow. 171 """ 172 173 ENABLED = "Enabled" 174 DISABLED = "Disabled" 175 176class VirtualNetworkRuleState(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): 177 """Virtual Network Rule State 178 """ 179 180 INITIALIZING = "Initializing" 181 IN_PROGRESS = "InProgress" 182 READY = "Ready" 183 DELETING = "Deleting" 184 UNKNOWN = "Unknown" 185