# 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
from azure.core import CaseInsensitiveEnumMeta


class AdministratorName(str, Enum, metaclass=CaseInsensitiveEnumMeta):
    """AdministratorName."""

    ACTIVE_DIRECTORY = "ActiveDirectory"


class AdministratorType(str, Enum, metaclass=CaseInsensitiveEnumMeta):
    """Type of the sever administrator."""

    ACTIVE_DIRECTORY = "ActiveDirectory"


class AdvancedThreatProtectionName(str, Enum, metaclass=CaseInsensitiveEnumMeta):
    """AdvancedThreatProtectionName."""

    DEFAULT = "Default"


class AdvancedThreatProtectionState(str, Enum, metaclass=CaseInsensitiveEnumMeta):
    """Specifies the state of the Advanced Threat Protection, whether it is enabled or disabled or a
    state has not been applied yet on the specific database or server.
    """

    NEW = "New"
    ENABLED = "Enabled"
    DISABLED = "Disabled"


class AdvisorStatus(str, Enum, metaclass=CaseInsensitiveEnumMeta):
    """Gets the status of availability of this advisor to customers. Possible values are 'GA',
    'PublicPreview', 'LimitedPublicPreview' and 'PrivatePreview'.
    """

    GA = "GA"
    PUBLIC_PREVIEW = "PublicPreview"
    LIMITED_PUBLIC_PREVIEW = "LimitedPublicPreview"
    PRIVATE_PREVIEW = "PrivatePreview"


class AggregationFunctionType(str, Enum, metaclass=CaseInsensitiveEnumMeta):
    """AggregationFunctionType."""

    AVG = "avg"
    MIN = "min"
    MAX = "max"
    STDEV = "stdev"
    SUM = "sum"


class AlwaysEncryptedEnclaveType(str, Enum, metaclass=CaseInsensitiveEnumMeta):
    """Type of enclave requested on the database i.e. Default or VBS enclaves."""

    DEFAULT = "Default"
    VBS = "VBS"


class AuthenticationName(str, Enum, metaclass=CaseInsensitiveEnumMeta):
    """AuthenticationName."""

    DEFAULT = "Default"


class AutoExecuteStatus(str, Enum, metaclass=CaseInsensitiveEnumMeta):
    """Gets the auto-execute status (whether to let the system execute the recommendations) of this
    advisor. Possible values are 'Enabled' and 'Disabled'.
    """

    ENABLED = "Enabled"
    DISABLED = "Disabled"
    DEFAULT = "Default"


class AutoExecuteStatusInheritedFrom(str, Enum, metaclass=CaseInsensitiveEnumMeta):
    """Gets the resource from which current value of auto-execute status is inherited. Auto-execute
    status can be set on (and inherited from) different levels in the resource hierarchy. Possible
    values are 'Subscription', 'Server', 'ElasticPool', 'Database' and 'Default' (when status is
    not explicitly set on any level).
    """

    DEFAULT = "Default"
    SUBSCRIPTION = "Subscription"
    SERVER = "Server"
    ELASTIC_POOL = "ElasticPool"
    DATABASE = "Database"


class AutomaticTuningDisabledReason(str, Enum, metaclass=CaseInsensitiveEnumMeta):
    """Reason description if desired and actual state are different."""

    DEFAULT = "Default"
    DISABLED = "Disabled"
    AUTO_CONFIGURED = "AutoConfigured"
    INHERITED_FROM_SERVER = "InheritedFromServer"
    QUERY_STORE_OFF = "QueryStoreOff"
    QUERY_STORE_READ_ONLY = "QueryStoreReadOnly"
    NOT_SUPPORTED = "NotSupported"


class AutomaticTuningMode(str, Enum, metaclass=CaseInsensitiveEnumMeta):
    """Automatic tuning desired state."""

    INHERIT = "Inherit"
    CUSTOM = "Custom"
    AUTO = "Auto"
    UNSPECIFIED = "Unspecified"


class AutomaticTuningOptionModeActual(str, Enum, metaclass=CaseInsensitiveEnumMeta):
    """Automatic tuning option actual state."""

    OFF = "Off"
    ON = "On"


class AutomaticTuningOptionModeDesired(str, Enum, metaclass=CaseInsensitiveEnumMeta):
    """Automatic tuning option desired state."""

    OFF = "Off"
    ON = "On"
    DEFAULT = "Default"


class AutomaticTuningServerMode(str, Enum, metaclass=CaseInsensitiveEnumMeta):
    """Automatic tuning desired state."""

    CUSTOM = "Custom"
    AUTO = "Auto"
    UNSPECIFIED = "Unspecified"


class AutomaticTuningServerReason(str, Enum, metaclass=CaseInsensitiveEnumMeta):
    """Reason description if desired and actual state are different."""

    DEFAULT = "Default"
    DISABLED = "Disabled"
    AUTO_CONFIGURED = "AutoConfigured"


class BackupStorageRedundancy(str, Enum, metaclass=CaseInsensitiveEnumMeta):
    """The storage redundancy type of the copied backup."""

    GEO = "Geo"
    LOCAL = "Local"
    ZONE = "Zone"
    GEO_ZONE = "GeoZone"


class BaselineName(str, Enum, metaclass=CaseInsensitiveEnumMeta):
    """BaselineName."""

    DEFAULT = "default"


class BlobAuditingPolicyState(str, Enum, metaclass=CaseInsensitiveEnumMeta):
    """Specifies the state of the audit. If state is Enabled, storageEndpoint or
    isAzureMonitorTargetEnabled are required.
    """

    ENABLED = "Enabled"
    DISABLED = "Disabled"


class CapabilityGroup(str, Enum, metaclass=CaseInsensitiveEnumMeta):
    """CapabilityGroup."""

    SUPPORTED_EDITIONS = "supportedEditions"
    SUPPORTED_ELASTIC_POOL_EDITIONS = "supportedElasticPoolEditions"
    SUPPORTED_MANAGED_INSTANCE_VERSIONS = "supportedManagedInstanceVersions"
    SUPPORTED_INSTANCE_POOL_EDITIONS = "supportedInstancePoolEditions"
    SUPPORTED_MANAGED_INSTANCE_EDITIONS = "supportedManagedInstanceEditions"


