@azure-rest/ai-translation-text package
Interfaces
Type Aliases
FindSentenceBoundariesParameters | |
GetSupportedLanguagesParameters | |
LanguageDirectionalityOutput |
Language Directionality |
LookupDictionaryEntriesParameters | |
LookupDictionaryExamplesParameters | |
ProfanityAction |
Translator profanity actions |
ProfanityMarker |
Translator profanity markers |
TextTranslationClient | |
TextType |
Alias for TextType |
TranslateParameters | |
TransliterateParameters |
Functions
Function Details
buildMultiCollection(string[], string)
function buildMultiCollection(items: string[], parameterName: string): string
Parameters
- items
-
string[]
- parameterName
-
string
Returns
string
default(TranslatorCredential | TranslatorTokenCredential | TokenCredential | KeyCredential, ClientOptions)
Initialize a new instance of TextTranslationClient
function default(credential: TranslatorCredential | TranslatorTokenCredential | TokenCredential | KeyCredential, options?: ClientOptions): TextTranslationClient
Parameters
- credential
-
TranslatorCredential | TranslatorTokenCredential | TokenCredential | KeyCredential
type: TranslatorCredential | TranslatorTokenCredential | KeyCredential |TokenCredential, credentials used to authenticate the service with.
- options
- ClientOptions
type: ClientOptions, the parameter for all optional parameters
Returns
default(string, ClientOptions)
Initialize a new instance of TextTranslationClient
function default(endpoint: string, options?: ClientOptions): TextTranslationClient
Parameters
- endpoint
-
string
type: string, Supported Text Translation endpoints (protocol and hostname, for example: https://api.cognitive.microsofttranslator.com).
- options
- ClientOptions
type: ClientOptions, the parameter for all optional parameters
Returns
default(string, TranslatorCredential | TranslatorTokenCredential | TokenCredential | KeyCredential, ClientOptions)
Initialize a new instance of TextTranslationClient
function default(endpoint: string, credential: TranslatorCredential | TranslatorTokenCredential | TokenCredential | KeyCredential, options?: ClientOptions): TextTranslationClient
Parameters
- endpoint
-
string
type: string, Supported Text Translation endpoints (protocol and hostname, for example: https://api.cognitive.microsofttranslator.com).
- credential
-
TranslatorCredential | TranslatorTokenCredential | TokenCredential | KeyCredential
type: TranslatorCredential | TranslatorTokenCredential | KeyCredential |TokenCredential, credentials used to authenticate the service with.
- options
- ClientOptions
type: ClientOptions, the parameter for all optional parameters
Returns
isUnexpected(GetSupportedLanguages200Response | GetSupportedLanguagesDefaultResponse)
function isUnexpected(response: GetSupportedLanguages200Response | GetSupportedLanguagesDefaultResponse): response
Parameters
Returns
response
isUnexpected(Translate200Response | TranslateDefaultResponse)
function isUnexpected(response: Translate200Response | TranslateDefaultResponse): response
Parameters
- response
Returns
response
isUnexpected(Transliterate200Response | TransliterateDefaultResponse)
function isUnexpected(response: Transliterate200Response | TransliterateDefaultResponse): response
Parameters
Returns
response
isUnexpected(FindSentenceBoundaries200Response | FindSentenceBoundariesDefaultResponse)
function isUnexpected(response: FindSentenceBoundaries200Response | FindSentenceBoundariesDefaultResponse): response
Parameters
Returns
response
isUnexpected(LookupDictionaryEntries200Response | LookupDictionaryEntriesDefaultResponse)
function isUnexpected(response: LookupDictionaryEntries200Response | LookupDictionaryEntriesDefaultResponse): response
Parameters
Returns
response
isUnexpected(LookupDictionaryExamples200Response | LookupDictionaryExamplesDefaultResponse)
function isUnexpected(response: LookupDictionaryExamples200Response | LookupDictionaryExamplesDefaultResponse): response
Parameters
Returns
response