github Azure/azure-sdk-for-python azure-ai-translation-document_1.0.0b2

latest releases: azure-monitor-opentelemetry_1.4.2, azure-ai-ml_1.16.0, azure-identity_1.17.0b1...
pre-release2 years ago

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 with begin_translation which follows a long-running operation (LRO)
    approach. The client method now returns a DocumentTranslationLROPoller (or AsyncDocumentTranslationLROPoller) 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 of DocumentStatusResult. All job-level metadata can still
    be found on poller.details.
  • has_completed has been removed from JobStatusResult and DocumentStatusResult. Use poller.done() to check if the
    translation has completed.
  • Client method wait_until_done has been removed. Use poller.result() to wait for the LRO to complete.
  • Client method list_submitted_jobs has been renamed to list_all_translation_statuses.
  • Client method get_job_status has been renamed to get_translation_status.
  • Client method cancel_job has been renamed to cancel_translation.
  • Parameter job_id was renamed to translation_id for get_translation_status, cancel_translation, list_all_document_statuses, and get_document_status.
  • JobStatusResult has been renamed to TranslationStatusResult.
  • DocumentStatusResult property translate_to has been renamed to translated_to

New features

  • Authentication using azure-identity credentials now supported.
  • Added paging and filtering options to list_all_document_statuses and list_submitted_jobs.
  • The input to begin_translation now accepts either the parameter inputs as a List[DocumentTranslationInput] to
    perform multiple translations, or the parameters source_url, target_url, and target_language_code to perform a
    single translation of your documents.

Dependency updates

  • Package requires azure-core version 1.14.0 or greater.

Don't miss a new azure-sdk-for-python release

NewReleases is sending notifications on new releases.