class CapabilityStatus(str, Enum, metaclass=CaseInsensitiveEnumMeta):
    """The status of the capability."""

    VISIBLE = "Visible"
    AVAILABLE = "Available"
    DEFAULT = "Default"
    DISABLED = "Disabled"


class CatalogCollationType(str, Enum, metaclass=CaseInsensitiveEnumMeta):
    """Collation of the metadata catalog."""

    DATABASE_DEFAULT = "DATABASE_DEFAULT"
    SQL_LATIN1_GENERAL_CP1_CI_AS = "SQL_Latin1_General_CP1_CI_AS"


class CheckNameAvailabilityReason(str, Enum, metaclass=CaseInsensitiveEnumMeta):
    """The reason code explaining why the name is unavailable. Will be undefined if the name is
    available.
    """

    INVALID = "Invalid"
    ALREADY_EXISTS = "AlreadyExists"


class ColumnDataType(str, Enum, metaclass=CaseInsensitiveEnumMeta):
    """The column data type."""

    IMAGE = "image"
    TEXT = "text"
    UNIQUEIDENTIFIER = "uniqueidentifier"
    DATE = "date"
    TIME = "time"
    DATETIME2 = "datetime2"
    DATETIMEOFFSET = "datetimeoffset"
    TINYINT = "tinyint"
    SMALLINT = "smallint"
    INT = "int"
    SMALLDATETIME = "smalldatetime"
    REAL = "real"
    MONEY = "money"
    DATETIME = "datetime"
    FLOAT = "float"
    SQL_VARIANT = "sql_variant"
    NTEXT = "ntext"
    BIT = "bit"
    DECIMAL = "decimal"
    NUMERIC = "numeric"
    SMALLMONEY = "smallmoney"
    BIGINT = "bigint"
    HIERARCHYID = "hierarchyid"
    GEOMETRY = "geometry"
    GEOGRAPHY = "geography"
    VARBINARY = "varbinary"
    VARCHAR = "varchar"
    BINARY = "binary"
    CHAR = "char"
    TIMESTAMP = "timestamp"
    NVARCHAR = "nvarchar"
    NCHAR = "nchar"
    XML = "xml"
    SYSNAME = "sysname"


class ConnectionPolicyName(str, Enum, metaclass=CaseInsensitiveEnumMeta):
    """ConnectionPolicyName."""

    DEFAULT = "default"


class CreatedByType(str, Enum, metaclass=CaseInsensitiveEnumMeta):
    """The type of identity that created the resource."""

    USER = "User"
    APPLICATION = "Application"
    MANAGED_IDENTITY = "ManagedIdentity"
    KEY = "Key"


class CreateMode(str, Enum, metaclass=CaseInsensitiveEnumMeta):
    """Specifies the mode of database creation.

    Default: regular database creation.

    Copy: creates a database as a copy of an existing database. sourceDatabaseId must be specified
    as the resource ID of the source database.

    Secondary: creates a database as a secondary replica of an existing database. sourceDatabaseId
    must be specified as the resource ID of the existing primary database.

    PointInTimeRestore: Creates a database by restoring a point in time backup of an existing
    database. sourceDatabaseId must be specified as the resource ID of the existing database, and
    restorePointInTime must be specified.

    Recovery: Creates a database by restoring a geo-replicated backup. sourceDatabaseId must be
    specified as the recoverable database resource ID to restore.

    Restore: Creates a database by restoring a backup of a deleted database. sourceDatabaseId must
    be specified. If sourceDatabaseId is the database's original resource ID, then
    sourceDatabaseDeletionDate must be specified. Otherwise sourceDatabaseId must be the restorable
    dropped database resource ID and sourceDatabaseDeletionDate is ignored. restorePointInTime may
    also be specified to restore from an earlier point in time.

    RestoreLongTermRetentionBackup: Creates a database by restoring from a long term retention
    vault. recoveryServicesRecoveryPointResourceId must be specified as the recovery point resource
    ID.

    Copy, Secondary, and RestoreLongTermRetentionBackup are not supported for DataWarehouse
    edition.
    """

    DEFAULT = "Default"
    COPY = "Copy"
    SECONDARY = "Secondary"
    POINT_IN_TIME_RESTORE = "PointInTimeRestore"
    RESTORE = "Restore"
    RECOVERY = "Recovery"
    RESTORE_EXTERNAL_BACKUP = "RestoreExternalBackup"
    RESTORE_EXTERNAL_BACKUP_SECONDARY = "RestoreExternalBackupSecondary"
    RESTORE_LONG_TERM_RETENTION_BACKUP = "RestoreLongTermRetentionBackup"
    ONLINE_SECONDARY = "OnlineSecondary"


class DatabaseIdentityType(str, Enum, metaclass=CaseInsensitiveEnumMeta):
    """The identity type."""

    NONE = "None"
    USER_ASSIGNED = "UserAssigned"


class DatabaseLicenseType(str, Enum, metaclass=CaseInsensitiveEnumMeta):
    """The license type to apply for this database. ``LicenseIncluded`` if you need a license, or
    ``BasePrice`` if you have a license and are eligible for the Azure Hybrid Benefit.
    """

    LICENSE_INCLUDED = "LicenseIncluded"
    BASE_PRICE = "BasePrice"


class DatabaseReadScale(str, Enum, metaclass=CaseInsensitiveEnumMeta):
    """The state of read-only routing. If enabled, connections that have application intent set to
    readonly in their connection string may be routed to a readonly secondary replica in the same
    region. Not applicable to a Hyperscale database within an elastic pool.
    """

    ENABLED = "Enabled"
    DISABLED = "Disabled"


class DatabaseState(str, Enum, metaclass=CaseInsensitiveEnumMeta):
    """DatabaseState."""

    ALL = "All"
    LIVE = "Live"
    DELETED = "Deleted"


