diff --git a/sdk/translation/azure-ai-translation-document/samples/async_samples/sample_list_document_statuses_with_filters_async.py b/sdk/translation/azure-ai-translation-document/samples/async_samples/sample_list_document_statuses_with_filters_async.py index 260f25bf35e4..52ffbeee5b98 100644 --- a/sdk/translation/azure-ai-translation-document/samples/async_samples/sample_list_document_statuses_with_filters_async.py +++ b/sdk/translation/azure-ai-translation-document/samples/async_samples/sample_list_document_statuses_with_filters_async.py @@ -51,7 +51,7 @@ async def sample_list_document_statuses_with_filters_async(): start = datetime(2021, 4, 12) end = datetime(2021, 4, 14) statuses = ["Cancelled", "Failed"] - order_by = ["createdDateTimeUtc desc"] + order_by = ["created_on desc"] results_per_page = 2 skip = 3 @@ -60,8 +60,8 @@ async def sample_list_document_statuses_with_filters_async(): translation_id, # filters statuses=statuses, - translated_after=start, - translated_before=end, + created_after=start, + created_before=end, # ordering order_by=order_by, # paging diff --git a/sdk/translation/azure-ai-translation-document/samples/async_samples/sample_list_translations_with_filters_async.py b/sdk/translation/azure-ai-translation-document/samples/async_samples/sample_list_translations_with_filters_async.py index ee63663e0496..5f5f731ee14c 100644 --- a/sdk/translation/azure-ai-translation-document/samples/async_samples/sample_list_translations_with_filters_async.py +++ b/sdk/translation/azure-ai-translation-document/samples/async_samples/sample_list_translations_with_filters_async.py @@ -48,7 +48,7 @@ async def sample_list_translations_with_filters_async(): start = datetime(2021, 4, 12) end = datetime(2021, 4, 14) statuses = ["Cancelled", "Failed"] - order_by = ["createdDateTimeUtc desc"] + order_by = ["created_on desc"] results_per_page = 2 skip = 3 diff --git a/sdk/translation/azure-ai-translation-document/samples/sample_list_document_statuses_with_filters.py b/sdk/translation/azure-ai-translation-document/samples/sample_list_document_statuses_with_filters.py index 3204a9819c06..fd110f43cacd 100644 --- a/sdk/translation/azure-ai-translation-document/samples/sample_list_document_statuses_with_filters.py +++ b/sdk/translation/azure-ai-translation-document/samples/sample_list_document_statuses_with_filters.py @@ -49,7 +49,7 @@ def sample_list_document_statuses_with_filters(): start = datetime(2021, 4, 12) end = datetime(2021, 4, 14) statuses = ["Cancelled", "Failed"] - order_by = ["createdDateTimeUtc desc"] + order_by = ["created_on desc"] results_per_page = 2 skip = 3 @@ -57,8 +57,8 @@ def sample_list_document_statuses_with_filters(): translation_id, # filters statuses=statuses, - translated_after=start, - translated_before=end, + created_after=start, + created_before=end, # ordering order_by=order_by, # paging diff --git a/sdk/translation/azure-ai-translation-document/samples/sample_list_translations_with_filters.py b/sdk/translation/azure-ai-translation-document/samples/sample_list_translations_with_filters.py index e5c564d0c866..98703ccdef98 100644 --- a/sdk/translation/azure-ai-translation-document/samples/sample_list_translations_with_filters.py +++ b/sdk/translation/azure-ai-translation-document/samples/sample_list_translations_with_filters.py @@ -49,7 +49,7 @@ def sample_list_translations_with_filters(): start = datetime(2021, 4, 12) end = datetime(2021, 4, 14) statuses = ["Cancelled", "Failed"] - order_by = ["createdDateTimeUtc desc"] + order_by = ["created_on desc"] results_per_page = 2 skip = 3