- Exposed
JsonModelWriteCorefor model serialization procedure.
This is a GA release. No new features added.
- Single document translation client can be created using endpoint alone, mainly for SDK to work against containers.
- SourceInput options which is a part of TranslationInput is now public. This allows users to enter source language, source storage, and document filter prefix and suffix.
documenttranslateis the method added to submit a single/synchronous document translation request to the Document Translation service.DocumentTranslateContenthas been added to specify thedocumenttranslaterequest content.- Added
getSupportedFormatsthat returns a list of supported documents and glossaries by the Document Translation service.
- Version
v1.0is not supported - Renamed property
FormatTypetoFileFormatType
- Added optional parameter
categoryIdto theDocumentTranslationInput.AddTarget. - Added property
Ascendingto typeDocumentFilterOrderandTranslationFilterOrder. DocumentTranslationAudiencehas been added to allow the user to select the Azure cloud where the resource is located.
- Renamed type
StorageInputTypetoStorageInputUriKind. - Renamed property
StorageTypetoStorageUriKindinDocumentTranslationInput. - Renamed parameter
asctoascendinginTranslationFilterOrderconstructor. - The following properties inside of the
DocumentTranslationOperationclass will throw anInvalidOperationExceptionif they are accessed and the LRO hasn't made a request to the service:CreatedOnDocumentsCanceledDocumentsFailedDocumentsInProgressDocumentsNotStartedDocumentsSucceededDocumentsTotalLastModifiedStatus
- In
DocumentTranslationOperation,Cancelcalls won't overwrite the response fromGetRawResponseanymore.
- Removed types
DocumentTranslationErrorandDocumentTranslationErrorCode. These affected the classesDocumentStatusResultandTranslationStatusResult. Errors in both classes are now exposed asResponseError. - Renamed method
DocumentStatustoDocumentStatusResultinDocumentTranslationModelFactory, which now takes aBinaryDatatype instead ofDocumentTranslationError. - Renamed method
TranslationStatustoTranslationStatusResultinDocumentTranslationModelFactory, which now takes aBinaryDatatype instead ofDocumentTranslationError.
DocumentFilter.CreatedAfterandDocumentFilter.CreatedBeforeare now nullable properties.- Renamed method
GetAllTranslationStatusestoGetTranslationStatuses. - Renamed method
GetAllDocumentStatusestoGetDocumentStatuses. - Renamed type
TranslationFiltertoGetTranslationStatusesOptions. - Renamed type
DocumentFiltertoGetDocumentStatusesOptions. - Renamed type
DocumentStatustoDocumentStatusResult. - Renamed type
TranslationStatustoTranslationStatusResult. - Renamed type
FileFormattoDocumentTranslationFileFormat. - Renamed property
TranslatedTotoTranslatedToLanguageCodeinDocumentStatusResult. - Renamed parameter
asctoascendinginDocumentStatusResultconstructor. - Changed spelling of
cancelled/cancellingtocanceled/cancelling. The following changes have been made:- property
DocumentsCancelledtoDocumentsCanceledinDocumentTranslationOperation - property
DocumentsCancelledtoDocumentsCanceledinTranslationStatusResult - value
CancelledtoCanceledinDocumentTranslationOperation - value
CancellingtoCancelinginDocumentTranslationOperation - parameter
CancelledtoCanceledin functionDocumentTranslationModelFactory.TranslationStatus
- property
GetDocumentStasusandGetDocumentStatusesAsyncno longer set CreatedAfter and CreatedBefore if the user doesn't set it.- In
GetTranslationStatuses,GetDocumentStatusesand their async counterparts; URL parameters forIds,Statuses, andOrderByare no longer included in the request URL if the user does not set them.
- Added filtering options to methods
GetAllTranslationStatuses,GetAllDocumentStatusesand their async equivalent. - Added
DocumentTranslationModelFactorystatic class to support mocking model types.
- Properties
SuffixandPrefixare now available underTranslationSourceinstead of in typeDocumentFilter. - Type
DocumentTranslationErroris now a struct. - Type
StorageInputTypeis now a regular enum instead of an extensible enum.
- Renamed property
DocumentIdtoIdinDocumentStatusResult. - Renamed property
TranslationIdtoIdinTranslationStatusResult - Renamed type
TranslationStatusResulttoTranslationStatus. - Renamed type
DocumentStatusResulttoDocumentStatus. - Renamed enum
TranslationStatustoDocumentTranslationStatus. - Renamed method
GetDocumentFormatstoGetSupportedDocumentFormats. - Renamed method
GetGlossaryFormatstoGetSupportedGlossaryFormats. - Removed property
HasCompletedfrom typesDocumentStatusResultandTranslationStatusResult.
- Added support for authentication with Azure Active Directory.
- This version of the SDK defaults to the latest supported service version, which currently is
v1.0. - Renamed method
GetTranslationstoGetAllTranslationStatusesand same for the async equivalent method. - Renamed property
TranslateTotoTranslatedToin typeDocumentStatusResult.
This is the first beta package of the Azure.AI.Translation.Document client library that targets the service version 1.0-preview.1.
This package's documentation and samples demonstrate the new API.