class DatabaseStatus(str, Enum, metaclass=CaseInsensitiveEnumMeta):
    """The status of the database."""

    ONLINE = "Online"
    RESTORING = "Restoring"
    RECOVERY_PENDING = "RecoveryPending"
    RECOVERING = "Recovering"
    SUSPECT = "Suspect"
    OFFLINE = "Offline"
    STANDBY = "Standby"
    SHUTDOWN = "Shutdown"
    EMERGENCY_MODE = "EmergencyMode"
    AUTO_CLOSED = "AutoClosed"
    COPYING = "Copying"
    CREATING = "Creating"
    INACCESSIBLE = "Inaccessible"
    OFFLINE_SECONDARY = "OfflineSecondary"
    PAUSING = "Pausing"
    PAUSED = "Paused"
    RESUMING = "Resuming"
    SCALING = "Scaling"
    OFFLINE_CHANGING_DW_PERFORMANCE_TIERS = "OfflineChangingDwPerformanceTiers"
    ONLINE_CHANGING_DW_PERFORMANCE_TIERS = "OnlineChangingDwPerformanceTiers"
    DISABLED = "Disabled"
    STOPPING = "Stopping"
    STOPPED = "Stopped"
    STARTING = "Starting"


class DataMaskingFunction(str, Enum, metaclass=CaseInsensitiveEnumMeta):
    """The masking function that is used for the data masking rule."""

    DEFAULT = "Default"
    CCN = "CCN"
    EMAIL = "Email"
    NUMBER = "Number"
    SSN = "SSN"
    TEXT = "Text"


class DataMaskingRuleState(str, Enum, metaclass=CaseInsensitiveEnumMeta):
    """The rule state. Used to delete a rule. To delete an existing rule, specify the schemaName,
    tableName, columnName, maskingFunction, and specify ruleState as disabled. However, if the rule
    doesn't already exist, the rule will be created with ruleState set to enabled, regardless of
    the provided value of ruleState.
    """

    DISABLED = "Disabled"
    ENABLED = "Enabled"


class DataMaskingState(str, Enum, metaclass=CaseInsensitiveEnumMeta):
    """The state of the data masking policy."""

    DISABLED = "Disabled"
    ENABLED = "Enabled"


class DataWarehouseUserActivityName(str, Enum, metaclass=CaseInsensitiveEnumMeta):
    """DataWarehouseUserActivityName."""

    CURRENT = "current"


class DayOfWeek(str, Enum, metaclass=CaseInsensitiveEnumMeta):
    """Day of maintenance window."""

    SUNDAY = "Sunday"
    MONDAY = "Monday"
    TUESDAY = "Tuesday"
    WEDNESDAY = "Wednesday"
    THURSDAY = "Thursday"
    FRIDAY = "Friday"
    SATURDAY = "Saturday"


class DevOpsAuditingSettingsName(str, Enum, metaclass=CaseInsensitiveEnumMeta):
    """DevOpsAuditingSettingsName."""

    DEFAULT = "Default"


class DiffBackupIntervalInHours(int, Enum, metaclass=CaseInsensitiveEnumMeta):
    """The differential backup interval in hours. This is how many interval hours between each
    differential backup will be supported. This is only applicable to live databases but not
    dropped databases.
    """

    TWELVE = 12
    TWENTY_FOUR = 24


class DNSRefreshOperationStatus(str, Enum, metaclass=CaseInsensitiveEnumMeta):
    """The status of the DNS refresh operation."""

    SUCCEEDED = "Succeeded"
    FAILED = "Failed"
    IN_PROGRESS = "InProgress"


class DtcName(str, Enum, metaclass=CaseInsensitiveEnumMeta):
    """DtcName."""

    CURRENT = "current"


class ElasticPoolLicenseType(str, Enum, metaclass=CaseInsensitiveEnumMeta):
    """The license type to apply for this elastic pool."""

    LICENSE_INCLUDED = "LicenseIncluded"
    BASE_PRICE = "BasePrice"


class ElasticPoolState(str, Enum, metaclass=CaseInsensitiveEnumMeta):
    """The state of the elastic pool."""

    CREATING = "Creating"
    READY = "Ready"
    DISABLED = "Disabled"


class EncryptionProtectorName(str, Enum, metaclass=CaseInsensitiveEnumMeta):
    """EncryptionProtectorName."""

    CURRENT = "current"


class FailoverGroupReplicationRole(str, Enum, metaclass=CaseInsensitiveEnumMeta):
    """Local replication role of the failover group instance."""

    PRIMARY = "Primary"
    SECONDARY = "Secondary"


class GeoBackupPolicyName(str, Enum, metaclass=CaseInsensitiveEnumMeta):
    """GeoBackupPolicyName."""

    DEFAULT = "Default"


class GeoBackupPolicyState(str, Enum, metaclass=CaseInsensitiveEnumMeta):
    """The state of the geo backup policy."""

    DISABLED = "Disabled"
    ENABLED = "Enabled"


class IdentityType(str, Enum, metaclass=CaseInsensitiveEnumMeta):
    """The identity type. Set this to 'SystemAssigned' in order to automatically create and assign an
    Azure Active Directory principal for the resource.
    """

    NONE = "None"
    SYSTEM_ASSIGNED = "SystemAssigned"
    USER_ASSIGNED = "UserAssigned"
    SYSTEM_ASSIGNED_USER_ASSIGNED = "SystemAssigned,UserAssigned"


class ImplementationMethod(str, Enum, metaclass=CaseInsensitiveEnumMeta):
    """Gets the method in which this recommended action can be manually implemented. e.g., TSql,
    AzurePowerShell.
    """

    T_SQL = "TSql"
    AZURE_POWER_SHELL = "AzurePowerShell"


class InstanceFailoverGroupReplicationRole(str, Enum, metaclass=CaseInsensitiveEnumMeta):
    """Local replication role of the failover group instance."""

    PRIMARY = "Primary"
    SECONDARY = "Secondary"


class InstancePoolLicenseType(str, Enum, metaclass=CaseInsensitiveEnumMeta):
    """The license type. Possible values are 'LicenseIncluded' (price for SQL license is included) and
    'BasePrice' (without SQL license price).
    """

    LICENSE_INCLUDED = "LicenseIncluded"
    BASE_PRICE = "BasePrice"


class IsRetryable(str, Enum, metaclass=CaseInsensitiveEnumMeta):
    """Gets whether the error could be ignored and recommended action could be retried. Possible
    values are: Yes/No.
    """

    YES = "Yes"
    NO = "No"


