diff --git a/sdk/documenttranslation/azure-ai-documenttranslation/azure/ai/documenttranslation/_models.py b/sdk/documenttranslation/azure-ai-documenttranslation/azure/ai/documenttranslation/_models.py index b1b234d41982..b520f8c9c3e4 100644 --- a/sdk/documenttranslation/azure-ai-documenttranslation/azure/ai/documenttranslation/_models.py +++ b/sdk/documenttranslation/azure-ai-documenttranslation/azure/ai/documenttranslation/_models.py @@ -260,7 +260,7 @@ def __init__( **kwargs ): # type: (**Any) -> None - self.translated_document_url = kwargs['translated_document_url'] + self.translated_document_url = kwargs.get('translated_document_url', None) self.created_on = kwargs['created_on'] self.last_updated_on = kwargs['last_updated_on'] self.status = kwargs['status'] diff --git a/sdk/documenttranslation/azure-ai-documenttranslation/azure/ai/documenttranslation/aio/_client_async.py b/sdk/documenttranslation/azure-ai-documenttranslation/azure/ai/documenttranslation/aio/_client_async.py index 4db106429d9a..c6692c96edab 100644 --- a/sdk/documenttranslation/azure-ai-documenttranslation/azure/ai/documenttranslation/aio/_client_async.py +++ b/sdk/documenttranslation/azure-ai-documenttranslation/azure/ai/documenttranslation/aio/_client_async.py @@ -88,7 +88,6 @@ async def create_translation_job(self, inputs, **kwargs): # pylint: disable=protected-access inputs=DocumentTranslationInput._to_generated_list(inputs), cls=lambda pipeline_response, _, response_headers: response_headers, - polling=True, **kwargs ) @@ -159,7 +158,7 @@ def callback(raw_response): **kwargs ), ) - return poller.result() + return await poller.result() @distributed_trace def list_submitted_jobs(self, **kwargs):