Source code for azure.mgmt.rdbms.postgresql.models._postgre_sql_management_client_enums

# coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
# --------------------------------------------------------------------------

from enum import Enum, EnumMeta
from six import with_metaclass

class _CaseInsensitiveEnumMeta(EnumMeta):
    def __getitem__(self, name):
        return super().__getitem__(name.upper())

    def __getattr__(cls, name):
        """Return the enum member matching `name`
        We use __getattr__ instead of descriptors or inserting into the enum
        class' __dict__ in order to support `name` and `value` being both
        properties for enum members (which live in the class' __dict__) and
        enum members themselves.
        """
        try:
            return cls._member_map_[name.upper()]
        except KeyError:
            raise AttributeError(name)


[docs]class CreateMode(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): """The mode to create a new server. """ DEFAULT = "Default" POINT_IN_TIME_RESTORE = "PointInTimeRestore" GEO_RESTORE = "GeoRestore" REPLICA = "Replica"
[docs]class GeoRedundantBackup(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): """Enable Geo-redundant or not for server backup. """ ENABLED = "Enabled" DISABLED = "Disabled"
[docs]class IdentityType(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): """The identity type. Set this to 'SystemAssigned' in order to automatically create and assign an Azure Active Directory principal for the resource. """ SYSTEM_ASSIGNED = "SystemAssigned"
[docs]class InfrastructureEncryption(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): """Add a second layer of encryption for your data using new encryption algorithm which gives additional data protection. Value is optional but if passed in, must be 'Disabled' or 'Enabled'. """ #: Default value for single layer of encryption for data at rest. ENABLED = "Enabled" #: Additional (2nd) layer of encryption for data at rest. DISABLED = "Disabled"
[docs]class MinimalTlsVersionEnum(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): """Enforce a minimal Tls version for the server. """ TLS1_0 = "TLS1_0" TLS1_1 = "TLS1_1" TLS1_2 = "TLS1_2" TLS_ENFORCEMENT_DISABLED = "TLSEnforcementDisabled"
[docs]class OperationOrigin(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): """The intended executor of the operation. """ NOT_SPECIFIED = "NotSpecified" USER = "user" SYSTEM = "system"
[docs]class PrivateEndpointProvisioningState(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): """State of the private endpoint connection. """ APPROVING = "Approving" READY = "Ready" DROPPING = "Dropping" FAILED = "Failed" REJECTING = "Rejecting"
[docs]class PrivateLinkServiceConnectionStateActionsRequire(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): """The actions required for private link service connection. """ NONE = "None"
[docs]class PrivateLinkServiceConnectionStateStatus(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): """The private link service connection status. """ APPROVED = "Approved" PENDING = "Pending" REJECTED = "Rejected" DISCONNECTED = "Disconnected"
[docs]class PublicNetworkAccessEnum(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): """Whether or not public network access is allowed for this server. Value is optional but if passed in, must be 'Enabled' or 'Disabled' """ ENABLED = "Enabled" DISABLED = "Disabled"
[docs]class SecurityAlertPolicyName(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): DEFAULT = "Default"
[docs]class ServerKeyType(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): """The key type like 'AzureKeyVault'. """ AZURE_KEY_VAULT = "AzureKeyVault"
[docs]class ServerSecurityAlertPolicyState(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): """Specifies the state of the policy, whether it is enabled or disabled. """ ENABLED = "Enabled" DISABLED = "Disabled"
[docs]class ServerState(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): """A state of a server that is visible to user. """ READY = "Ready" DROPPING = "Dropping" DISABLED = "Disabled" INACCESSIBLE = "Inaccessible"
[docs]class ServerVersion(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): """The version of a server. """ NINE5 = "9.5" NINE6 = "9.6" TEN = "10" TEN0 = "10.0" TEN2 = "10.2" ELEVEN = "11"
[docs]class SkuTier(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): """The tier of the particular SKU, e.g. Basic. """ BASIC = "Basic" GENERAL_PURPOSE = "GeneralPurpose" MEMORY_OPTIMIZED = "MemoryOptimized"
[docs]class SslEnforcementEnum(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): """Enable ssl enforcement or not when connect to server. """ ENABLED = "Enabled" DISABLED = "Disabled"
[docs]class StorageAutogrow(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): """Enable Storage Auto Grow. """ ENABLED = "Enabled" DISABLED = "Disabled"
[docs]class VirtualNetworkRuleState(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): """Virtual Network Rule State """ INITIALIZING = "Initializing" IN_PROGRESS = "InProgress" READY = "Ready" DELETING = "Deleting" UNKNOWN = "Unknown"