@azure-rest/ai-translation-document package
インターフェイス
型エイリアス
| CancelTranslationParameters | |
| DocumentTranslateContent |
ドキュメント翻訳要求コンテンツ |
| DocumentTranslateParameters | |
| DocumentTranslationClient | |
| FileFormatType |
FileFormatType のエイリアス |
| GetArrayType |
配列の型を抽出するヘルパー型 |
| GetDocumentStatusParameters | |
| GetDocumentsStatusParameters | |
| GetPage |
ページの取得方法と、次のページへのリンク (ある場合) を定義するカスタム関数の型。 |
| GetSupportedFormatsParameters | |
| GetTranslationStatusParameters | |
| GetTranslationsStatusParameters | |
| PaginateReturn |
応答型からページングされた要素の型を推測するヘルパー型。この型は、ページアイテムが見つかった応答のプロパティを示す itemName プロパティに対する x-ms-pageable の swagger 情報に基づいて生成されます。 既定値は |
| StartTranslationParameters | |
| StatusOutput |
StatusOutput のエイリアス |
| StorageInputType |
StorageInputType のエイリアス |
| StorageSource |
StorageSource のエイリアス |
| TranslationErrorCodeOutput |
TranslationErrorCodeOutput のエイリアス |
関数
関数の詳細
default(string, TokenCredential | KeyCredential, DocumentTranslationClientOptions)
DocumentTranslationClient の新しいインスタンスを初期化する
function default(endpointParam: string, credentials: TokenCredential | KeyCredential, options?: DocumentTranslationClientOptions): DocumentTranslationClient
パラメーター
- endpointParam
-
string
サポートされているドキュメント変換エンドポイント、プロトコル、ホスト名(例: https://{TranslatorResourceName}.cognitiveservices.azure.com/translator。
- credentials
クライアント資格情報を一意に識別する
- options
- DocumentTranslationClientOptions
すべての省略可能なパラメーターのパラメーター
戻り値
getLongRunningPoller<TResult>(Client, StartTranslationDefaultResponse | StartTranslation202Response, CreateHttpPollerOptions<TResult, OperationState<TResult>>)
実行時間の長い操作のポーリングに役立つ Poller オブジェクトを構築するヘルパー関数。
function getLongRunningPoller<TResult>(client: Client, initialResponse: StartTranslationDefaultResponse | StartTranslation202Response, options?: CreateHttpPollerOptions<TResult, OperationState<TResult>>): Promise<SimplePollerLike<OperationState<TResult>, TResult>>
パラメーター
- client
- Client
追加のページを取得する要求の送信に使用するクライアント。
- initialResponse
-
StartTranslationDefaultResponse | StartTranslation202Response
最初の応答。
- options
-
CreateHttpPollerOptions<TResult, OperationState<TResult>>
再開状態またはカスタム ポーリング間隔を設定するオプション。
戻り値
Promise<SimplePollerLike<OperationState<TResult>, TResult>>
- 操作状態の更新をポーリングし、最終的に最終的な応答を取得するポーリング オブジェクト。
isUnexpected(DocumentTranslate200Response | DocumentTranslateDefaultResponse)
function isUnexpected(response: DocumentTranslate200Response | DocumentTranslateDefaultResponse): response
パラメーター
戻り値
response
isUnexpected(StartTranslationLogicalResponse | StartTranslationDefaultResponse | StartTranslation202Response)
function isUnexpected(response: StartTranslationLogicalResponse | StartTranslationDefaultResponse | StartTranslation202Response): response
パラメーター
戻り値
response
isUnexpected(GetTranslationsStatus200Response | GetTranslationsStatusDefaultResponse)
function isUnexpected(response: GetTranslationsStatus200Response | GetTranslationsStatusDefaultResponse): response
パラメーター
戻り値
response
isUnexpected(GetDocumentStatus200Response | GetDocumentStatusDefaultResponse)
function isUnexpected(response: GetDocumentStatus200Response | GetDocumentStatusDefaultResponse): response
パラメーター
戻り値
response
isUnexpected(GetTranslationStatus200Response | GetTranslationStatusDefaultResponse)
function isUnexpected(response: GetTranslationStatus200Response | GetTranslationStatusDefaultResponse): response
パラメーター
戻り値
response
isUnexpected(CancelTranslation200Response | CancelTranslationDefaultResponse)
function isUnexpected(response: CancelTranslation200Response | CancelTranslationDefaultResponse): response
パラメーター
戻り値
response
isUnexpected(GetDocumentsStatus200Response | GetDocumentsStatusDefaultResponse)
function isUnexpected(response: GetDocumentsStatus200Response | GetDocumentsStatusDefaultResponse): response
パラメーター
戻り値
response
isUnexpected(GetSupportedFormats200Response | GetSupportedFormatsDefaultResponse)
function isUnexpected(response: GetSupportedFormats200Response | GetSupportedFormatsDefaultResponse): response
パラメーター
戻り値
response
paginate<TResponse>(Client, TResponse, PagingOptions<TResponse>)
Autorest x-ms-pageable 拡張機能の仕様に従った最初の応答からの結果を改ページするヘルパー
function paginate<TResponse>(client: Client, initialResponse: TResponse, options?: PagingOptions<TResponse>): PagedAsyncIterableIterator<PaginateReturn<TResponse>>
パラメーター
- client
- Client
次のページ要求の送信に使用するクライアント
- initialResponse
-
TResponse
nextLink と要素の現在のページを含む初期応答
- options
-
PagingOptions<TResponse>
戻り値
PagedAsyncIterableIterator<PaginateReturn<TResponse>>
- PagedAsyncIterableIterator を使用して要素を反復処理する