Source code for azure.ai.translation.text.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 LanguageDirectionality(str, Enum, metaclass=CaseInsensitiveEnumMeta): """Language Directionality.""" LEFT_TO_RIGHT = "ltr" """Language is written left to right.""" RIGHT_TO_LEFT = "rtl" """Language is written right to left."""
[docs]class ProfanityAction(str, Enum, metaclass=CaseInsensitiveEnumMeta): """Translator profanity actions.""" NO_ACTION = "NoAction" """No Action is taken on profanity""" MARKED = "Marked" """Profanity is marked.""" DELETED = "Deleted" """Profanity is deleted from the translated text."""
[docs]class ProfanityMarker(str, Enum, metaclass=CaseInsensitiveEnumMeta): """Translator profanity markers.""" ASTERISK = "Asterisk" """Profanity is marked with asterisk.""" TAG = "Tag" """Profanity is marked with the tags."""
[docs]class TextType(str, Enum, metaclass=CaseInsensitiveEnumMeta): """Translation text type.""" PLAIN = "Plain" """Plain text.""" HTML = "Html" """HTML-encoded text."""