@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
类型: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
类型: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
类型: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