# 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) Python 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 AccessRights(str, Enum, metaclass=CaseInsensitiveEnumMeta):
    """The permissions assigned to the shared access policy."""

    REGISTRY_READ = "RegistryRead"
    """RegistryRead."""
    REGISTRY_WRITE = "RegistryWrite"
    """RegistryWrite."""
    SERVICE_CONNECT = "ServiceConnect"
    """ServiceConnect."""
    DEVICE_CONNECT = "DeviceConnect"
    """DeviceConnect."""
    REGISTRY_READ_REGISTRY_WRITE = "RegistryRead, RegistryWrite"
    """RegistryRead, RegistryWrite."""
    REGISTRY_READ_SERVICE_CONNECT = "RegistryRead, ServiceConnect"
    """RegistryRead, ServiceConnect."""
    REGISTRY_READ_DEVICE_CONNECT = "RegistryRead, DeviceConnect"
    """RegistryRead, DeviceConnect."""
    REGISTRY_WRITE_SERVICE_CONNECT = "RegistryWrite, ServiceConnect"
    """RegistryWrite, ServiceConnect."""
    REGISTRY_WRITE_DEVICE_CONNECT = "RegistryWrite, DeviceConnect"
    """RegistryWrite, DeviceConnect."""
    SERVICE_CONNECT_DEVICE_CONNECT = "ServiceConnect, DeviceConnect"
    """ServiceConnect, DeviceConnect."""
    REGISTRY_READ_REGISTRY_WRITE_SERVICE_CONNECT = "RegistryRead, RegistryWrite, ServiceConnect"
    """RegistryRead, RegistryWrite, ServiceConnect."""
    REGISTRY_READ_REGISTRY_WRITE_DEVICE_CONNECT = "RegistryRead, RegistryWrite, DeviceConnect"
    """RegistryRead, RegistryWrite, DeviceConnect."""
    REGISTRY_READ_SERVICE_CONNECT_DEVICE_CONNECT = "RegistryRead, ServiceConnect, DeviceConnect"
    """RegistryRead, ServiceConnect, DeviceConnect."""
    REGISTRY_WRITE_SERVICE_CONNECT_DEVICE_CONNECT = "RegistryWrite, ServiceConnect, DeviceConnect"
    """RegistryWrite, ServiceConnect, DeviceConnect."""
    REGISTRY_READ_REGISTRY_WRITE_SERVICE_CONNECT_DEVICE_CONNECT = (
        "RegistryRead, RegistryWrite, ServiceConnect, DeviceConnect"
    )
    """RegistryRead, RegistryWrite, ServiceConnect, DeviceConnect."""


class AuthenticationType(str, Enum, metaclass=CaseInsensitiveEnumMeta):
    """Specifies authentication type being used for connecting to the storage account."""

    KEY_BASED = "keyBased"
    """keyBased."""
    IDENTITY_BASED = "identityBased"
    """identityBased."""


class Capabilities(str, Enum, metaclass=CaseInsensitiveEnumMeta):
    """The capabilities and features enabled for the IoT hub."""

    NONE = "None"
    """None."""
    DEVICE_MANAGEMENT = "DeviceManagement"
    """DeviceManagement."""


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

    USER = "User"
    """The entity was created by a user."""
    APPLICATION = "Application"
    """The entity was created by an application."""
    MANAGED_IDENTITY = "ManagedIdentity"
    """The entity was created by a managed identity."""
    KEY = "Key"
    """The entity was created by a key."""


class DefaultAction(str, Enum, metaclass=CaseInsensitiveEnumMeta):
    """Default Action for Network Rule Set."""

    DENY = "Deny"
    """Deny."""
    ALLOW = "Allow"
    """Allow."""


class EndpointHealthStatus(str, Enum, metaclass=CaseInsensitiveEnumMeta):
    """Health statuses have following meanings. The 'healthy' status shows that the endpoint is
    accepting messages as expected. The 'unhealthy' status shows that the endpoint is not accepting
    messages as expected and IoT Hub is retrying to send data to this endpoint. The status of an
    unhealthy endpoint will be updated to healthy when IoT Hub has established an eventually
    consistent state of health. The 'dead' status shows that the endpoint is not accepting
    messages, after IoT Hub retried sending messages for the retrial period. See IoT Hub metrics to
    identify errors and monitor issues with endpoints. The 'unknown' status shows that the IoT Hub
    has not established a connection with the endpoint. No messages have been delivered to or
    rejected from this endpoint.
    """

    UNKNOWN = "unknown"
    """unknown."""
    HEALTHY = "healthy"
    """healthy."""
    DEGRADED = "degraded"
    """degraded."""
    UNHEALTHY = "unhealthy"
    """unhealthy."""
    DEAD = "dead"
    """dead."""


class GatewayVersion(str, Enum, metaclass=CaseInsensitiveEnumMeta):
    """The IoT hub Gateway version."""

    V1 = "V1"
    """V1."""
    V2 = "V2"
    """V2."""


class IotHubNameUnavailabilityReason(str, Enum, metaclass=CaseInsensitiveEnumMeta):
    """The reason for unavailability."""

    INVALID = "Invalid"
    """Invalid."""
    ALREADY_EXISTS = "AlreadyExists"
    """AlreadyExists."""


class IotHubReplicaRoleType(str, Enum, metaclass=CaseInsensitiveEnumMeta):
    """The role of the region, can be either primary or secondary. The primary region is where the IoT
    hub is currently provisioned. The secondary region is the Azure disaster recovery (DR) paired
    region and also the region where the IoT hub can failover to.
    """

    PRIMARY = "primary"
    """primary."""
    SECONDARY = "secondary"
    """secondary."""