class JobAgentState(str, Enum, metaclass=CaseInsensitiveEnumMeta):
    """The state of the job agent."""

    CREATING = "Creating"
    READY = "Ready"
    UPDATING = "Updating"
    DELETING = "Deleting"
    DISABLED = "Disabled"


class JobExecutionLifecycle(str, Enum, metaclass=CaseInsensitiveEnumMeta):
    """The detailed state of the job execution."""

    CREATED = "Created"
    IN_PROGRESS = "InProgress"
    WAITING_FOR_CHILD_JOB_EXECUTIONS = "WaitingForChildJobExecutions"
    WAITING_FOR_RETRY = "WaitingForRetry"
    SUCCEEDED = "Succeeded"
    SUCCEEDED_WITH_SKIPPED = "SucceededWithSkipped"
    FAILED = "Failed"
    TIMED_OUT = "TimedOut"
    CANCELED = "Canceled"
    SKIPPED = "Skipped"


class JobScheduleType(str, Enum, metaclass=CaseInsensitiveEnumMeta):
    """Schedule interval type."""

    ONCE = "Once"
    RECURRING = "Recurring"


class JobStepActionSource(str, Enum, metaclass=CaseInsensitiveEnumMeta):
    """The source of the action to execute."""

    INLINE = "Inline"


class JobStepActionType(str, Enum, metaclass=CaseInsensitiveEnumMeta):
    """Type of action being executed by the job step."""

    T_SQL = "TSql"


class JobStepOutputType(str, Enum, metaclass=CaseInsensitiveEnumMeta):
    """The output destination type."""

    SQL_DATABASE = "SqlDatabase"


class JobTargetGroupMembershipType(str, Enum, metaclass=CaseInsensitiveEnumMeta):
    """Whether the target is included or excluded from the group."""

    INCLUDE = "Include"
    EXCLUDE = "Exclude"


class JobTargetType(str, Enum, metaclass=CaseInsensitiveEnumMeta):
    """The type of the target."""

    TARGET_GROUP = "TargetGroup"
    SQL_DATABASE = "SqlDatabase"
    SQL_ELASTIC_POOL = "SqlElasticPool"
    SQL_SHARD_MAP = "SqlShardMap"
    SQL_SERVER = "SqlServer"


class LedgerDigestUploadsName(str, Enum, metaclass=CaseInsensitiveEnumMeta):
    """LedgerDigestUploadsName."""

    CURRENT = "current"


class LedgerDigestUploadsState(str, Enum, metaclass=CaseInsensitiveEnumMeta):
    """Specifies the state of ledger digest upload."""

    ENABLED = "Enabled"
    DISABLED = "Disabled"


class LogSizeUnit(str, Enum, metaclass=CaseInsensitiveEnumMeta):
    """The units that the limit is expressed in."""

    MEGABYTES = "Megabytes"
    GIGABYTES = "Gigabytes"
    TERABYTES = "Terabytes"
    PETABYTES = "Petabytes"
    PERCENT = "Percent"


class LongTermRetentionPolicyName(str, Enum, metaclass=CaseInsensitiveEnumMeta):
    """LongTermRetentionPolicyName."""

    DEFAULT = "default"


class ManagedDatabaseCreateMode(str, Enum, metaclass=CaseInsensitiveEnumMeta):
    """Managed database create mode. PointInTimeRestore: Create a database by restoring a point in
    time backup of an existing database. SourceDatabaseName, SourceManagedInstanceName and
    PointInTime must be specified. RestoreExternalBackup: Create a database by restoring from
    external backup files. Collation, StorageContainerUri and StorageContainerSasToken must be
    specified. Recovery: Creates a database by restoring a geo-replicated backup.
    RecoverableDatabaseId must be specified as the recoverable database resource ID to restore.
    RestoreLongTermRetentionBackup: Create a database by restoring from a long term retention
    backup (longTermRetentionBackupResourceId required).
    """

    DEFAULT = "Default"
    RESTORE_EXTERNAL_BACKUP = "RestoreExternalBackup"
    POINT_IN_TIME_RESTORE = "PointInTimeRestore"
    RECOVERY = "Recovery"
    RESTORE_LONG_TERM_RETENTION_BACKUP = "RestoreLongTermRetentionBackup"


class ManagedDatabaseStatus(str, Enum, metaclass=CaseInsensitiveEnumMeta):
    """Status of the database."""

    ONLINE = "Online"
    OFFLINE = "Offline"
    SHUTDOWN = "Shutdown"
    CREATING = "Creating"
    INACCESSIBLE = "Inaccessible"
    RESTORING = "Restoring"
    UPDATING = "Updating"
    STOPPING = "Stopping"
    STOPPED = "Stopped"
    STARTING = "Starting"
    DB_MOVING = "DbMoving"
    DB_COPYING = "DbCopying"


class ManagedInstanceAdministratorType(str, Enum, metaclass=CaseInsensitiveEnumMeta):
    """Type of the managed instance administrator."""

    ACTIVE_DIRECTORY = "ActiveDirectory"


class ManagedInstanceLicenseType(str, Enum, metaclass=CaseInsensitiveEnumMeta):
    """The license type. Possible values are 'LicenseIncluded' (regular price inclusive of a new SQL
    license) and 'BasePrice' (discounted AHB price for bringing your own SQL licenses).
    """

    LICENSE_INCLUDED = "LicenseIncluded"
    BASE_PRICE = "BasePrice"


class ManagedInstanceLongTermRetentionPolicyName(str, Enum, metaclass=CaseInsensitiveEnumMeta):
    """ManagedInstanceLongTermRetentionPolicyName."""

    DEFAULT = "default"


class ManagedInstancePropertiesProvisioningState(str, Enum, metaclass=CaseInsensitiveEnumMeta):
    """ManagedInstancePropertiesProvisioningState."""

    CREATING = "Creating"
    DELETING = "Deleting"
    UPDATING = "Updating"
    UNKNOWN = "Unknown"
    SUCCEEDED = "Succeeded"
    FAILED = "Failed"
    ACCEPTED = "Accepted"
    CREATED = "Created"
    DELETED = "Deleted"
    UNRECOGNIZED = "Unrecognized"
    RUNNING = "Running"
    CANCELED = "Canceled"
    NOT_SPECIFIED = "NotSpecified"
    REGISTERING = "Registering"
    TIMED_OUT = "TimedOut"


