@azure-rest/ai-translation-text package
Interfészek
Típusaliasok
| FindSentenceBoundariesParameters | |
| GetSupportedLanguagesParameters | |
| LanguageDirectionalityOutput |
Nyelvi irány |
| LookupDictionaryEntriesParameters | |
| LookupDictionaryExamplesParameters | |
| ProfanityAction |
Translator trágár műveletek |
| ProfanityMarker |
Fordítói trágárságjelzők |
| TextTranslationClient | |
| TextType |
TextType aliasa |
| TranslateParameters | |
| TransliterateParameters | |
Függvények
Függvény adatai
buildMultiCollection(string[], string)
function buildMultiCollection(items: string[], parameterName: string): string
Paraméterek
- items
-
string[]
- parameterName
-
string
Válaszok
string
default(TranslatorCredential | TranslatorTokenCredential | TokenCredential | KeyCredential, ClientOptions)
A TextTranslationClient új példányának inicializálása
function default(credential: TranslatorCredential | TranslatorTokenCredential | TokenCredential | KeyCredential, options?: ClientOptions): TextTranslationClient
Paraméterek
- credential
-
TranslatorCredential | TranslatorTokenCredential | TokenCredential | KeyCredential
típus: TranslatorCredential | TranslatorTokenCredential | KeyCredential |TokenCredential, a szolgáltatás hitelesítéséhez használt hitelesítő adatok.
- options
- ClientOptions
típus: ClientOptions, az összes választható paraméter paramétere
Válaszok
default(string, ClientOptions)
A TextTranslationClient új példányának inicializálása
function default(endpoint: string, options?: ClientOptions): TextTranslationClient
Paraméterek
- endpoint
-
string
típus: sztring, támogatott szövegfordítási végpontok (protokoll és állomásnév, például: https://api.cognitive.microsofttranslator.com).
- options
- ClientOptions
típus: ClientOptions, az összes választható paraméter paramétere
Válaszok
default(string, TranslatorCredential | TranslatorTokenCredential | TokenCredential | KeyCredential, ClientOptions)
A TextTranslationClient új példányának inicializálása
function default(endpoint: string, credential: TranslatorCredential | TranslatorTokenCredential | TokenCredential | KeyCredential, options?: ClientOptions): TextTranslationClient
Paraméterek
- endpoint
-
string
típus: sztring, támogatott szövegfordítási végpontok (protokoll és állomásnév, például: https://api.cognitive.microsofttranslator.com).
- credential
-
TranslatorCredential | TranslatorTokenCredential | TokenCredential | KeyCredential
típus: TranslatorCredential | TranslatorTokenCredential | KeyCredential |TokenCredential, a szolgáltatás hitelesítéséhez használt hitelesítő adatok.
- options
- ClientOptions
típus: ClientOptions, az összes választható paraméter paramétere
Válaszok
isUnexpected(GetSupportedLanguages200Response | GetSupportedLanguagesDefaultResponse)
function isUnexpected(response: GetSupportedLanguages200Response | GetSupportedLanguagesDefaultResponse): response
Paraméterek
Válaszok
response
isUnexpected(Translate200Response | TranslateDefaultResponse)
function isUnexpected(response: Translate200Response | TranslateDefaultResponse): response
Paraméterek
- response
Válaszok
response
isUnexpected(Transliterate200Response | TransliterateDefaultResponse)
function isUnexpected(response: Transliterate200Response | TransliterateDefaultResponse): response
Paraméterek
Válaszok
response
isUnexpected(FindSentenceBoundaries200Response | FindSentenceBoundariesDefaultResponse)
function isUnexpected(response: FindSentenceBoundaries200Response | FindSentenceBoundariesDefaultResponse): response
Paraméterek
Válaszok
response
isUnexpected(LookupDictionaryEntries200Response | LookupDictionaryEntriesDefaultResponse)
function isUnexpected(response: LookupDictionaryEntries200Response | LookupDictionaryEntriesDefaultResponse): response
Paraméterek
Válaszok
response
isUnexpected(LookupDictionaryExamples200Response | LookupDictionaryExamplesDefaultResponse)
function isUnexpected(response: LookupDictionaryExamples200Response | LookupDictionaryExamplesDefaultResponse): response
Paraméterek
Válaszok
response