class IotHubScaleType(str, Enum, metaclass=CaseInsensitiveEnumMeta):
    """The type of the scaling enabled."""

    AUTOMATIC = "Automatic"
    """Automatic."""
    MANUAL = "Manual"
    """Manual."""
    NONE = "None"
    """None."""


class IotHubSku(str, Enum, metaclass=CaseInsensitiveEnumMeta):
    """The name of the SKU."""

    F1 = "F1"
    """F1."""
    S1 = "S1"
    """S1."""
    S2 = "S2"
    """S2."""
    S3 = "S3"
    """S3."""
    B1 = "B1"
    """B1."""
    B2 = "B2"
    """B2."""
    B3 = "B3"
    """B3."""
    GEN2 = "GEN2"
    """GEN2."""


class IotHubSkuTier(str, Enum, metaclass=CaseInsensitiveEnumMeta):
    """The billing tier for the IoT hub."""

    FREE = "Free"
    """Free."""
    STANDARD = "Standard"
    """Standard."""
    BASIC = "Basic"
    """Basic."""
    GENERATION2 = "Generation2"
    """Generation2."""


class IpFilterActionType(str, Enum, metaclass=CaseInsensitiveEnumMeta):
    """The desired action for requests captured by this rule."""

    ACCEPT = "Accept"
    """Accept."""
    REJECT = "Reject"
    """Reject."""


class IpVersion(str, Enum, metaclass=CaseInsensitiveEnumMeta):
    """This property specifies the IP Version the hub is currently utilizing."""

    IPV4 = "ipv4"
    """ipv4."""
    IPV6 = "ipv6"
    """ipv6."""
    IPV4_IPV6 = "ipv4ipv6"
    """ipv4ipv6."""


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

    UNKNOWN = "unknown"
    """unknown."""
    ENQUEUED = "enqueued"
    """enqueued."""
    RUNNING = "running"
    """running."""
    COMPLETED = "completed"
    """completed."""
    FAILED = "failed"
    """failed."""
    CANCELLED = "cancelled"
    """cancelled."""


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

    UNKNOWN = "unknown"
    """unknown."""
    EXPORT = "export"
    """export."""
    IMPORT = "import"
    """import."""
    BACKUP = "backup"
    """backup."""
    READ_DEVICE_PROPERTIES = "readDeviceProperties"
    """readDeviceProperties."""
    WRITE_DEVICE_PROPERTIES = "writeDeviceProperties"
    """writeDeviceProperties."""
    UPDATE_DEVICE_CONFIGURATION = "updateDeviceConfiguration"
    """updateDeviceConfiguration."""
    REBOOT_DEVICE = "rebootDevice"
    """rebootDevice."""
    FACTORY_RESET_DEVICE = "factoryResetDevice"
    """factoryResetDevice."""
    FIRMWARE_UPDATE = "firmwareUpdate"
    """firmwareUpdate."""


class NetworkRuleIPAction(str, Enum, metaclass=CaseInsensitiveEnumMeta):
    """IP Filter Action."""

    ALLOW = "Allow"
    """Allow."""


class PrivateLinkServiceConnectionStatus(str, Enum, metaclass=CaseInsensitiveEnumMeta):
    """The status of a private endpoint connection."""

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


class PublicNetworkAccess(str, Enum, metaclass=CaseInsensitiveEnumMeta):
    """Whether requests from Public Network are allowed."""

    ENABLED = "Enabled"
    """Enabled."""
    DISABLED = "Disabled"
    """Disabled."""


class ResourceIdentityType(str, Enum, metaclass=CaseInsensitiveEnumMeta):
    """The type of identity used for the resource. The type 'SystemAssigned,UserAssigned' includes
    both an implicitly created identity and a set of user assigned identities. The type 'None' will
    remove any identities from the service.
    """

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


class RouteErrorSeverity(str, Enum, metaclass=CaseInsensitiveEnumMeta):
    """Severity of the route error."""

    ERROR = "error"
    """error."""
    WARNING = "warning"
    """warning."""


class RoutingSource(str, Enum, metaclass=CaseInsensitiveEnumMeta):
    """The source that the routing rule is to be applied to, such as DeviceMessages."""

    INVALID = "Invalid"
    """Invalid."""
    DEVICE_MESSAGES = "DeviceMessages"
    """DeviceMessages."""
    TWIN_CHANGE_EVENTS = "TwinChangeEvents"
    """TwinChangeEvents."""
    DEVICE_LIFECYCLE_EVENTS = "DeviceLifecycleEvents"
    """DeviceLifecycleEvents."""
    DEVICE_JOB_LIFECYCLE_EVENTS = "DeviceJobLifecycleEvents"
    """DeviceJobLifecycleEvents."""
    DIGITAL_TWIN_CHANGE_EVENTS = "DigitalTwinChangeEvents"
    """DigitalTwinChangeEvents."""
    DEVICE_CONNECTION_STATE_EVENTS = "DeviceConnectionStateEvents"
    """DeviceConnectionStateEvents."""
    MQTT_BROKER_MESSAGES = "MqttBrokerMessages"
    """MqttBrokerMessages."""


class RoutingStorageContainerPropertiesEncoding(  # pylint: disable=name-too-long
    str, Enum, metaclass=CaseInsensitiveEnumMeta
):
    """Encoding that is used to serialize messages to blobs. Supported values are 'avro',
    'avrodeflate', and 'JSON'. Default value is 'avro'.
    """

    AVRO = "Avro"
    """Avro."""
    AVRO_DEFLATE = "AvroDeflate"
    """AvroDeflate."""
    JSON = "JSON"
    """JSON."""


class TestResultStatus(str, Enum, metaclass=CaseInsensitiveEnumMeta):
    """Result of testing route."""

    UNDEFINED = "undefined"
    """undefined."""
    FALSE = "false"
    """false."""
    TRUE = "true"
    """true."""