class ManagedInstanceProxyOverride(str, Enum, metaclass=CaseInsensitiveEnumMeta):
    """Connection type used for connecting to the instance."""

    PROXY = "Proxy"
    REDIRECT = "Redirect"
    DEFAULT = "Default"


class ManagedServerCreateMode(str, Enum, metaclass=CaseInsensitiveEnumMeta):
    """Specifies the mode of database creation.

    Default: Regular instance creation.

    Restore: Creates an instance by restoring a set of backups to specific point in time.
    RestorePointInTime and SourceManagedInstanceId must be specified.
    """

    DEFAULT = "Default"
    POINT_IN_TIME_RESTORE = "PointInTimeRestore"


class ManagedShortTermRetentionPolicyName(str, Enum, metaclass=CaseInsensitiveEnumMeta):
    """ManagedShortTermRetentionPolicyName."""

    DEFAULT = "default"


class ManagementOperationState(str, Enum, metaclass=CaseInsensitiveEnumMeta):
    """The operation state."""

    PENDING = "Pending"
    IN_PROGRESS = "InProgress"
    SUCCEEDED = "Succeeded"
    FAILED = "Failed"
    CANCEL_IN_PROGRESS = "CancelInProgress"
    CANCELLED = "Cancelled"


class MaxSizeUnit(str, Enum, metaclass=CaseInsensitiveEnumMeta):
    """The units that the limit is expressed in."""

    MEGABYTES = "Megabytes"
    GIGABYTES = "Gigabytes"
    TERABYTES = "Terabytes"
    PETABYTES = "Petabytes"


class MetricType(str, Enum, metaclass=CaseInsensitiveEnumMeta):
    """MetricType."""

    CPU = "cpu"
    IO = "io"
    LOG_IO = "logIo"
    DURATION = "duration"
    DTU = "dtu"


class MoveOperationMode(str, Enum, metaclass=CaseInsensitiveEnumMeta):
    """Operation mode."""

    MOVE = "Move"
    COPY = "Copy"


class OperationMode(str, Enum, metaclass=CaseInsensitiveEnumMeta):
    """Operation Mode."""

    POLYBASE_IMPORT = "PolybaseImport"


class OperationOrigin(str, Enum, metaclass=CaseInsensitiveEnumMeta):
    """The intended executor of the operation."""

    USER = "user"
    SYSTEM = "system"


class PauseDelayTimeUnit(str, Enum, metaclass=CaseInsensitiveEnumMeta):
    """Unit of time that delay is expressed in."""

    MINUTES = "Minutes"


class PerformanceLevelUnit(str, Enum, metaclass=CaseInsensitiveEnumMeta):
    """Unit type used to measure performance level."""

    DTU = "DTU"
    V_CORES = "VCores"


class PrimaryAggregationType(str, Enum, metaclass=CaseInsensitiveEnumMeta):
    """The primary aggregation type defining how metric values are displayed."""

    NONE = "None"
    AVERAGE = "Average"
    COUNT = "Count"
    MINIMUM = "Minimum"
    MAXIMUM = "Maximum"
    TOTAL = "Total"


class PrincipalType(str, Enum, metaclass=CaseInsensitiveEnumMeta):
    """Principal Type of the sever administrator."""

    USER = "User"
    GROUP = "Group"
    APPLICATION = "Application"


class PrivateEndpointProvisioningState(str, Enum, metaclass=CaseInsensitiveEnumMeta):
    """State of the private endpoint connection."""

    APPROVING = "Approving"
    READY = "Ready"
    DROPPING = "Dropping"
    FAILED = "Failed"
    REJECTING = "Rejecting"


class PrivateLinkServiceConnectionStateActionsRequire(str, Enum, metaclass=CaseInsensitiveEnumMeta):
    """The actions required for private link service connection."""

    NONE = "None"


class PrivateLinkServiceConnectionStateStatus(str, Enum, metaclass=CaseInsensitiveEnumMeta):
    """The private link service connection status."""

    APPROVED = "Approved"
    PENDING = "Pending"
    REJECTED = "Rejected"
    DISCONNECTED = "Disconnected"


class ProvisioningState(str, Enum, metaclass=CaseInsensitiveEnumMeta):
    """The ARM provisioning state of the job execution."""

    CREATED = "Created"
    IN_PROGRESS = "InProgress"
    SUCCEEDED = "Succeeded"
    FAILED = "Failed"
    CANCELED = "Canceled"


class QueryMetricUnitType(str, Enum, metaclass=CaseInsensitiveEnumMeta):
    """The unit of the metric."""

    PERCENTAGE = "percentage"
    KB = "KB"
    MICROSECONDS = "microseconds"
    COUNT = "count"


class QueryTimeGrainType(str, Enum, metaclass=CaseInsensitiveEnumMeta):
    """Interval type (length)."""

    PT1_H = "PT1H"
    P1_D = "P1D"


class ReadOnlyEndpointFailoverPolicy(str, Enum, metaclass=CaseInsensitiveEnumMeta):
    """Failover policy of the read-only endpoint for the failover group."""

    DISABLED = "Disabled"
    ENABLED = "Enabled"


class ReadWriteEndpointFailoverPolicy(str, Enum, metaclass=CaseInsensitiveEnumMeta):
    """Failover policy of the read-write endpoint for the failover group. If failoverPolicy is
    Automatic then failoverWithDataLossGracePeriodMinutes is required.
    """

    MANUAL = "Manual"
    AUTOMATIC = "Automatic"


