1.0.0b2 (2021-06-08)
This version of the SDK defaults to the latest supported service version, which currently is v1.0
Breaking changes
create_translation_job
was removed and replaced withbegin_translation
which follows a long-running operation (LRO)
approach. The client method now returns aDocumentTranslationLROPoller
(orAsyncDocumentTranslationLROPoller
) to begin the
long-running operation. A call to.result()
can be made on the poller object to wait until the translation is complete.
See the README for more information about LROs.- Upon completion of the LRO,
begin_translation
now returns a pageable ofDocumentStatusResult
. All job-level metadata can still
be found onpoller.details
. has_completed
has been removed fromJobStatusResult
andDocumentStatusResult
. Usepoller.done()
to check if the
translation has completed.- Client method
wait_until_done
has been removed. Usepoller.result()
to wait for the LRO to complete. - Client method
list_submitted_jobs
has been renamed tolist_all_translation_statuses
. - Client method
get_job_status
has been renamed toget_translation_status
. - Client method
cancel_job
has been renamed tocancel_translation
. - Parameter
job_id
was renamed totranslation_id
forget_translation_status
,cancel_translation
,list_all_document_statuses
, andget_document_status
. JobStatusResult
has been renamed toTranslationStatusResult
.DocumentStatusResult
propertytranslate_to
has been renamed totranslated_to
New features
- Authentication using
azure-identity
credentials now supported.- see the Azure Identity documentation for more information.
- Added paging and filtering options to
list_all_document_statuses
andlist_submitted_jobs
. - The input to
begin_translation
now accepts either the parameterinputs
as aList[DocumentTranslationInput]
to
perform multiple translations, or the parameterssource_url
,target_url
, andtarget_language_code
to perform a
single translation of your documents.
Dependency updates
- Package requires azure-core version 1.14.0 or greater.