Skip to content

Commit a844c36

Browse files
remove continuation_token kwarg (Azure#25298)
1 parent f50e771 commit a844c36

File tree

5 files changed

+1
-10
lines changed

5 files changed

+1
-10
lines changed

sdk/formrecognizer/azure-ai-formrecognizer/CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
- Renamed `AccountInfo` model to `ResourceInfo`.
1212
- Renamed `DocumentModelInfo` model to `DocumentModelSummary`.
1313
- Renamed `DocumentModel` to `DocumentModelInfo`.
14+
- Removed `continuation_token` keyword from `begin_analyze_document()` and `begin_analyze_document_from_url()` on `DocumentAnalysisClient` and from `begin_build_model()`, `begin_compose_model()` and `begin_copy_model_to()` on `DocumentModelAdministrationClient`.
1415
- Changed return type of `get_copy_authorization()` from `dict[str, str]` to `TargetAuthorization`.
1516
- Changed expected `target` parameter in `begin_copy_to()` from `dict[str, str]` to `TargetAuthorization`.
1617

sdk/formrecognizer/azure-ai-formrecognizer/azure/ai/formrecognizer/_document_analysis_client.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,6 @@ def begin_analyze_document(
9393
`pages="1-3, 5-6"`. Separate each page number or range with a comma.
9494
:keyword str locale: Locale hint of the input document.
9595
See supported locales here: https://aka.ms/azsdk/formrecognizer/supportedlocales.
96-
:keyword str continuation_token: A continuation token to restart a poller from a saved state.
9796
:return: An instance of an LROPoller. Call `result()` on the poller
9897
object to return a :class:`~azure.ai.formrecognizer.AnalyzeResult`.
9998
:rtype: ~azure.core.polling.LROPoller[~azure.ai.formrecognizer.AnalyzeResult]
@@ -148,7 +147,6 @@ def begin_analyze_document_from_url(self, model: str, document_url: str, **kwarg
148147
`pages="1-3, 5-6"`. Separate each page number or range with a comma.
149148
:keyword str locale: Locale hint of the input document.
150149
See supported locales here: https://aka.ms/azsdk/formrecognizer/supportedlocales.
151-
:keyword str continuation_token: A continuation token to restart a poller from a saved state.
152150
:return: An instance of an LROPoller. Call `result()` on the poller
153151
object to return a :class:`~azure.ai.formrecognizer.AnalyzeResult`.
154152
:rtype: ~azure.core.polling.LROPoller[~azure.ai.formrecognizer.AnalyzeResult]

sdk/formrecognizer/azure-ai-formrecognizer/azure/ai/formrecognizer/_document_model_administration_client.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,6 @@ def begin_build_model(
118118
`prefix` should end in '/' to avoid cases where filenames share the same prefix.
119119
:keyword tags: List of user defined key-value tag attributes associated with the model.
120120
:paramtype tags: dict[str, str]
121-
:keyword str continuation_token: A continuation token to restart a poller from a saved state.
122121
:return: An instance of an DocumentModelAdministrationLROPoller. Call `result()` on the poller
123122
object to return a :class:`~azure.ai.formrecognizer.DocumentModelInfo`.
124123
:rtype: ~azure.ai.formrecognizer.DocumentModelAdministrationLROPoller[DocumentModelInfo]
@@ -195,7 +194,6 @@ def begin_compose_model(
195194
:keyword str description: An optional description to add to the model.
196195
:keyword tags: List of user defined key-value tag attributes associated with the model.
197196
:paramtype tags: dict[str, str]
198-
:keyword str continuation_token: A continuation token to restart a poller from a saved state.
199197
:return: An instance of an DocumentModelAdministrationLROPoller. Call `result()` on the poller
200198
object to return a :class:`~azure.ai.formrecognizer.DocumentModelInfo`.
201199
:rtype: ~azure.ai.formrecognizer.DocumentModelAdministrationLROPoller[DocumentModelInfo]
@@ -312,7 +310,6 @@ def begin_copy_model_to(
312310
:param TargetAuthorization target:
313311
The copy authorization generated from the target resource's call to
314312
:func:`~get_copy_authorization()`.
315-
:keyword str continuation_token: A continuation token to restart a poller from a saved state.
316313
:return: An instance of a DocumentModelAdministrationLROPoller. Call `result()` on the poller
317314
object to return a :class:`~azure.ai.formrecognizer.DocumentModelInfo`.
318315
:rtype: ~azure.ai.formrecognizer.DocumentModelAdministrationLROPoller[DocumentModelInfo]

sdk/formrecognizer/azure-ai-formrecognizer/azure/ai/formrecognizer/aio/_document_analysis_client_async.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,6 @@ async def begin_analyze_document(
9999
`pages="1-3, 5-6"`. Separate each page number or range with a comma.
100100
:keyword str locale: Locale hint of the input document.
101101
See supported locales here: https://aka.ms/azsdk/formrecognizer/supportedlocales.
102-
:keyword str continuation_token: A continuation token to restart a poller from a saved state.
103102
:return: An instance of an AsyncLROPoller. Call `result()` on the poller
104103
object to return a :class:`~azure.ai.formrecognizer.AnalyzeResult`.
105104
:rtype: ~azure.core.polling.AsyncLROPoller[~azure.ai.formrecognizer.AnalyzeResult]
@@ -156,7 +155,6 @@ async def begin_analyze_document_from_url(
156155
`pages="1-3, 5-6"`. Separate each page number or range with a comma.
157156
:keyword str locale: Locale hint of the input document.
158157
See supported locales here: https://aka.ms/azsdk/formrecognizer/supportedlocales.
159-
:keyword str continuation_token: A continuation token to restart a poller from a saved state.
160158
:return: An instance of an AsyncLROPoller. Call `result()` on the poller
161159
object to return a :class:`~azure.ai.formrecognizer.AnalyzeResult`.
162160
:rtype: ~azure.core.polling.AsyncLROPoller[~azure.ai.formrecognizer.AnalyzeResult]

sdk/formrecognizer/azure-ai-formrecognizer/azure/ai/formrecognizer/aio/_document_model_administration_client_async.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,6 @@ async def begin_build_model(
123123
`prefix` should end in '/' to avoid cases where filenames share the same prefix.
124124
:keyword tags: List of user defined key-value tag attributes associated with the model.
125125
:paramtype tags: dict[str, str]
126-
:keyword str continuation_token: A continuation token to restart a poller from a saved state.
127126
:return: An instance of an AsyncDocumentModelAdministrationLROPoller. Call `result()` on the poller
128127
object to return a :class:`~azure.ai.formrecognizer.DocumentModelInfo`.
129128
:rtype: ~azure.ai.formrecognizer.aio.AsyncDocumentModelAdministrationLROPoller[DocumentModelInfo]
@@ -200,7 +199,6 @@ async def begin_compose_model(
200199
:keyword str description: An optional description to add to the model.
201200
:keyword tags: List of user defined key-value tag attributes associated with the model.
202201
:paramtype tags: dict[str, str]
203-
:keyword str continuation_token: A continuation token to restart a poller from a saved state.
204202
:return: An instance of an AsyncDocumentModelAdministrationLROPoller. Call `result()` on the poller
205203
object to return a :class:`~azure.ai.formrecognizer.DocumentModelInfo`.
206204
:rtype: ~azure.ai.formrecognizer.aio.AsyncDocumentModelAdministrationLROPoller[DocumentModelInfo]
@@ -314,7 +312,6 @@ async def begin_copy_model_to(
314312
:param TargetAuthorization target:
315313
The copy authorization generated from the target resource's call to
316314
:func:`~get_copy_authorization()`.
317-
:keyword str continuation_token: A continuation token to restart a poller from a saved state.
318315
:return: An instance of a AsyncDocumentModelAdministrationLROPoller. Call `result()` on the poller
319316
object to return a :class:`~azure.ai.formrecognizer.DocumentModelInfo`.
320317
:rtype: ~azure.ai.formrecognizer.aio.AsyncDocumentModelAdministrationLROPoller[DocumentModelInfo]

0 commit comments

Comments
 (0)