@azure-rest/ai-translation-text package
Interfaces
Alias de type
| FindSentenceBoundariesParameters | |
| GetSupportedLanguagesParameters | |
| LanguageDirectionalityOutput |
Direction de la langue |
| LookupDictionaryEntriesParameters | |
| LookupDictionaryExamplesParameters | |
| ProfanityAction |
Actions de profanité translator |
| ProfanityMarker |
Marqueurs de profanité Translator |
| TextTranslationClient | |
| TextType |
Alias pour TextType |
| TranslateParameters | |
| TransliterateParameters | |
Functions
Informations relatives à la fonction
buildMultiCollection(string[], string)
function buildMultiCollection(items: string[], parameterName: string): string
Paramètres
- items
-
string[]
- parameterName
-
string
Retours
string
default(TranslatorCredential | TranslatorTokenCredential | TokenCredential | KeyCredential, ClientOptions)
Initialiser une nouvelle instance de TextTranslationClient
function default(credential: TranslatorCredential | TranslatorTokenCredential | TokenCredential | KeyCredential, options?: ClientOptions): TextTranslationClient
Paramètres
- credential
-
TranslatorCredential | TranslatorTokenCredential | TokenCredential | KeyCredential
type : TranslatorCredential | TranslatorTokenCredential | KeyCredential |TokenCredential, informations d’identification utilisées pour authentifier le service.
- options
- ClientOptions
type : ClientOptions, paramètre pour tous les paramètres facultatifs
Retours
default(string, ClientOptions)
Initialiser une nouvelle instance de TextTranslationClient
function default(endpoint: string, options?: ClientOptions): TextTranslationClient
Paramètres
- endpoint
-
string
type : chaîne, points de terminaison de traduction de texte pris en charge (protocole et nom d’hôte, par exemple : https://api.cognitive.microsofttranslator.com).
- options
- ClientOptions
type : ClientOptions, paramètre pour tous les paramètres facultatifs
Retours
default(string, TranslatorCredential | TranslatorTokenCredential | TokenCredential | KeyCredential, ClientOptions)
Initialiser une nouvelle instance de TextTranslationClient
function default(endpoint: string, credential: TranslatorCredential | TranslatorTokenCredential | TokenCredential | KeyCredential, options?: ClientOptions): TextTranslationClient
Paramètres
- endpoint
-
string
type : chaîne, points de terminaison de traduction de texte pris en charge (protocole et nom d’hôte, par exemple : https://api.cognitive.microsofttranslator.com).
- credential
-
TranslatorCredential | TranslatorTokenCredential | TokenCredential | KeyCredential
type : TranslatorCredential | TranslatorTokenCredential | KeyCredential |TokenCredential, informations d’identification utilisées pour authentifier le service.
- options
- ClientOptions
type : ClientOptions, paramètre pour tous les paramètres facultatifs
Retours
isUnexpected(GetSupportedLanguages200Response | GetSupportedLanguagesDefaultResponse)
function isUnexpected(response: GetSupportedLanguages200Response | GetSupportedLanguagesDefaultResponse): response
Paramètres
Retours
response
isUnexpected(Translate200Response | TranslateDefaultResponse)
function isUnexpected(response: Translate200Response | TranslateDefaultResponse): response
Paramètres
- response
Retours
response
isUnexpected(Transliterate200Response | TransliterateDefaultResponse)
function isUnexpected(response: Transliterate200Response | TransliterateDefaultResponse): response
Paramètres
Retours
response
isUnexpected(FindSentenceBoundaries200Response | FindSentenceBoundariesDefaultResponse)
function isUnexpected(response: FindSentenceBoundaries200Response | FindSentenceBoundariesDefaultResponse): response
Paramètres
Retours
response
isUnexpected(LookupDictionaryEntries200Response | LookupDictionaryEntriesDefaultResponse)
function isUnexpected(response: LookupDictionaryEntries200Response | LookupDictionaryEntriesDefaultResponse): response
Paramètres
Retours
response
isUnexpected(LookupDictionaryExamples200Response | LookupDictionaryExamplesDefaultResponse)
function isUnexpected(response: LookupDictionaryExamples200Response | LookupDictionaryExamplesDefaultResponse): response
Paramètres
Retours
response