Source code for azure.ai.translation.document.models._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) 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


[docs] class FileFormatType(str, Enum, metaclass=CaseInsensitiveEnumMeta): """Format types.""" DOCUMENT = "document" """Document type file format""" GLOSSARY = "glossary" """Glossary type file format"""
[docs] class Status(str, Enum, metaclass=CaseInsensitiveEnumMeta): """List of possible statuses for job or document.""" NOT_STARTED = "NotStarted" """NotStarted""" RUNNING = "Running" """Running""" SUCCEEDED = "Succeeded" """Succeeded""" FAILED = "Failed" """Failed""" CANCELED = "Cancelled" """Cancelled""" CANCELING = "Cancelling" """Cancelling""" VALIDATION_FAILED = "ValidationFailed" """ValidationFailed"""
[docs] class StorageInputType(str, Enum, metaclass=CaseInsensitiveEnumMeta): """Storage type of the input documents source string.""" FOLDER = "Folder" """Folder storage input type""" FILE = "File" """File storage input type"""
[docs] class TranslationErrorCode(str, Enum, metaclass=CaseInsensitiveEnumMeta): """Enums containing high level error codes.""" INVALID_REQUEST = "InvalidRequest" """InvalidRequest""" INVALID_ARGUMENT = "InvalidArgument" """InvalidArgument""" INTERNAL_SERVER_ERROR = "InternalServerError" """InternalServerError""" SERVICE_UNAVAILABLE = "ServiceUnavailable" """ServiceUnavailable""" RESOURCE_NOT_FOUND = "ResourceNotFound" """ResourceNotFound""" UNAUTHORIZED = "Unauthorized" """Unauthorized""" REQUEST_RATE_TOO_HIGH = "RequestRateTooHigh" """RequestRateTooHigh"""
[docs] class TranslationStorageSource(str, Enum, metaclass=CaseInsensitiveEnumMeta): """Storage Source.""" AZURE_BLOB = "AzureBlob" """Azure blob storage source"""