@azure-rest/ai-translation-text package
介面
類型別名
函式
函式詳細資料
buildMultiCollection(string[], string)
function buildMultiCollection(items: string[], parameterName: string): string
參數
- items
-
string[]
- parameterName
-
string
傳回
string
default(TranslatorCredential | TranslatorTokenCredential | TokenCredential | KeyCredential, ClientOptions)
初始化 TextTranslationClient 的新實例
function default(credential: TranslatorCredential | TranslatorTokenCredential | TokenCredential | KeyCredential, options?: ClientOptions): TextTranslationClient
參數
- credential
-
TranslatorCredential | TranslatorTokenCredential | TokenCredential | KeyCredential
類型:TranslatorCredential |TranslatorTokenCredential |KeyCredential |TokenCredential,用來驗證服務的認證。
- options
- ClientOptions
type:ClientOptions,所有選擇性參數的參數
傳回
default(string, ClientOptions)
初始化 TextTranslationClient 的新實例
function default(endpoint: string, options?: ClientOptions): TextTranslationClient
參數
- endpoint
-
string
type:string、Supported Text Translation endpoints (protocol and hostname,例如:https://api.cognitive.microsofttranslator.com)。
- options
- ClientOptions
type:ClientOptions,所有選擇性參數的參數
傳回
default(string, TranslatorCredential | TranslatorTokenCredential | TokenCredential | KeyCredential, ClientOptions)
初始化 TextTranslationClient 的新實例
function default(endpoint: string, credential: TranslatorCredential | TranslatorTokenCredential | TokenCredential | KeyCredential, options?: ClientOptions): TextTranslationClient
參數
- endpoint
-
string
type:string、Supported Text Translation endpoints (protocol and hostname,例如:https://api.cognitive.microsofttranslator.com)。
- credential
-
TranslatorCredential | TranslatorTokenCredential | TokenCredential | KeyCredential
類型:TranslatorCredential |TranslatorTokenCredential |KeyCredential |TokenCredential,用來驗證服務的認證。
- options
- ClientOptions
type:ClientOptions,所有選擇性參數的參數
傳回
isUnexpected(GetSupportedLanguages200Response | GetSupportedLanguagesDefaultResponse)
function isUnexpected(response: GetSupportedLanguages200Response | GetSupportedLanguagesDefaultResponse): response
參數
傳回
response
isUnexpected(Translate200Response | TranslateDefaultResponse)
function isUnexpected(response: Translate200Response | TranslateDefaultResponse): response
參數
- response
傳回
response
isUnexpected(Transliterate200Response | TransliterateDefaultResponse)
function isUnexpected(response: Transliterate200Response | TransliterateDefaultResponse): response
參數
傳回
response
isUnexpected(FindSentenceBoundaries200Response | FindSentenceBoundariesDefaultResponse)
function isUnexpected(response: FindSentenceBoundaries200Response | FindSentenceBoundariesDefaultResponse): response
參數
傳回
response
isUnexpected(LookupDictionaryEntries200Response | LookupDictionaryEntriesDefaultResponse)
function isUnexpected(response: LookupDictionaryEntries200Response | LookupDictionaryEntriesDefaultResponse): response
參數
傳回
response
isUnexpected(LookupDictionaryExamples200Response | LookupDictionaryExamplesDefaultResponse)
function isUnexpected(response: LookupDictionaryExamples200Response | LookupDictionaryExamplesDefaultResponse): response
參數
傳回
response