DocumentTranslationClient Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
The DocumentTranslationClient.
public class DocumentTranslationClient
type DocumentTranslationClient = class
Public Class DocumentTranslationClient
- Inheritance
-
DocumentTranslationClient
Constructors
| Name | Description |
|---|---|
| DocumentTranslationClient() |
Protected constructor to allow mocking. |
| DocumentTranslationClient(DocumentTranslationClientSettings) |
Initializes a new instance of DocumentTranslationClient from a DocumentTranslationClientSettings. |
| DocumentTranslationClient(Uri, AzureKeyCredential, DocumentTranslationClientOptions) |
Initializes a new instance of DocumentTranslationClient. |
| DocumentTranslationClient(Uri, AzureKeyCredential) |
Initializes a new instance of DocumentTranslationClient class for the specified service instance. |
| DocumentTranslationClient(Uri, TokenCredential, DocumentTranslationClientOptions) |
Initializes a new instance of DocumentTranslationClient. |
| DocumentTranslationClient(Uri, TokenCredential) |
Initializes a new instance of the DocumentTranslationClient class for the specified service instance. |
Properties
| Name | Description |
|---|---|
| Pipeline |
The HTTP pipeline for sending and receiving REST requests and responses. |
Methods
| Name | Description |
|---|---|
| CancelTranslation(Guid, CancellationToken) |
Cancel a currently processing or queued translation. A translation will not be cancelled if it is already completed or failed or cancelling. A bad request will be returned. All documents that have completed translation will not be cancelled and will be charged. All pending documents will be cancelled if possible. |
| CancelTranslation(Guid, RequestContext) |
[Protocol Method] Cancel a currently processing or queued translation. A translation will not be cancelled if it is already completed or failed or cancelling. A bad request will be returned. All documents that have completed translation will not be cancelled and will be charged. All pending documents will be cancelled if possible.
|
| CancelTranslationAsync(Guid, CancellationToken) |
Cancel a currently processing or queued translation. A translation will not be cancelled if it is already completed or failed or cancelling. A bad request will be returned. All documents that have completed translation will not be cancelled and will be charged. All pending documents will be cancelled if possible. |
| CancelTranslationAsync(Guid, RequestContext) |
[Protocol Method] Cancel a currently processing or queued translation. A translation will not be cancelled if it is already completed or failed or cancelling. A bad request will be returned. All documents that have completed translation will not be cancelled and will be charged. All pending documents will be cancelled if possible.
|
| GetDocumentsStatus(Guid, Nullable<Int32>, Nullable<Int32>, Nullable<Int32>, IEnumerable<Guid>, IEnumerable<String>, Nullable<DateTimeOffset>, Nullable<DateTimeOffset>, IEnumerable<String>, CancellationToken) |
Returns the status for all documents in a batch document translation request. |
| GetDocumentsStatus(Guid, Nullable<Int32>, Nullable<Int32>, Nullable<Int32>, IEnumerable<Guid>, IEnumerable<String>, Nullable<DateTimeOffset>, Nullable<DateTimeOffset>, IEnumerable<String>, RequestContext) |
[Protocol Method] Returns the status for all documents in a batch document translation request.
|
| GetDocumentsStatusAsync(Guid, Nullable<Int32>, Nullable<Int32>, Nullable<Int32>, IEnumerable<Guid>, IEnumerable<String>, Nullable<DateTimeOffset>, Nullable<DateTimeOffset>, IEnumerable<String>, CancellationToken) |
Returns the status for all documents in a batch document translation request. |
| GetDocumentsStatusAsync(Guid, Nullable<Int32>, Nullable<Int32>, Nullable<Int32>, IEnumerable<Guid>, IEnumerable<String>, Nullable<DateTimeOffset>, Nullable<DateTimeOffset>, IEnumerable<String>, RequestContext) |
[Protocol Method] Returns the status for all documents in a batch document translation request.
|
| GetDocumentStatus(Guid, Guid, CancellationToken) |
Returns the translation status for a specific document based on the request Id and document Id. |
| GetDocumentStatus(Guid, Guid, RequestContext) |
[Protocol Method] Returns the translation status for a specific document based on the request Id and document Id.
|
| GetDocumentStatusAsync(Guid, Guid, CancellationToken) |
Returns the translation status for a specific document based on the request Id and document Id. |
| GetDocumentStatusAsync(Guid, Guid, RequestContext) |
[Protocol Method] Returns the translation status for a specific document based on the request Id and document Id.
|
| GetDocumentTranslationClient(String) |
Initializes a new instance of DocumentTranslation. |
| GetSupportedFormats(FileFormatType, CancellationToken) |
Get the list of formats supported by the Document Translation service. |
| GetSupportedFormats(String, RequestContext) |
[Protocol Method] The list of supported formats supported by the Document Translation service. The list includes the common file extension, as well as the content-type if using the upload API.
|
| GetSupportedFormatsAsync(FileFormatType, CancellationToken) |
Get the list of formats supported by the Document Translation service. |
| GetSupportedFormatsAsync(String, RequestContext) |
[Protocol Method] The list of supported formats supported by the Document Translation service. The list includes the common file extension, as well as the content-type if using the upload API.
|
| GetTranslationsStatus(Nullable<Int32>, Nullable<Int32>, Nullable<Int32>, IEnumerable<Guid>, IEnumerable<String>, Nullable<DateTimeOffset>, Nullable<DateTimeOffset>, IEnumerable<String>, CancellationToken) |
Returns a list of batch requests submitted and the status for each request. |
| GetTranslationsStatus(Nullable<Int32>, Nullable<Int32>, Nullable<Int32>, IEnumerable<Guid>, IEnumerable<String>, Nullable<DateTimeOffset>, Nullable<DateTimeOffset>, IEnumerable<String>, RequestContext) |
[Protocol Method] Returns a list of batch requests submitted and the status for each request. |
| GetTranslationsStatusAsync(Nullable<Int32>, Nullable<Int32>, Nullable<Int32>, IEnumerable<Guid>, IEnumerable<String>, Nullable<DateTimeOffset>, Nullable<DateTimeOffset>, IEnumerable<String>, CancellationToken) |
Returns a list of batch requests submitted and the status for each request. |
| GetTranslationsStatusAsync(Nullable<Int32>, Nullable<Int32>, Nullable<Int32>, IEnumerable<Guid>, IEnumerable<String>, Nullable<DateTimeOffset>, Nullable<DateTimeOffset>, IEnumerable<String>, RequestContext) |
[Protocol Method] Returns a list of batch requests submitted and the status for each request. |
| GetTranslationStatus(Guid, CancellationToken) |
Returns the status for a document translation request. The status includes the overall request status, as well as the status for documents that are being translated as part of that request. |
| GetTranslationStatus(Guid, RequestContext) |
[Protocol Method] Returns the status for a document translation request. The status includes the overall request status, as well as the status for documents that are being translated as part of that request.
|
| GetTranslationStatusAsync(Guid, CancellationToken) |
Returns the status for a document translation request. The status includes the overall request status, as well as the status for documents that are being translated as part of that request. |
| GetTranslationStatusAsync(Guid, RequestContext) |
[Protocol Method] Returns the status for a document translation request. The status includes the overall request status, as well as the status for documents that are being translated as part of that request.
|
| GetTranslationStatuses(GetTranslationStatusesOptions, CancellationToken) |
Get the status results for submitted translation operations. |
| GetTranslationStatusesAsync(GetTranslationStatusesOptions, CancellationToken) |
Get the status results for submitted translation operations. |
| StartTranslation(DocumentTranslationInput, CancellationToken) |
Starts a translation operation which translates the document(s) in your source container to your TranslationTarget(s) in the given language. For document length limits, maximum batch size, and supported document formats, see . |
| StartTranslation(IEnumerable<DocumentTranslationInput>, CancellationToken) |
Starts a translation operation which translates the document(s) in your source container to your TranslationTarget(s) in the given language. For document length limits, maximum batch size, and supported document formats, see . |
| StartTranslation(IEnumerable<DocumentTranslationInput>, Nullable<Boolean>, CancellationToken) |
Starts a translation operation which translates the document(s) in your source container to your TranslationTarget(s) in the given language. For document length limits, maximum batch size, and supported document formats, see . |
| StartTranslation(WaitUntil, RequestContent, RequestContext) |
Use this API to submit a bulk (batch) translation request to the Document
Translation service.
Each request can contain multiple documents and must
contain a source and destination container for each document. |
| StartTranslation(WaitUntil, StartTranslationDetails, CancellationToken) |
Submit a document translation request to the Document Translation service. |
| StartTranslation(WaitUntil, TranslationBatch, CancellationToken) |
Use this API to submit a bulk (batch) translation request to the Document
Translation service.
Each request can contain multiple documents and must
contain a source and destination container for each document. |
| StartTranslationAsync(DocumentTranslationInput, CancellationToken) |
Starts a translation operation which translates the document(s) in your source container to your TranslationTarget(s) in the given language. For document length limits, maximum batch size, and supported document formats, see . |
| StartTranslationAsync(IEnumerable<DocumentTranslationInput>, CancellationToken) |
Starts a translation operation which translates the document(s) in your source container to your TranslationTarget(s) in the given language. For document length limits, maximum batch size, and supported document formats, see . |
| StartTranslationAsync(IEnumerable<DocumentTranslationInput>, Nullable<Boolean>, CancellationToken) |
Starts a translation operation which translates the document(s) in your source container to your TranslationTarget(s) in the given language. For document length limits, maximum batch size, and supported document formats, see . |
| StartTranslationAsync(WaitUntil, RequestContent, RequestContext) |
Use this API to submit a bulk (batch) translation request to the Document
Translation service.
Each request can contain multiple documents and must
contain a source and destination container for each document. |
| StartTranslationAsync(WaitUntil, StartTranslationDetails, CancellationToken) |
Submit a document translation request to the Document Translation service. |
| StartTranslationAsync(WaitUntil, TranslationBatch, CancellationToken) |
Use this API to submit a bulk (batch) translation request to the Document
Translation service.
Each request can contain multiple documents and must
contain a source and destination container for each document. |