class RecommendedActionCurrentState(str, Enum, metaclass=CaseInsensitiveEnumMeta):
    """Current state the recommended action is in. Some commonly used states are: Active      ->
    recommended action is active and no action has been taken yet. Pending     -> recommended
    action is approved for and is awaiting execution. Executing   -> recommended action is being
    applied on the user database. Verifying   -> recommended action was applied and is being
    verified of its usefulness by the system. Success     -> recommended action was applied and
    improvement found during verification. Pending Revert  -> verification found little or no
    improvement so recommended action is queued for revert or user has manually reverted. Reverting
    -> changes made while applying recommended action are being reverted on the user database.
    Reverted    -> successfully reverted the changes made by recommended action on user database.
    Ignored     -> user explicitly ignored/discarded the recommended action.
    """

    ACTIVE = "Active"
    PENDING = "Pending"
    EXECUTING = "Executing"
    VERIFYING = "Verifying"
    PENDING_REVERT = "PendingRevert"
    REVERT_CANCELLED = "RevertCancelled"
    REVERTING = "Reverting"
    REVERTED = "Reverted"
    IGNORED = "Ignored"
    EXPIRED = "Expired"
    MONITORING = "Monitoring"
    RESOLVED = "Resolved"
    SUCCESS = "Success"
    ERROR = "Error"


class RecommendedActionInitiatedBy(str, Enum, metaclass=CaseInsensitiveEnumMeta):
    """Gets if approval for applying this recommended action was given by user/system."""

    USER = "User"
    SYSTEM = "System"


class RecommendedSensitivityLabelUpdateKind(str, Enum, metaclass=CaseInsensitiveEnumMeta):
    """RecommendedSensitivityLabelUpdateKind."""

    ENABLE = "enable"
    DISABLE = "disable"


class ReplicationLinkType(str, Enum, metaclass=CaseInsensitiveEnumMeta):
    """Link type (GEO, NAMED, STANDBY)."""

    GEO = "GEO"
    NAMED = "NAMED"
    STANDBY = "STANDBY"


class ReplicationMode(str, Enum, metaclass=CaseInsensitiveEnumMeta):
    """The replication mode of a distributed availability group. Parameter will be ignored during link
    creation.
    """

    ASYNC = "Async"
    SYNC = "Sync"


class ReplicationRole(str, Enum, metaclass=CaseInsensitiveEnumMeta):
    """Local replication role."""

    PRIMARY = "Primary"
    SECONDARY = "Secondary"
    NON_READABLE_SECONDARY = "NonReadableSecondary"
    SOURCE = "Source"
    COPY = "Copy"


class ReplicationState(str, Enum, metaclass=CaseInsensitiveEnumMeta):
    """Replication state (PENDING, SEEDING, CATCHUP, SUSPENDED)."""

    PENDING = "PENDING"
    SEEDING = "SEEDING"
    CATCH_UP = "CATCH_UP"
    SUSPENDED = "SUSPENDED"


class ReplicaType(str, Enum, metaclass=CaseInsensitiveEnumMeta):
    """ReplicaType."""

    PRIMARY = "Primary"
    READABLE_SECONDARY = "ReadableSecondary"


class RestoreDetailsName(str, Enum, metaclass=CaseInsensitiveEnumMeta):
    """RestoreDetailsName."""

    DEFAULT = "Default"


class RestorePointType(str, Enum, metaclass=CaseInsensitiveEnumMeta):
    """The type of restore point."""

    CONTINUOUS = "CONTINUOUS"
    DISCRETE = "DISCRETE"


class RuleSeverity(str, Enum, metaclass=CaseInsensitiveEnumMeta):
    """SQL Vulnerability Assessment rule severity."""

    HIGH = "High"
    MEDIUM = "Medium"
    LOW = "Low"
    INFORMATIONAL = "Informational"
    OBSOLETE = "Obsolete"


class RuleStatus(str, Enum, metaclass=CaseInsensitiveEnumMeta):
    """SQL Vulnerability Assessment baseline status."""

    NON_FINDING = "NonFinding"
    FINDING = "Finding"
    INTERNAL_ERROR = "InternalError"


class RuleType(str, Enum, metaclass=CaseInsensitiveEnumMeta):
    """SQL Vulnerability Assessment rule type."""

    BINARY = "Binary"
    BASELINE_EXPECTED = "BaselineExpected"
    POSITIVE_LIST = "PositiveList"
    NEGATIVE_LIST = "NegativeList"


class SampleName(str, Enum, metaclass=CaseInsensitiveEnumMeta):
    """The name of the sample schema to apply when creating this database."""

    ADVENTURE_WORKS_LT = "AdventureWorksLT"
    WIDE_WORLD_IMPORTERS_STD = "WideWorldImportersStd"
    WIDE_WORLD_IMPORTERS_FULL = "WideWorldImportersFull"


class SecondaryInstanceType(str, Enum, metaclass=CaseInsensitiveEnumMeta):
    """Type of the geo-secondary instance. Set 'Standby' if the instance is used as a DR option only."""

    GEO = "Geo"
    STANDBY = "Standby"


class SecondaryType(str, Enum, metaclass=CaseInsensitiveEnumMeta):
    """The secondary type of the database if it is a secondary.  Valid values are Geo, Named and
    Standby.
    """

    GEO = "Geo"
    NAMED = "Named"
    STANDBY = "Standby"


class SecurityAlertPolicyName(str, Enum, metaclass=CaseInsensitiveEnumMeta):
    """SecurityAlertPolicyName."""

    DEFAULT = "Default"


class SecurityAlertPolicyState(str, Enum, metaclass=CaseInsensitiveEnumMeta):
    """Specifies the state of the policy, whether it is enabled or disabled or a policy has not been
    applied yet on the specific database.
    """

    NEW = "New"
    ENABLED = "Enabled"
    DISABLED = "Disabled"


class SecurityAlertsPolicyState(str, Enum, metaclass=CaseInsensitiveEnumMeta):
    """Specifies the state of the policy, whether it is enabled or disabled or a policy has not been
    applied yet on the specific database.
    """

    ENABLED = "Enabled"
    DISABLED = "Disabled"


class SecurityEventType(str, Enum, metaclass=CaseInsensitiveEnumMeta):
    """The type of the security event."""

    UNDEFINED = "Undefined"
    SQL_INJECTION_VULNERABILITY = "SqlInjectionVulnerability"
    SQL_INJECTION_EXPLOIT = "SqlInjectionExploit"


class SensitivityLabelRank(str, Enum, metaclass=CaseInsensitiveEnumMeta):
    """SensitivityLabelRank."""

    NONE = "None"
    LOW = "Low"
    MEDIUM = "Medium"
    HIGH = "High"
    CRITICAL = "Critical"


