@azure-rest/ai-translation-text package
Interfaces
Aliases de tipo
| FindSentenceBoundariesParameters | |
| GetSupportedLanguagesParameters | |
| LanguageDirectionalityOutput |
Direcionalidade da linguagem |
| LookupDictionaryEntriesParameters | |
| LookupDictionaryExamplesParameters | |
| ProfanityAction |
Ações de palavrões do tradutor |
| ProfanityMarker |
Marcadores de palavrões de tradutor |
| TextTranslationClient | |
| TextType |
Alias para TextType |
| TranslateParameters | |
| TransliterateParameters | |
Funções
Detalhes da função
buildMultiCollection(string[], string)
function buildMultiCollection(items: string[], parameterName: string): string
Parâmetros
- items
-
string[]
- parameterName
-
string
Retornos
string
default(TranslatorCredential | TranslatorTokenCredential | TokenCredential | KeyCredential, ClientOptions)
Inicializar uma nova instância de TextTranslationClient
function default(credential: TranslatorCredential | TranslatorTokenCredential | TokenCredential | KeyCredential, options?: ClientOptions): TextTranslationClient
Parâmetros
- credential
-
TranslatorCredential | TranslatorTokenCredential | TokenCredential | KeyCredential
tipo: TranslatorCredential | TranslatorTokenCredential | KeyCredential |TokenCredential, credenciais usadas para autenticar o serviço.
- options
- ClientOptions
tipo: ClientOptions, o parâmetro para todos os parâmetros opcionais
Retornos
default(string, ClientOptions)
Inicializar uma nova instância de TextTranslationClient
function default(endpoint: string, options?: ClientOptions): TextTranslationClient
Parâmetros
- endpoint
-
string
tipo: cadeia de caracteres, pontos de extremidade de tradução de texto com suporte (protocolo e nome do host, por exemplo: https://api.cognitive.microsofttranslator.com).
- options
- ClientOptions
tipo: ClientOptions, o parâmetro para todos os parâmetros opcionais
Retornos
default(string, TranslatorCredential | TranslatorTokenCredential | TokenCredential | KeyCredential, ClientOptions)
Inicializar uma nova instância de TextTranslationClient
function default(endpoint: string, credential: TranslatorCredential | TranslatorTokenCredential | TokenCredential | KeyCredential, options?: ClientOptions): TextTranslationClient
Parâmetros
- endpoint
-
string
tipo: cadeia de caracteres, pontos de extremidade de tradução de texto com suporte (protocolo e nome do host, por exemplo: https://api.cognitive.microsofttranslator.com).
- credential
-
TranslatorCredential | TranslatorTokenCredential | TokenCredential | KeyCredential
tipo: TranslatorCredential | TranslatorTokenCredential | KeyCredential |TokenCredential, credenciais usadas para autenticar o serviço.
- options
- ClientOptions
tipo: ClientOptions, o parâmetro para todos os parâmetros opcionais
Retornos
isUnexpected(GetSupportedLanguages200Response | GetSupportedLanguagesDefaultResponse)
function isUnexpected(response: GetSupportedLanguages200Response | GetSupportedLanguagesDefaultResponse): response
Parâmetros
Retornos
response
isUnexpected(Translate200Response | TranslateDefaultResponse)
function isUnexpected(response: Translate200Response | TranslateDefaultResponse): response
Parâmetros
- response
Retornos
response
isUnexpected(Transliterate200Response | TransliterateDefaultResponse)
function isUnexpected(response: Transliterate200Response | TransliterateDefaultResponse): response
Parâmetros
Retornos
response
isUnexpected(FindSentenceBoundaries200Response | FindSentenceBoundariesDefaultResponse)
function isUnexpected(response: FindSentenceBoundaries200Response | FindSentenceBoundariesDefaultResponse): response
Parâmetros
Retornos
response
isUnexpected(LookupDictionaryEntries200Response | LookupDictionaryEntriesDefaultResponse)
function isUnexpected(response: LookupDictionaryEntries200Response | LookupDictionaryEntriesDefaultResponse): response
Parâmetros
Retornos
response
isUnexpected(LookupDictionaryExamples200Response | LookupDictionaryExamplesDefaultResponse)
function isUnexpected(response: LookupDictionaryExamples200Response | LookupDictionaryExamplesDefaultResponse): response
Parâmetros
Retornos
response