diff --git a/sdk/formrecognizer/azure-ai-formrecognizer/azure/ai/formrecognizer/_form_recognizer_client.py b/sdk/formrecognizer/azure-ai-formrecognizer/azure/ai/formrecognizer/_form_recognizer_client.py index 4d219977fd54..c6669af5aade 100644 --- a/sdk/formrecognizer/azure-ai-formrecognizer/azure/ai/formrecognizer/_form_recognizer_client.py +++ b/sdk/formrecognizer/azure-ai-formrecognizer/azure/ai/formrecognizer/_form_recognizer_client.py @@ -95,9 +95,10 @@ def begin_recognize_receipts(self, receipt, **kwargs): :type receipt: bytes or IO[bytes] :keyword bool include_text_content: Whether or not to include text elements such as lines and words in addition to form fields. - :keyword str content_type: Media type of the body sent to the API. Content-type is + :keyword content_type: Media type of the body sent to the API. Content-type is auto-detected, but can be overridden by passing this keyword argument. For options, see :class:`~azure.ai.formrecognizer.FormContentType`. + :paramtype: str or ~azure.ai.formrecognizer.FormContentType :keyword int polling_interval: Waiting time between two polls for LRO operations if no Retry-After header is present. Defaults to 5 seconds. :keyword str continuation_token: A continuation token to restart a poller from a saved state. @@ -197,9 +198,10 @@ def begin_recognize_content(self, form, **kwargs): :param form: JPEG, PNG, PDF and TIFF type file stream or bytes. :type form: bytes or IO[bytes] - :keyword str content_type: Media type of the body sent to the API. Content-type is + :keyword content_type: Media type of the body sent to the API. Content-type is auto-detected, but can be overridden by passing this keyword argument. For options, see :class:`~azure.ai.formrecognizer.FormContentType`. + :paramtype: str or ~azure.ai.formrecognizer.FormContentType :keyword int polling_interval: Waiting time between two polls for LRO operations if no Retry-After header is present. Defaults to 5 seconds. :keyword str continuation_token: A continuation token to restart a poller from a saved state. @@ -279,9 +281,10 @@ def begin_recognize_custom_forms(self, model_id, form, **kwargs): :type form: bytes or IO[bytes] :keyword bool include_text_content: Whether or not to include text elements such as lines and words in addition to form fields. - :keyword str content_type: Media type of the body sent to the API. Content-type is + :keyword content_type: Media type of the body sent to the API. Content-type is auto-detected, but can be overridden by passing this keyword argument. For options, see :class:`~azure.ai.formrecognizer.FormContentType`. + :paramtype: str or ~azure.ai.formrecognizer.FormContentType :keyword int polling_interval: Waiting time between two polls for LRO operations if no Retry-After header is present. Defaults to 5 seconds. :keyword str continuation_token: A continuation token to restart a poller from a saved state. diff --git a/sdk/formrecognizer/azure-ai-formrecognizer/azure/ai/formrecognizer/aio/_form_recognizer_client_async.py b/sdk/formrecognizer/azure-ai-formrecognizer/azure/ai/formrecognizer/aio/_form_recognizer_client_async.py index fa9971bc77c5..967046d24ea3 100644 --- a/sdk/formrecognizer/azure-ai-formrecognizer/azure/ai/formrecognizer/aio/_form_recognizer_client_async.py +++ b/sdk/formrecognizer/azure-ai-formrecognizer/azure/ai/formrecognizer/aio/_form_recognizer_client_async.py @@ -103,9 +103,10 @@ async def begin_recognize_receipts( :type receipt: bytes or IO[bytes] :keyword bool include_text_content: Whether or not to include text elements such as lines and words in addition to form fields. - :keyword str content_type: Media type of the body sent to the API. Content-type is + :keyword content_type: Media type of the body sent to the API. Content-type is auto-detected, but can be overridden by passing this keyword argument. For options, see :class:`~azure.ai.formrecognizer.FormContentType`. + :paramtype: str or ~azure.ai.formrecognizer.FormContentType :keyword int polling_interval: Waiting time between two polls for LRO operations if no Retry-After header is present. Defaults to 5 seconds. :keyword str continuation_token: A continuation token to restart a poller from a saved state. @@ -217,9 +218,10 @@ async def begin_recognize_content( :param form: JPEG, PNG, PDF and TIFF type file stream or bytes. :type form: bytes or IO[bytes] - :keyword str content_type: Media type of the body sent to the API. Content-type is + :keyword content_type: Media type of the body sent to the API. Content-type is auto-detected, but can be overridden by passing this keyword argument. For options, see :class:`~azure.ai.formrecognizer.FormContentType`. + :paramtype: str or ~azure.ai.formrecognizer.FormContentType :keyword int polling_interval: Waiting time between two polls for LRO operations if no Retry-After header is present. Defaults to 5 seconds. :keyword str continuation_token: A continuation token to restart a poller from a saved state. @@ -307,9 +309,10 @@ async def begin_recognize_custom_forms( :type form: bytes or IO[bytes] :keyword bool include_text_content: Whether or not to include text elements such as lines and words in addition to form fields. - :keyword str content_type: Media type of the body sent to the API. Content-type is + :keyword content_type: Media type of the body sent to the API. Content-type is auto-detected, but can be overridden by passing this keyword argument. For options, see :class:`~azure.ai.formrecognizer.FormContentType`. + :paramtype: str or ~azure.ai.formrecognizer.FormContentType :keyword int polling_interval: Waiting time between two polls for LRO operations if no Retry-After header is present. Defaults to 5 seconds. :keyword str continuation_token: A continuation token to restart a poller from a saved state.