class SensitivityLabelSource(str, Enum, metaclass=CaseInsensitiveEnumMeta):
    """SensitivityLabelSource."""

    CURRENT = "current"
    RECOMMENDED = "recommended"


class SensitivityLabelUpdateKind(str, Enum, metaclass=CaseInsensitiveEnumMeta):
    """SensitivityLabelUpdateKind."""

    SET = "set"
    REMOVE = "remove"


class ServerConnectionType(str, Enum, metaclass=CaseInsensitiveEnumMeta):
    """The server connection type."""

    DEFAULT = "Default"
    REDIRECT = "Redirect"
    PROXY = "Proxy"


class ServerKeyType(str, Enum, metaclass=CaseInsensitiveEnumMeta):
    """The encryption protector type like 'ServiceManaged', 'AzureKeyVault'."""

    SERVICE_MANAGED = "ServiceManaged"
    AZURE_KEY_VAULT = "AzureKeyVault"


class ServerNetworkAccessFlag(str, Enum, metaclass=CaseInsensitiveEnumMeta):
    """Whether or not public endpoint access is allowed for this server.  Value is optional but if
    passed in, must be 'Enabled' or 'Disabled'.
    """

    ENABLED = "Enabled"
    DISABLED = "Disabled"


class ServerTrustGroupPropertiesTrustScopesItem(str, Enum, metaclass=CaseInsensitiveEnumMeta):
    """ServerTrustGroupPropertiesTrustScopesItem."""

    GLOBAL_TRANSACTIONS = "GlobalTransactions"
    SERVICE_BROKER = "ServiceBroker"


class ServerWorkspaceFeature(str, Enum, metaclass=CaseInsensitiveEnumMeta):
    """Whether or not existing server has a workspace created and if it allows connection from
    workspace.
    """

    CONNECTED = "Connected"
    DISCONNECTED = "Disconnected"


class ServiceObjectiveName(str, Enum, metaclass=CaseInsensitiveEnumMeta):
    """The serviceLevelObjective for SLO usage metric."""

    SYSTEM = "System"
    SYSTEM0 = "System0"
    SYSTEM1 = "System1"
    SYSTEM2 = "System2"
    SYSTEM3 = "System3"
    SYSTEM4 = "System4"
    SYSTEM2_L = "System2L"
    SYSTEM3_L = "System3L"
    SYSTEM4_L = "System4L"
    FREE = "Free"
    BASIC = "Basic"
    S0 = "S0"
    S1 = "S1"
    S2 = "S2"
    S3 = "S3"
    S4 = "S4"
    S6 = "S6"
    S7 = "S7"
    S9 = "S9"
    S12 = "S12"
    P1 = "P1"
    P2 = "P2"
    P3 = "P3"
    P4 = "P4"
    P6 = "P6"
    P11 = "P11"
    P15 = "P15"
    PRS1 = "PRS1"
    PRS2 = "PRS2"
    PRS4 = "PRS4"
    PRS6 = "PRS6"
    DW100 = "DW100"
    DW200 = "DW200"
    DW300 = "DW300"
    DW400 = "DW400"
    DW500 = "DW500"
    DW600 = "DW600"
    DW1000 = "DW1000"
    DW1200 = "DW1200"
    DW1000_C = "DW1000c"
    DW1500 = "DW1500"
    DW1500_C = "DW1500c"
    DW2000 = "DW2000"
    DW2000_C = "DW2000c"
    DW3000 = "DW3000"
    DW2500_C = "DW2500c"
    DW3000_C = "DW3000c"
    DW6000 = "DW6000"
    DW5000_C = "DW5000c"
    DW6000_C = "DW6000c"
    DW7500_C = "DW7500c"
    DW10000_C = "DW10000c"
    DW15000_C = "DW15000c"
    DW30000_C = "DW30000c"
    DS100 = "DS100"
    DS200 = "DS200"
    DS300 = "DS300"
    DS400 = "DS400"
    DS500 = "DS500"
    DS600 = "DS600"
    DS1000 = "DS1000"
    DS1200 = "DS1200"
    DS1500 = "DS1500"
    DS2000 = "DS2000"
    ELASTIC_POOL = "ElasticPool"


class ServicePrincipalType(str, Enum, metaclass=CaseInsensitiveEnumMeta):
    """Service principal type."""

    NONE = "None"
    SYSTEM_ASSIGNED = "SystemAssigned"


class ShortTermRetentionPolicyName(str, Enum, metaclass=CaseInsensitiveEnumMeta):
    """ShortTermRetentionPolicyName."""

    DEFAULT = "default"


class SqlAgentConfigurationPropertiesState(str, Enum, metaclass=CaseInsensitiveEnumMeta):
    """The state of Sql Agent."""

    ENABLED = "Enabled"
    DISABLED = "Disabled"


class SQLVulnerabilityAssessmentName(str, Enum, metaclass=CaseInsensitiveEnumMeta):
    """SQLVulnerabilityAssessmentName."""

    DEFAULT = "default"


class SqlVulnerabilityAssessmentName(str, Enum, metaclass=CaseInsensitiveEnumMeta):
    """SqlVulnerabilityAssessmentName."""

    DEFAULT = "default"


class SqlVulnerabilityAssessmentState(str, Enum, metaclass=CaseInsensitiveEnumMeta):
    """Specifies the state of the SQL Vulnerability Assessment, whether it is enabled or disabled or a
    state has not been applied yet on the specific database or server.
    """

    ENABLED = "Enabled"
    DISABLED = "Disabled"


class StorageCapabilityStorageAccountType(str, Enum, metaclass=CaseInsensitiveEnumMeta):
    """The storage account type for the database's backups."""

    GRS = "GRS"
    LRS = "LRS"
    ZRS = "ZRS"


class StorageKeyType(str, Enum, metaclass=CaseInsensitiveEnumMeta):
    """Storage key type."""

    SHARED_ACCESS_KEY = "SharedAccessKey"
    STORAGE_ACCESS_KEY = "StorageAccessKey"


class SyncAgentState(str, Enum, metaclass=CaseInsensitiveEnumMeta):
    """State of the sync agent."""

    ONLINE = "Online"
    OFFLINE = "Offline"
    NEVER_CONNECTED = "NeverConnected"


class SyncConflictResolutionPolicy(str, Enum, metaclass=CaseInsensitiveEnumMeta):
    """Conflict resolution policy of the sync group."""

    HUB_WIN = "HubWin"
    MEMBER_WIN = "MemberWin"


class SyncDirection(str, Enum, metaclass=CaseInsensitiveEnumMeta):
    """Sync direction of the sync member."""

    BIDIRECTIONAL = "Bidirectional"
    ONE_WAY_MEMBER_TO_HUB = "OneWayMemberToHub"
    ONE_WAY_HUB_TO_MEMBER = "OneWayHubToMember"


class SyncGroupLogType(str, Enum, metaclass=CaseInsensitiveEnumMeta):
    """Type of the sync group log."""

    ALL = "All"
    ERROR = "Error"
    WARNING = "Warning"
    SUCCESS = "Success"


class SyncGroupState(str, Enum, metaclass=CaseInsensitiveEnumMeta):
    """Sync state of the sync group."""

    NOT_READY = "NotReady"
    ERROR = "Error"
    WARNING = "Warning"
    PROGRESSING = "Progressing"
    GOOD = "Good"


class SyncGroupsType(str, Enum, metaclass=CaseInsensitiveEnumMeta):
    """SyncGroupsType."""

    ALL = "All"
    ERROR = "Error"
    WARNING = "Warning"
    SUCCESS = "Success"


class SyncMemberDbType(str, Enum, metaclass=CaseInsensitiveEnumMeta):
    """Type of the sync agent linked database."""

    AZURE_SQL_DATABASE = "AzureSqlDatabase"
    SQL_SERVER_DATABASE = "SqlServerDatabase"


class SyncMemberState(str, Enum, metaclass=CaseInsensitiveEnumMeta):
    """Sync state of the sync member."""

    SYNC_IN_PROGRESS = "SyncInProgress"
    SYNC_SUCCEEDED = "SyncSucceeded"
    SYNC_FAILED = "SyncFailed"
    DISABLED_TOMBSTONE_CLEANUP = "DisabledTombstoneCleanup"
    DISABLED_BACKUP_RESTORE = "DisabledBackupRestore"
    SYNC_SUCCEEDED_WITH_WARNINGS = "SyncSucceededWithWarnings"
    SYNC_CANCELLING = "SyncCancelling"
    SYNC_CANCELLED = "SyncCancelled"
    UN_PROVISIONED = "UnProvisioned"
    PROVISIONING = "Provisioning"
    PROVISIONED = "Provisioned"
    PROVISION_FAILED = "ProvisionFailed"
    DE_PROVISIONING = "DeProvisioning"
    DE_PROVISIONED = "DeProvisioned"
    DE_PROVISION_FAILED = "DeProvisionFailed"
    REPROVISIONING = "Reprovisioning"
    REPROVISION_FAILED = "ReprovisionFailed"
    UN_REPROVISIONED = "UnReprovisioned"


class TableTemporalType(str, Enum, metaclass=CaseInsensitiveEnumMeta):
    """The table temporal type."""

    NON_TEMPORAL_TABLE = "NonTemporalTable"
    HISTORY_TABLE = "HistoryTable"
    SYSTEM_VERSIONED_TEMPORAL_TABLE = "SystemVersionedTemporalTable"


class TransparentDataEncryptionName(str, Enum, metaclass=CaseInsensitiveEnumMeta):
    """TransparentDataEncryptionName."""

    CURRENT = "current"


class TransparentDataEncryptionState(str, Enum, metaclass=CaseInsensitiveEnumMeta):
    """Specifies the state of the transparent data encryption."""

    ENABLED = "Enabled"
    DISABLED = "Disabled"


class UnitDefinitionType(str, Enum, metaclass=CaseInsensitiveEnumMeta):
    """The unit of the metric."""

    COUNT = "Count"
    BYTES = "Bytes"
    SECONDS = "Seconds"
    PERCENT = "Percent"
    COUNT_PER_SECOND = "CountPerSecond"
    BYTES_PER_SECOND = "BytesPerSecond"


class UnitType(str, Enum, metaclass=CaseInsensitiveEnumMeta):
    """The unit of the metric."""

    COUNT = "count"
    BYTES = "bytes"
    SECONDS = "seconds"
    PERCENT = "percent"
    COUNT_PER_SECOND = "countPerSecond"
    BYTES_PER_SECOND = "bytesPerSecond"


class UpsertManagedServerOperationStepStatus(str, Enum, metaclass=CaseInsensitiveEnumMeta):
    """UpsertManagedServerOperationStepStatus."""

    NOT_STARTED = "NotStarted"
    IN_PROGRESS = "InProgress"
    SLOWED_DOWN = "SlowedDown"
    COMPLETED = "Completed"
    FAILED = "Failed"
    CANCELED = "Canceled"


class VirtualNetworkRuleState(str, Enum, metaclass=CaseInsensitiveEnumMeta):
    """Virtual Network Rule State."""

    INITIALIZING = "Initializing"
    IN_PROGRESS = "InProgress"
    READY = "Ready"
    FAILED = "Failed"
    DELETING = "Deleting"
    UNKNOWN = "Unknown"


class VulnerabilityAssessmentName(str, Enum, metaclass=CaseInsensitiveEnumMeta):
    """VulnerabilityAssessmentName."""

    DEFAULT = "default"


class VulnerabilityAssessmentPolicyBaselineName(str, Enum, metaclass=CaseInsensitiveEnumMeta):
    """VulnerabilityAssessmentPolicyBaselineName."""

    MASTER = "master"
    DEFAULT = "default"


class VulnerabilityAssessmentScanState(str, Enum, metaclass=CaseInsensitiveEnumMeta):
    """The scan status."""

    PASSED = "Passed"
    FAILED = "Failed"
    FAILED_TO_RUN = "FailedToRun"
    IN_PROGRESS = "InProgress"


class VulnerabilityAssessmentScanTriggerType(str, Enum, metaclass=CaseInsensitiveEnumMeta):
    """The scan trigger type."""

    ON_DEMAND = "OnDemand"
    RECURRING = "Recurring"
