From 853149a97262e1a3b462bc17f43284312b039d0a Mon Sep 17 00:00:00 2001 From: Scott Beddall Date: Thu, 21 May 2020 12:13:10 -0700 Subject: [PATCH 01/15] update deps appropriately --- eng/ci_tools.txt | 25 ++++++++++++------------- eng/test_tools.txt | 16 ++++++++-------- 2 files changed, 20 insertions(+), 21 deletions(-) diff --git a/eng/ci_tools.txt b/eng/ci_tools.txt index c2281fec15b2..fbd1aab479c8 100644 --- a/eng/ci_tools.txt +++ b/eng/ci_tools.txt @@ -1,35 +1,34 @@ # requirements leveraged by ci tools setuptools==44.1.0; python_version == '2.7' -setuptools==45.1.0; python_version >= '3.5' +setuptools==46.4.0; python_version >= '3.5' wheel==0.34.2 -Jinja2==2.11.1 -packaging==20.3 -tox==3.14.6 +Jinja2==2.11.2 +packaging==20.4 +tox==3.15.0 tox-monorepo==0.1.2 -twine==1.15.0 +twine==1.15.0; python_version == '2.7' or python_version == '3.5' +twine==3.1.1; python_version >= '3.6' pathlib2==2.3.5 readme-renderer[md]==25.0 -doc-warden==0.5.4 +doc-warden==0.6.1 +# we pin coverage to 4.5.4 because there is an bug with `pytest-cov`. the generated coverage files cannot be `coverage combine`ed coverage==4.5.4 -codecov==2.0.22 -beautifulsoup4==4.8.2 +codecov==2.1.0 +beautifulsoup4==4.9.1 pkginfo==1.5.0.1 # locking packages defined as deps from azure-sdk-tools or azure-devtools pytoml==0.1.21 pyOpenSSL==19.1.0 json-delta==2.0 -ConfigArgParse==1.1 +ConfigArgParse==1.2.3 six==1.14.0 vcrpy==3.0.0 pyyaml==5.3.1 -pytest==5.4.1; python_version >= '3.5' +pytest==5.4.2; python_version >= '3.5' pytest==4.6.9; python_version == '2.7' pytest-cov==2.8.1 # local dev packages ./tools/azure-devtools ./tools/azure-sdk-tools - - - diff --git a/eng/test_tools.txt b/eng/test_tools.txt index 1a8641df165d..566e3d544c0c 100644 --- a/eng/test_tools.txt +++ b/eng/test_tools.txt @@ -1,10 +1,11 @@ # requirements leveraged by ci for testing -pytest==5.4.1; python_version >= '3.5' pytest==4.6.9; python_version == '2.7' -pytest-asyncio==0.10.0; python_version >= '3.5' +pytest==5.4.2; python_version >= '3.5' +pytest-asyncio==0.12.0; python_version >= '3.5' pytest-cov==2.8.1 pytest-custom-exit-code==0.3.0 -pytest-xdist==1.31.0 +pytest-xdist==1.32.0 +# we pin coverage to 4.5.4 because there is an bug with `pytest-cov`. the generated coverage files cannot be `coverage combine`ed coverage==4.5.4 # locking packages defined as deps from azure-sdk-tools or azure-devtools @@ -12,18 +13,17 @@ pytoml==0.1.21 readme-renderer[md]==25.0 pyOpenSSL==19.1.0 json-delta==2.0 -ConfigArgParse==1.1 +ConfigArgParse==1.2.3 six==1.14.0 vcrpy==3.0.0 pyyaml==5.3.1 -packaging==20.3 +packaging==20.4 wheel==0.34.2 -Jinja2==2.11.1 +Jinja2==2.11.2 # Locking pylint and required packages -pylint==2.3.1; python_version >= '3.4' pylint==1.8.4; python_version < '3.4' -astroid==2.3.3; python_version >= '3.4' +pylint==2.5.2; python_version >= '3.4' ../../../tools/azure-devtools ../../../tools/azure-sdk-tools From ca1d3d78ddceb0a7f16702a73bfd088664528a99 Mon Sep 17 00:00:00 2001 From: Krista Pratico Date: Tue, 26 May 2020 10:48:41 -0700 Subject: [PATCH 02/15] fix custom checkers - rename msg_id -> msgid --- .../pylint_guidelines_checker.py | 68 +++++++++---------- 1 file changed, 34 insertions(+), 34 deletions(-) diff --git a/scripts/pylint_custom_plugin/pylint_guidelines_checker.py b/scripts/pylint_custom_plugin/pylint_guidelines_checker.py index cd1bd4920a7d..e62a68296254 100644 --- a/scripts/pylint_custom_plugin/pylint_guidelines_checker.py +++ b/scripts/pylint_custom_plugin/pylint_guidelines_checker.py @@ -72,11 +72,11 @@ def visit_functiondef(self, node): arg_names = [argument.name for argument in node.args.args] if "credential" not in arg_names: self.add_message( - msg_id="missing-client-constructor-parameter-credential", node=node, confidence=None + msgid="missing-client-constructor-parameter-credential", node=node, confidence=None ) if not node.args.kwarg: self.add_message( - msg_id="missing-client-constructor-parameter-kwargs", node=node, confidence=None + msgid="missing-client-constructor-parameter-kwargs", node=node, confidence=None ) except AttributeError: logger.debug("Pylint custom checker failed to check if constructor has correct parameters.") @@ -128,7 +128,7 @@ def visit_functiondef(self, node): if line.find("Policy") != -1: if line.find("**kwargs") == -1: self.add_message( - msg_id="config-missing-kwargs-in-policy", + msgid="config-missing-kwargs-in-policy", node=list(node.get_children())[idx], confidence=None ) @@ -188,7 +188,7 @@ def visit_classdef(self, node): prefix = method.name.split("_")[0] if prefix.lower() not in approved_prefixes: self.add_message( - msg_id="unapproved-client-method-name-prefix", + msgid="unapproved-client-method-name-prefix", node=client_methods[idx], confidence=None ) @@ -242,7 +242,7 @@ def visit_functiondef(self, node): positional_args = len(node.args.args) - len(node.args.defaults) if positional_args > 6: self.add_message( - msg_id="client-method-has-more-than-5-positional-arguments", node=node, confidence=None + msgid="client-method-has-more-than-5-positional-arguments", node=node, confidence=None ) except AttributeError: logger.debug("Pylint custom checker failed to check if kwargs is used for multiple parameters.") @@ -308,7 +308,7 @@ def visit_functiondef(self, node): # Note that if the method returns nothing it will be of type ast.Const.NoneType if (type_annotations == [] and len(node.args.args) > 1) or node.returns is None: self.add_message( - msg_id="client-method-missing-type-annotations", node=node, confidence=None + msgid="client-method-missing-type-annotations", node=node, confidence=None ) except AttributeError: logger.debug("Pylint custom checker failed to check if client methods missing type annotations.") @@ -377,7 +377,7 @@ def visit_functiondef(self, node): if node.args.kwarg and "azure.core.tracing.decorator.distributed_trace" not in node.decoratornames() \ and "builtins.classmethod" not in node.decoratornames(): self.add_message( - msg_id="client-method-missing-tracing-decorator", node=node, confidence=None + msgid="client-method-missing-tracing-decorator", node=node, confidence=None ) except AttributeError: pass @@ -398,7 +398,7 @@ def visit_asyncfunctiondef(self, node): if node.args.kwarg and "azure.core.tracing.decorator_async.distributed_trace_async" not in \ node.decoratornames() and "builtins.classmethod" not in node.decoratornames(): self.add_message( - msg_id="client-method-missing-tracing-decorator-async", node=node, confidence=None + msgid="client-method-missing-tracing-decorator-async", node=node, confidence=None ) except AttributeError: pass @@ -446,7 +446,7 @@ def visit_functiondef(self, node): if not node.name.startswith("_") and node.decorators is not None: if "builtins.staticmethod" in node.decoratornames(): self.add_message( - msg_id="client-method-should-not-use-static-method", node=node, confidence=None + msgid="client-method-should-not-use-static-method", node=node, confidence=None ) except AttributeError: logger.debug("Pylint custom checker failed to check if client methods do not use staticmethods.") @@ -495,7 +495,7 @@ def visit_module(self, node): header = node.stream().read(200).lower() if header.find(b'copyright') == -1: self.add_message( - msg_id="file-needs-copyright-header", node=node, confidence=None + msgid="file-needs-copyright-header", node=node, confidence=None ) except AttributeError: logger.debug("Pylint custom checker failed to check if file is missing a copyright header.") @@ -544,7 +544,7 @@ def visit_classdef(self, node): if "_" in node.name or node.name.endswith("client") or node.name[0] != node.name[0].upper(): if not node.name.startswith("_") and node.name not in self.ignore_clients: self.add_message( - msg_id="client-incorrect-naming-convention", node=node, confidence=None + msgid="client-incorrect-naming-convention", node=node, confidence=None ) # check for correct naming convention in any class constants @@ -554,7 +554,7 @@ def visit_classdef(self, node): const_name = node.body[idx].targets[0].name if const_name != const_name.upper(): self.add_message( - msg_id="client-incorrect-naming-convention", node=node.body[idx], confidence=None + msgid="client-incorrect-naming-convention", node=node.body[idx], confidence=None ) except AttributeError: logger.debug("Pylint custom checker failed to check if client uses correct naming conventions.") @@ -565,7 +565,7 @@ def visit_classdef(self, node): for func in node.body: if func.name != func.name.lower() and not func.name.startswith("_"): self.add_message( - msg_id="client-incorrect-naming-convention", node=func, confidence=None + msgid="client-incorrect-naming-convention", node=func, confidence=None ) except AttributeError: logger.debug("Pylint custom checker failed to check if client uses correct naming conventions.") @@ -619,7 +619,7 @@ def visit_functiondef(self, node): "azure.core.tracing.decorator_async.distributed_trace_async" in node.decoratornames()): if not node.args.kwarg: self.add_message( - msg_id="client-method-missing-kwargs", node=node, confidence=None + msgid="client-method-missing-kwargs", node=node, confidence=None ) except AttributeError: logger.debug("Pylint custom checker failed to check if client uses kwargs parameter in method.") @@ -669,7 +669,7 @@ def visit_functiondef(self, node): if node.parent.name.endswith("Client") and node.is_method() and node.parent.name not in self.ignore_clients: if node.name.startswith("__") and node.name not in self.acceptable_names: self.add_message( - msg_id="client-method-name-no-double-underscore", node=node, confidence=None + msgid="client-method-name-no-double-underscore", node=node, confidence=None ) except AttributeError: logger.debug("Pylint custom checker failed to check if client method name does not use double underscore prefix.") @@ -720,7 +720,7 @@ def visit_classdef(self, node): if node.name.endswith("Client") and node.name not in self.ignore_clients: if node.doc.find("code-block") != -1: self.add_message( - msg_id="client-docstring-use-literal-include", node=node, confidence=None + msgid="client-docstring-use-literal-include", node=node, confidence=None ) except AttributeError: logger.debug("Pylint custom checker failed to check if client uses literalinclude over code-block.") @@ -738,7 +738,7 @@ def visit_functiondef(self, node): if node.parent.name.endswith("Client") and node.parent.name not in self.ignore_clients and node.is_method(): if node.doc.find("code-block") != -1: self.add_message( - msg_id="client-docstring-use-literal-include", node=node, confidence=None + msgid="client-docstring-use-literal-include", node=node, confidence=None ) except AttributeError: logger.debug("Pylint custom checker failed to check if client uses literalinclude over code-block.") @@ -789,7 +789,7 @@ def visit_classdef(self, node): if node.name.endswith("Client") and "async" in node.name.lower() and "base" not in node.name.lower(): if not node.name.startswith("_") and node.name not in self.ignore_clients: self.add_message( - msg_id="async-client-bad-name", node=node, confidence=None + msgid="async-client-bad-name", node=node, confidence=None ) except AttributeError: logger.debug("Pylint custom checker failed to check if async client uses correct naming.") @@ -840,7 +840,7 @@ def visit_call(self, node): # node.args represent positional arguments if len(node.args) > 2 and node.func.attrname != "format": self.add_message( - msg_id="specify-parameter-names-in-call", node=node, confidence=None + msgid="specify-parameter-names-in-call", node=node, confidence=None ) except AttributeError: logger.debug("Pylint custom checker failed to check if client methods specify parameters name in call.") @@ -892,7 +892,7 @@ def visit_functiondef(self, node): returns = next(node.infer_call_result()).as_string() if returns.find("ItemPaged") == -1 and returns.find("AsyncItemPaged") == -1: self.add_message( - msg_id="client-list-methods-use-paging", node=node, confidence=None + msgid="client-list-methods-use-paging", node=node, confidence=None ) except (astroid.exceptions.InferenceError, AttributeError): # astroid can't always infer the return logger.debug("Pylint custom checker failed to check if client list method uses core paging.") @@ -947,7 +947,7 @@ def visit_functiondef(self, node): returns = next(node.infer_call_result()).as_string() if returns.find("LROPoller") == -1: self.add_message( - msg_id="client-lro-methods-use-polling", node=node, confidence=None + msgid="client-lro-methods-use-polling", node=node, confidence=None ) except (astroid.exceptions.InferenceError, AttributeError): # astroid can't always infer the return logger.debug("Pylint custom checker failed to check if client begin method uses core polling.") @@ -1008,7 +1008,7 @@ def visit_return(self, node): method = node.value.func.scope() if not method.name.startswith("begin") and not method.name.startswith("_"): self.add_message( - msg_id="lro-methods-use-correct-naming", node=method, confidence=None + msgid="lro-methods-use-correct-naming", node=method, confidence=None ) except AttributeError: logger.debug("Pylint custom checker failed to check if client method with polling uses correct naming.") @@ -1059,7 +1059,7 @@ def visit_classdef(self, node): for argument in func.args.args: if argument.name == "connection_string" or argument.name == "conn_str": self.add_message( - msg_id="connection-string-should-not-be-constructor-param", node=node, confidence=None + msgid="connection-string-should-not-be-constructor-param", node=node, confidence=None ) except AttributeError: logger.debug("Pylint custom checker failed to check if client uses connection string param in constructor.") @@ -1109,7 +1109,7 @@ def visit_module(self, node): package = nod.value if package.value.find(".") != -1 or package.value.find("_") != -1: self.add_message( - msg_id="package-name-incorrect", node=node, confidence=None + msgid="package-name-incorrect", node=node, confidence=None ) except Exception: logger.debug("Pylint custom checker failed to check if package name is correct.") @@ -1164,7 +1164,7 @@ def visit_module(self, node): has_client_suffix = True if has_client_suffix is False: self.add_message( - msg_id="client-suffix-needed", node=node, confidence=None + msgid="client-suffix-needed", node=node, confidence=None ) except Exception: logger.debug("Pylint custom checker failed to check if service client has a client suffix.") @@ -1315,7 +1315,7 @@ def check_parameters(self, node): if missing_params: self.add_message( - msg_id="docstring-missing-param", args=(", ".join(missing_params)), node=node, confidence=None + msgid="docstring-missing-param", args=(", ".join(missing_params)), node=node, confidence=None ) # check if we have a type for each param and check if documented params that should be keywords @@ -1329,12 +1329,12 @@ def check_parameters(self, node): if missing_types: self.add_message( - msg_id="docstring-missing-type", args=(", ".join(missing_types)), node=node, confidence=None + msgid="docstring-missing-type", args=(", ".join(missing_types)), node=node, confidence=None ) if should_be_keywords: self.add_message( - msg_id="docstring-should-be-keyword", + msgid="docstring-should-be-keyword", args=(", ".join(should_be_keywords)), node=node, confidence=None @@ -1370,11 +1370,11 @@ def check_return(self, node): if has_return is False: self.add_message( - msg_id="docstring-missing-return", node=node, confidence=None + msgid="docstring-missing-return", node=node, confidence=None ) if has_rtype is False: self.add_message( - msg_id="docstring-missing-rtype", node=node, confidence=None + msgid="docstring-missing-rtype", node=node, confidence=None ) def visit_classdef(self, node): @@ -1602,22 +1602,22 @@ def close(self): if self.disable_logging_error is False: if "NetworkTraceLoggingPolicy" not in self.has_policies: self.add_message( - msg_id="missing-logging-policy", node=self.node_to_use, confidence=None + msgid="missing-logging-policy", node=self.node_to_use, confidence=None ) if self.disable_retry_error is False: if "RetryPolicy" not in self.has_policies: self.add_message( - msg_id="missing-retry-policy", node=self.node_to_use, confidence=None + msgid="missing-retry-policy", node=self.node_to_use, confidence=None ) if self.disable_user_agent_error is False: if "UserAgentPolicy" not in self.has_policies: self.add_message( - msg_id="missing-user-agent-policy", node=self.node_to_use, confidence=None + msgid="missing-user-agent-policy", node=self.node_to_use, confidence=None ) if self.disable_tracing_error is False: if "DistributedTracingPolicy" not in self.has_policies: self.add_message( - msg_id="missing-distributed-tracing-policy", node=self.node_to_use, confidence=None + msgid="missing-distributed-tracing-policy", node=self.node_to_use, confidence=None ) From 1e57ff8ebd79a8462302847ef9bb63e3fa5c2c49 Mon Sep 17 00:00:00 2001 From: Krista Pratico Date: Tue, 26 May 2020 11:20:15 -0700 Subject: [PATCH 03/15] pylint updates for text analytics and form recognizer --- scripts/pylint_custom_plugin/README.md | 2 +- .../azure/ai/textanalytics/aio/_policies_async.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/scripts/pylint_custom_plugin/README.md b/scripts/pylint_custom_plugin/README.md index adb1e0e4a694..963a3d098916 100644 --- a/scripts/pylint_custom_plugin/README.md +++ b/scripts/pylint_custom_plugin/README.md @@ -3,7 +3,7 @@ In order to lint for the guidelines, you must make sure you are using the pylintrc file. It is recommended you run pylint at the library package level to be consistent with how the CI runs pylint. -Check that you are running pylint version >=2.31 and astroid version >=2.25. +Check that you are running pylint version >=2.5.2 and astroid version >=2.4.1. **How to run pylint locally using the pylintrc:** diff --git a/sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/aio/_policies_async.py b/sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/aio/_policies_async.py index c8ba797a8743..9fffbd2fe8d3 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/aio/_policies_async.py +++ b/sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/aio/_policies_async.py @@ -16,10 +16,10 @@ def __init__(self, **kwargs): self._response_callback = kwargs.get('raw_response_hook') super(AsyncTextAnalyticsResponseHookPolicy, self).__init__() - async def on_request(self, request): + async def on_request(self, request): # pylint: disable=invalid-overridden-method self._response_callback = request.context.options.pop("raw_response_hook", self._response_callback) - async def on_response(self, request, response): + async def on_response(self, request, response): # pylint: disable=invalid-overridden-method if self._response_callback: data = ContentDecodePolicy.deserialize_from_http_generics(response.http_response) statistics = data.get("statistics", None) From 29dc610accc2424d3220fa3611242d0b08c49ec7 Mon Sep 17 00:00:00 2001 From: Charles Lowell Date: Tue, 26 May 2020 12:47:22 -0700 Subject: [PATCH 04/15] pylint updates for azure-identity and azure-keyvault-keys --- sdk/identity/azure-identity/azure/identity/aio/_authn_client.py | 2 +- .../azure-identity/azure/identity/aio/_internal/aad_client.py | 2 +- .../azure/keyvault/keys/crypto/_internal/algorithms/aes_cbc.py | 2 -- .../keyvault/keys/crypto/_internal/algorithms/aes_cbc_hmac.py | 2 ++ .../azure/keyvault/keys/crypto/_internal/algorithms/ecdsa.py | 2 ++ .../keyvault/keys/crypto/_internal/algorithms/rsa_signing.py | 1 + .../azure/keyvault/keys/crypto/_internal/algorithms/sha_2.py | 1 + 7 files changed, 8 insertions(+), 4 deletions(-) diff --git a/sdk/identity/azure-identity/azure/identity/aio/_authn_client.py b/sdk/identity/azure-identity/azure/identity/aio/_authn_client.py index 9cfe13bd9498..53cc9fc32959 100644 --- a/sdk/identity/azure-identity/azure/identity/aio/_authn_client.py +++ b/sdk/identity/azure-identity/azure/identity/aio/_authn_client.py @@ -64,7 +64,7 @@ async def __aexit__(self, *args): async def close(self) -> None: await self._pipeline.__aexit__() - async def request_token( + async def request_token( # pylint:disable=invalid-overridden-method self, scopes: "Iterable[str]", method: "Optional[str]" = "POST", diff --git a/sdk/identity/azure-identity/azure/identity/aio/_internal/aad_client.py b/sdk/identity/azure-identity/azure/identity/aio/_internal/aad_client.py index ceb96ba87d21..4a2edabb65b7 100644 --- a/sdk/identity/azure-identity/azure/identity/aio/_internal/aad_client.py +++ b/sdk/identity/azure-identity/azure/identity/aio/_internal/aad_client.py @@ -48,7 +48,7 @@ def _get_client_session(self, **kwargs): return MsalTransportAdapter(**kwargs) @wrap_exceptions - async def _obtain_token( + async def _obtain_token( # pylint:disable=invalid-overridden-method self, scopes: "Iterable[str]", fn: "Callable", loop: "asyncio.AbstractEventLoop", executor=None, **kwargs: "Any" ) -> "AccessToken": now = int(time.time()) diff --git a/sdk/keyvault/azure-keyvault-keys/azure/keyvault/keys/crypto/_internal/algorithms/aes_cbc.py b/sdk/keyvault/azure-keyvault-keys/azure/keyvault/keys/crypto/_internal/algorithms/aes_cbc.py index 8e7d22e58e68..459f4c094e6f 100644 --- a/sdk/keyvault/azure-keyvault-keys/azure/keyvault/keys/crypto/_internal/algorithms/aes_cbc.py +++ b/sdk/keyvault/azure-keyvault-keys/azure/keyvault/keys/crypto/_internal/algorithms/aes_cbc.py @@ -39,7 +39,6 @@ def finalize(self, data): padded = self._ctx.finalize() return self._padder.update(padded) + self._padder.finalize() - @property def block_size(self): # return self._cipher.block_size raise NotImplementedError() @@ -59,7 +58,6 @@ def finalize(self, data): padded = self._padder.finalize() return self._ctx.update(padded) + self._ctx.finalize() - @property def block_size(self): # return self._cipher.block_size raise NotImplementedError() diff --git a/sdk/keyvault/azure-keyvault-keys/azure/keyvault/keys/crypto/_internal/algorithms/aes_cbc_hmac.py b/sdk/keyvault/azure-keyvault-keys/azure/keyvault/keys/crypto/_internal/algorithms/aes_cbc_hmac.py index efb80716441d..a6016bd30503 100644 --- a/sdk/keyvault/azure-keyvault-keys/azure/keyvault/keys/crypto/_internal/algorithms/aes_cbc_hmac.py +++ b/sdk/keyvault/azure-keyvault-keys/azure/keyvault/keys/crypto/_internal/algorithms/aes_cbc_hmac.py @@ -15,6 +15,8 @@ class _AesCbcHmacCryptoTransform(AuthenticatedCryptoTransform): def __init__(self, key, iv, auth_data, auth_tag): + super(_AesCbcHmacCryptoTransform, self).__init__() + self._aes_key = key[: len(key) // 2] self._hmac_key = key[len(key) // 2 :] hash_algo = {256: hashes.SHA256(), 384: hashes.SHA384(), 512: hashes.SHA512()}[len(key) * 8] diff --git a/sdk/keyvault/azure-keyvault-keys/azure/keyvault/keys/crypto/_internal/algorithms/ecdsa.py b/sdk/keyvault/azure-keyvault-keys/azure/keyvault/keys/crypto/_internal/algorithms/ecdsa.py index 07f6a19f9712..cff7410a6b44 100644 --- a/sdk/keyvault/azure-keyvault-keys/azure/keyvault/keys/crypto/_internal/algorithms/ecdsa.py +++ b/sdk/keyvault/azure-keyvault-keys/azure/keyvault/keys/crypto/_internal/algorithms/ecdsa.py @@ -12,6 +12,8 @@ class _EcdsaSignatureTransform(SignatureTransform): def __init__(self, key, hash_algorithm): + super(_EcdsaSignatureTransform, self).__init__() + self._key = key self._hash_algorithm = hash_algorithm diff --git a/sdk/keyvault/azure-keyvault-keys/azure/keyvault/keys/crypto/_internal/algorithms/rsa_signing.py b/sdk/keyvault/azure-keyvault-keys/azure/keyvault/keys/crypto/_internal/algorithms/rsa_signing.py index ffa4628a435b..885070631b85 100644 --- a/sdk/keyvault/azure-keyvault-keys/azure/keyvault/keys/crypto/_internal/algorithms/rsa_signing.py +++ b/sdk/keyvault/azure-keyvault-keys/azure/keyvault/keys/crypto/_internal/algorithms/rsa_signing.py @@ -11,6 +11,7 @@ class RsaSignatureTransform(SignatureTransform): def __init__(self, key, padding_function, hash_algorithm): + super(RsaSignatureTransform, self).__init__() self._key = key self._padding_function = padding_function self._hash_algorithm = hash_algorithm diff --git a/sdk/keyvault/azure-keyvault-keys/azure/keyvault/keys/crypto/_internal/algorithms/sha_2.py b/sdk/keyvault/azure-keyvault-keys/azure/keyvault/keys/crypto/_internal/algorithms/sha_2.py index 26c947808dc6..c6656b0493c5 100644 --- a/sdk/keyvault/azure-keyvault-keys/azure/keyvault/keys/crypto/_internal/algorithms/sha_2.py +++ b/sdk/keyvault/azure-keyvault-keys/azure/keyvault/keys/crypto/_internal/algorithms/sha_2.py @@ -11,6 +11,7 @@ class _Sha2DigestTransform(DigestTransform): def __init__(self, algorithm): + super(_Sha2DigestTransform, self).__init__() self._digest = hashes.Hash(algorithm=algorithm, backend=default_backend()) def update(self, data): From 2e8b86547f00cb682aed3e3071e1899287bbfa9f Mon Sep 17 00:00:00 2001 From: Charles Lowell Date: Tue, 26 May 2020 13:03:42 -0700 Subject: [PATCH 05/15] disable import-outside-toplevel --- pylintrc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pylintrc b/pylintrc index 399344e8ea99..a0b68cb3f45a 100644 --- a/pylintrc +++ b/pylintrc @@ -14,7 +14,7 @@ load-plugins=pylint_guidelines_checker # cyclic-import: because of https://github.com/PyCQA/pylint/issues/850 # too-many-arguments: Due to the nature of the CLI many commands have large arguments set which reflect in large arguments set in corresponding methods. # Let's black deal with bad-continuation -disable=useless-object-inheritance,missing-docstring,locally-disabled,fixme,cyclic-import,too-many-arguments,invalid-name,duplicate-code,too-few-public-methods,bad-continuation,check-docstrings +disable=useless-object-inheritance,missing-docstring,locally-disabled,fixme,cyclic-import,too-many-arguments,invalid-name,duplicate-code,too-few-public-methods,bad-continuation,check-docstrings,import-outside-toplevel [FORMAT] max-line-length=120 From 2870fd0e8de5faf3a0a58900566c2d6a87482c7d Mon Sep 17 00:00:00 2001 From: Laurent Mazuel Date: Wed, 27 May 2020 10:34:12 -0700 Subject: [PATCH 06/15] Pylint for azure-core --- sdk/core/azure-core/azure/core/pipeline/_base.py | 2 +- .../core/pipeline/policies/_authentication_async.py | 2 +- .../azure/core/pipeline/policies/_redirect_async.py | 2 +- .../azure/core/pipeline/policies/_retry_async.py | 8 ++++---- .../azure/core/pipeline/transport/_base.py | 2 +- .../core/pipeline/transport/_requests_asyncio.py | 4 ++-- .../azure/core/pipeline/transport/_requests_trio.py | 4 ++-- .../azure-core/azure/core/polling/_async_poller.py | 2 +- .../azure/core/polling/async_base_polling.py | 12 ++++++------ .../azure/mgmt/core/policies/_base_async.py | 2 +- 10 files changed, 20 insertions(+), 20 deletions(-) diff --git a/sdk/core/azure-core/azure/core/pipeline/_base.py b/sdk/core/azure-core/azure/core/pipeline/_base.py index 905111135eaf..b67721dec26f 100644 --- a/sdk/core/azure-core/azure/core/pipeline/_base.py +++ b/sdk/core/azure-core/azure/core/pipeline/_base.py @@ -176,7 +176,7 @@ def prepare_requests(req): with concurrent.futures.ThreadPoolExecutor() as executor: # List comprehension to raise exceptions if happened - [ # pylint: disable=expression-not-assigned + [ # pylint: disable=expression-not-assigned, unnecessary-comprehension _ for _ in executor.map(prepare_requests, requests) ] diff --git a/sdk/core/azure-core/azure/core/pipeline/policies/_authentication_async.py b/sdk/core/azure-core/azure/core/pipeline/policies/_authentication_async.py index ca55a9c93e7c..5e28398fdff9 100644 --- a/sdk/core/azure-core/azure/core/pipeline/policies/_authentication_async.py +++ b/sdk/core/azure-core/azure/core/pipeline/policies/_authentication_async.py @@ -23,7 +23,7 @@ def __init__(self, credential, *scopes, **kwargs): super().__init__(credential, *scopes, **kwargs) self._lock = threading.Lock() - async def on_request(self, request: PipelineRequest): + async def on_request(self, request: PipelineRequest): # pylint:disable=invalid-overridden-method """Adds a bearer token Authorization header to request and sends request to next policy. :param request: The pipeline request object to be modified. diff --git a/sdk/core/azure-core/azure/core/pipeline/policies/_redirect_async.py b/sdk/core/azure-core/azure/core/pipeline/policies/_redirect_async.py index f9d688bdd4c3..43f52aa0af3b 100644 --- a/sdk/core/azure-core/azure/core/pipeline/policies/_redirect_async.py +++ b/sdk/core/azure-core/azure/core/pipeline/policies/_redirect_async.py @@ -48,7 +48,7 @@ class AsyncRedirectPolicy(RedirectPolicy, AsyncHTTPPolicy): :caption: Configuring an async redirect policy. """ - async def send(self, request): + async def send(self, request): # pylint:disable=invalid-overridden-method """Sends the PipelineRequest object to the next policy. Uses redirect settings to send the request to redirect endpoint if necessary. diff --git a/sdk/core/azure-core/azure/core/pipeline/policies/_retry_async.py b/sdk/core/azure-core/azure/core/pipeline/policies/_retry_async.py index 6efad6cf1627..28436a5fd738 100644 --- a/sdk/core/azure-core/azure/core/pipeline/policies/_retry_async.py +++ b/sdk/core/azure-core/azure/core/pipeline/policies/_retry_async.py @@ -80,7 +80,7 @@ class AsyncRetryPolicy(RetryPolicy, AsyncHTTPPolicy): :caption: Configuring an async retry policy. """ - async def _sleep_for_retry(self, response, transport): + async def _sleep_for_retry(self, response, transport): # pylint:disable=invalid-overridden-method """Sleep based on the Retry-After response header value. :param response: The PipelineResponse object. @@ -93,7 +93,7 @@ async def _sleep_for_retry(self, response, transport): return True return False - async def _sleep_backoff(self, settings, transport): + async def _sleep_backoff(self, settings, transport): # pylint:disable=invalid-overridden-method """Sleep using exponential backoff. Immediately returns if backoff is 0. :param dict settings: The retry settings. @@ -104,7 +104,7 @@ async def _sleep_backoff(self, settings, transport): return await transport.sleep(backoff) - async def sleep(self, settings, transport, response=None): + async def sleep(self, settings, transport, response=None): # pylint:disable=invalid-overridden-method """Sleep between retry attempts. This method will respect a server's ``Retry-After`` response header @@ -123,7 +123,7 @@ async def sleep(self, settings, transport, response=None): return await self._sleep_backoff(settings, transport) - async def send(self, request): + async def send(self, request): # pylint:disable=invalid-overridden-method """Uses the configured retry policy to send the request to the next policy in the pipeline. :param request: The PipelineRequest object diff --git a/sdk/core/azure-core/azure/core/pipeline/transport/_base.py b/sdk/core/azure-core/azure/core/pipeline/transport/_base.py index d6e14b4f6876..15b3f7fa074f 100644 --- a/sdk/core/azure-core/azure/core/pipeline/transport/_base.py +++ b/sdk/core/azure-core/azure/core/pipeline/transport/_base.py @@ -591,7 +591,7 @@ def parse_responses(response): with concurrent.futures.ThreadPoolExecutor() as executor: # List comprehension to raise exceptions if happened - [ # pylint: disable=expression-not-assigned + [ # pylint: disable=expression-not-assigned, unnecessary-comprehension _ for _ in executor.map(parse_responses, responses) ] diff --git a/sdk/core/azure-core/azure/core/pipeline/transport/_requests_asyncio.py b/sdk/core/azure-core/azure/core/pipeline/transport/_requests_asyncio.py index 4b3494c44931..340fd2a45c82 100644 --- a/sdk/core/azure-core/azure/core/pipeline/transport/_requests_asyncio.py +++ b/sdk/core/azure-core/azure/core/pipeline/transport/_requests_asyncio.py @@ -79,10 +79,10 @@ async def __aenter__(self): async def __aexit__(self, *exc_details): # pylint: disable=arguments-differ return super(AsyncioRequestsTransport, self).__exit__() - async def sleep(self, duration): + async def sleep(self, duration): # pylint:disable=invalid-overridden-method await asyncio.sleep(duration) - async def send(self, request: HttpRequest, **kwargs: Any) -> AsyncHttpResponse: # type: ignore + async def send(self, request: HttpRequest, **kwargs: Any) -> AsyncHttpResponse: # type: ignore pylint:disable=invalid-overridden-method """Send the request using this HTTP sender. :param request: The HttpRequest diff --git a/sdk/core/azure-core/azure/core/pipeline/transport/_requests_trio.py b/sdk/core/azure-core/azure/core/pipeline/transport/_requests_trio.py index 67926d70420d..c32c08ef18f4 100644 --- a/sdk/core/azure-core/azure/core/pipeline/transport/_requests_trio.py +++ b/sdk/core/azure-core/azure/core/pipeline/transport/_requests_trio.py @@ -150,10 +150,10 @@ async def __aenter__(self): async def __aexit__(self, *exc_details): # pylint: disable=arguments-differ return super(TrioRequestsTransport, self).__exit__() - async def sleep(self, duration): + async def sleep(self, duration): # pylint:disable=invalid-overridden-method await trio.sleep(duration) - async def send(self, request: HttpRequest, **kwargs: Any) -> AsyncHttpResponse: # type: ignore + async def send(self, request: HttpRequest, **kwargs: Any) -> AsyncHttpResponse: # type: ignore pylint:disable=invalid-overridden-method """Send the request using this HTTP sender. :param request: The HttpRequest diff --git a/sdk/core/azure-core/azure/core/polling/_async_poller.py b/sdk/core/azure-core/azure/core/polling/_async_poller.py index cb71d054cfa4..c4dc36a267c3 100644 --- a/sdk/core/azure-core/azure/core/polling/_async_poller.py +++ b/sdk/core/azure-core/azure/core/polling/_async_poller.py @@ -52,7 +52,7 @@ def resource(self) -> PollingReturnType: class AsyncNoPolling(_NoPolling): """An empty async poller that returns the deserialized initial response. """ - async def run(self): + async def run(self): # pylint:disable=invalid-overridden-method """Empty run, no polling. Just override initial run to add "async" """ diff --git a/sdk/core/azure-core/azure/core/polling/async_base_polling.py b/sdk/core/azure-core/azure/core/polling/async_base_polling.py index d8676b0e6634..c62ea4c00fa4 100644 --- a/sdk/core/azure-core/azure/core/polling/async_base_polling.py +++ b/sdk/core/azure-core/azure/core/polling/async_base_polling.py @@ -40,7 +40,7 @@ class AsyncLROBasePolling(LROBasePolling): """A subclass or LROBasePolling that redefine "run" as async. """ - async def run(self): + async def run(self): # pylint:disable=invalid-overridden-method try: await self._poll() except BadStatus as err: @@ -62,7 +62,7 @@ async def run(self): response=self._pipeline_response.http_response, error=err ) - async def _poll(self): + async def _poll(self): # pylint:disable=invalid-overridden-method """Poll status of operation so long as operation is incomplete and we have an endpoint to query. @@ -85,17 +85,17 @@ async def _poll(self): self._pipeline_response = await self.request_status(final_get_url) _raise_if_bad_http_status_and_method(self._pipeline_response.http_response) - async def _sleep(self, delay): + async def _sleep(self, delay): # pylint:disable=invalid-overridden-method await self._transport.sleep(delay) - async def _delay(self): + async def _delay(self): # pylint:disable=invalid-overridden-method """Check for a 'retry-after' header to set timeout, otherwise use configured timeout. """ delay = self._extract_delay() await self._sleep(delay) - async def update_status(self): + async def update_status(self): # pylint:disable=invalid-overridden-method """Update the current status of the LRO. """ self._pipeline_response = await self.request_status( @@ -104,7 +104,7 @@ async def update_status(self): _raise_if_bad_http_status_and_method(self._pipeline_response.http_response) self._status = self._operation.get_status(self._pipeline_response) - async def request_status(self, status_link): + async def request_status(self, status_link): # pylint:disable=invalid-overridden-method """Do a simple GET to this status link. This method re-inject 'x-ms-client-request-id'. diff --git a/sdk/core/azure-mgmt-core/azure/mgmt/core/policies/_base_async.py b/sdk/core/azure-mgmt-core/azure/mgmt/core/policies/_base_async.py index 90de3ea028d5..1d12e480049b 100644 --- a/sdk/core/azure-mgmt-core/azure/mgmt/core/policies/_base_async.py +++ b/sdk/core/azure-mgmt-core/azure/mgmt/core/policies/_base_async.py @@ -42,7 +42,7 @@ class AsyncARMAutoResourceProviderRegistrationPolicy( """Auto register an ARM resource provider if not done yet. """ - async def send(self, request: PipelineRequest): + async def send(self, request: PipelineRequest): # pylint: disable=invalid-overridden-method http_request = request.http_request response = await self.next.send(request) if response.http_response.status_code == 409: From ef19556ebf394ed6782a488ad89b55c237a61aaa Mon Sep 17 00:00:00 2001 From: Laurent Mazuel Date: Wed, 27 May 2020 12:03:02 -0700 Subject: [PATCH 07/15] Mypy + pylint are friends --- .../azure/core/pipeline/transport/_requests_asyncio.py | 2 +- .../azure-core/azure/core/pipeline/transport/_requests_trio.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/sdk/core/azure-core/azure/core/pipeline/transport/_requests_asyncio.py b/sdk/core/azure-core/azure/core/pipeline/transport/_requests_asyncio.py index 340fd2a45c82..d82d3ab1f3da 100644 --- a/sdk/core/azure-core/azure/core/pipeline/transport/_requests_asyncio.py +++ b/sdk/core/azure-core/azure/core/pipeline/transport/_requests_asyncio.py @@ -82,7 +82,7 @@ async def __aexit__(self, *exc_details): # pylint: disable=arguments-differ async def sleep(self, duration): # pylint:disable=invalid-overridden-method await asyncio.sleep(duration) - async def send(self, request: HttpRequest, **kwargs: Any) -> AsyncHttpResponse: # type: ignore pylint:disable=invalid-overridden-method + async def send(self, request: HttpRequest, **kwargs: Any) -> AsyncHttpResponse: # type: ignore # pylint:disable=invalid-overridden-method """Send the request using this HTTP sender. :param request: The HttpRequest diff --git a/sdk/core/azure-core/azure/core/pipeline/transport/_requests_trio.py b/sdk/core/azure-core/azure/core/pipeline/transport/_requests_trio.py index c32c08ef18f4..419a8c5d2c02 100644 --- a/sdk/core/azure-core/azure/core/pipeline/transport/_requests_trio.py +++ b/sdk/core/azure-core/azure/core/pipeline/transport/_requests_trio.py @@ -153,7 +153,7 @@ async def __aexit__(self, *exc_details): # pylint: disable=arguments-differ async def sleep(self, duration): # pylint:disable=invalid-overridden-method await trio.sleep(duration) - async def send(self, request: HttpRequest, **kwargs: Any) -> AsyncHttpResponse: # type: ignore pylint:disable=invalid-overridden-method + async def send(self, request: HttpRequest, **kwargs: Any) -> AsyncHttpResponse: # type: ignore # pylint:disable=invalid-overridden-method """Send the request using this HTTP sender. :param request: The HttpRequest From ed68752bb85651b761807e957b5fee14e886ecb1 Mon Sep 17 00:00:00 2001 From: yijxie Date: Wed, 27 May 2020 12:24:52 -0700 Subject: [PATCH 08/15] Fix errors for pylint 2.5.2 --- pylintrc | 2 +- sdk/eventhub/azure-eventhub/azure/eventhub/_utils.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/pylintrc b/pylintrc index a0b68cb3f45a..d71525ef3f83 100644 --- a/pylintrc +++ b/pylintrc @@ -3,7 +3,7 @@ ignore-patterns=test_*,conftest,setup reports=no # PYLINT DIRECTORY BLACKLIST. -ignore=_generated,samples,examples,test,tests,doc,.tox +ignore=_vendor,_generated,samples,examples,test,tests,doc,.tox init-hook='import sys; sys.path.insert(0, os.path.abspath(os.getcwd().rsplit("azure-sdk-for-python", 1)[0] + "azure-sdk-for-python/scripts/pylint_custom_plugin"))' load-plugins=pylint_guidelines_checker diff --git a/sdk/eventhub/azure-eventhub/azure/eventhub/_utils.py b/sdk/eventhub/azure-eventhub/azure/eventhub/_utils.py index e37349a94b06..7b6a95d6cdd7 100644 --- a/sdk/eventhub/azure-eventhub/azure/eventhub/_utils.py +++ b/sdk/eventhub/azure-eventhub/azure/eventhub/_utils.py @@ -181,7 +181,7 @@ def trace_link_message(events, parent_span=None): Will extract DiagnosticId if available. """ - trace_events = events if isinstance(events, Iterable) else (events,) + trace_events = events if isinstance(events, Iterable) else (events,) # pylint:disable=isinstance-second-argument-not-valid-type try: # pylint:disable=too-many-nested-blocks span_impl_type = settings.tracing_implementation() # type: Type[AbstractSpan] if span_impl_type is not None: From f4e52e628a8aa028bc03727b2d9a4eb7ee867d7d Mon Sep 17 00:00:00 2001 From: Charles Lowell Date: Wed, 8 Jul 2020 14:33:48 -0700 Subject: [PATCH 09/15] disable azure-identity warnings --- .../azure/identity/aio/_credentials/certificate.py | 2 +- .../azure-identity/azure/identity/aio/_internal/aad_client.py | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/sdk/identity/azure-identity/azure/identity/aio/_credentials/certificate.py b/sdk/identity/azure-identity/azure/identity/aio/_credentials/certificate.py index 1b044a24c0e1..a569ea5af8db 100644 --- a/sdk/identity/azure-identity/azure/identity/aio/_credentials/certificate.py +++ b/sdk/identity/azure-identity/azure/identity/aio/_credentials/certificate.py @@ -37,7 +37,7 @@ async def close(self): await self._client.__aexit__() - async def get_token(self, *scopes: str, **kwargs: "Any") -> "AccessToken": # pylint:disable=unused-argument + async def get_token(self, *scopes: str, **kwargs: "Any") -> "AccessToken": """Asynchronously request an access token for `scopes`. .. note:: This method is called by Azure SDK clients. It isn't intended for use in application code. diff --git a/sdk/identity/azure-identity/azure/identity/aio/_internal/aad_client.py b/sdk/identity/azure-identity/azure/identity/aio/_internal/aad_client.py index d45f83752bfb..db5065412ae8 100644 --- a/sdk/identity/azure-identity/azure/identity/aio/_internal/aad_client.py +++ b/sdk/identity/azure-identity/azure/identity/aio/_internal/aad_client.py @@ -29,6 +29,7 @@ Policy = Union[AsyncHTTPPolicy, SansIOHTTPPolicy] +# pylint:disable=invalid-overridden-method class AadClient(AadClientBase): async def __aenter__(self): await self._pipeline.__aenter__() From ad5ccf499199a94c7c582d58609928ac2931cb7d Mon Sep 17 00:00:00 2001 From: Scott Beddall Date: Wed, 8 Jul 2020 14:59:17 -0700 Subject: [PATCH 10/15] repin doc-warden while I investigate new error --- eng/ci_tools.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/eng/ci_tools.txt b/eng/ci_tools.txt index 282a3b7e936d..ab463e9daad9 100644 --- a/eng/ci_tools.txt +++ b/eng/ci_tools.txt @@ -11,7 +11,7 @@ twine==1.15.0; python_version == '2.7' or python_version == '3.5' twine==3.1.1; python_version >= '3.6' pathlib2==2.3.5 readme-renderer[md]==25.0 -doc-warden==0.6.1 +doc-warden==0.5.4 # we pin coverage to 4.5.4 because there is an bug with `pytest-cov`. the generated coverage files cannot be `coverage combine`ed coverage==4.5.4 codecov==2.1.0 From 53bb229362535022de9184bdb613175a86dddf38 Mon Sep 17 00:00:00 2001 From: Kieran Brantner-Magee Date: Fri, 10 Jul 2020 12:25:12 -0700 Subject: [PATCH 11/15] Refactor ReceivedMessageBase off such that the AIO version of ReceivedMessage does not violate pylint by overriding sync with async methods. Now the sync-specific/async-specific versions imply implement their respective settlement methods, with the shared scaffolding in base. --- .../azure-servicebus/azure/servicebus/_common/message.py | 6 ++++-- .../azure/servicebus/aio/_async_message.py | 7 +++++-- 2 files changed, 9 insertions(+), 4 deletions(-) diff --git a/sdk/servicebus/azure-servicebus/azure/servicebus/_common/message.py b/sdk/servicebus/azure-servicebus/azure/servicebus/_common/message.py index 69bd3bb7b5e2..80361f35e506 100644 --- a/sdk/servicebus/azure-servicebus/azure/servicebus/_common/message.py +++ b/sdk/servicebus/azure-servicebus/azure/servicebus/_common/message.py @@ -434,7 +434,7 @@ def sequence_number(self): return None -class ReceivedMessage(PeekMessage): +class ReceivedMessageBase(PeekMessage): """ A Service Bus Message received from service side. @@ -452,7 +452,7 @@ class ReceivedMessage(PeekMessage): """ def __init__(self, message, mode=ReceiveSettleMode.PeekLock, **kwargs): - super(ReceivedMessage, self).__init__(message=message) + super(ReceivedMessageBase, self).__init__(message=message) self._settled = (mode == ReceiveSettleMode.ReceiveAndDelete) self._is_deferred_message = kwargs.get("is_deferred_message", False) self.auto_renew_error = None @@ -594,6 +594,8 @@ def _settle_via_receiver_link(self, settle_operation, dead_letter_reason=None, d return functools.partial(self.message.modify, True, True) raise ValueError("Unsupported settle operation type: {}".format(settle_operation)) + +class ReceivedMessage(ReceivedMessageBase): def _settle_message( self, settle_operation, diff --git a/sdk/servicebus/azure-servicebus/azure/servicebus/aio/_async_message.py b/sdk/servicebus/azure-servicebus/azure/servicebus/aio/_async_message.py index a0280dec0768..8e8db462d34e 100644 --- a/sdk/servicebus/azure-servicebus/azure/servicebus/aio/_async_message.py +++ b/sdk/servicebus/azure-servicebus/azure/servicebus/aio/_async_message.py @@ -22,7 +22,7 @@ _LOGGER = logging.getLogger(__name__) -class ReceivedMessage(sync_message.ReceivedMessage): +class ReceivedMessage(sync_message.ReceivedMessageBase): """A Service Bus Message received from service side. """ @@ -51,9 +51,12 @@ async def _settle_message( # type: ignore settle_operation, exception ) - await self._settle_via_mgmt_link(settle_operation, + await get_running_loop().run_in_executor( + None, + self._settle_via_mgmt_link(settle_operation, dead_letter_reason=dead_letter_reason, dead_letter_description=dead_letter_description)() + ) except Exception as e: raise MessageSettleFailed(settle_operation, e) From 5d744cdbafdfa3e3e46ad9ba204458cab4d44aa3 Mon Sep 17 00:00:00 2001 From: Kieran Brantner-Magee Date: Mon, 13 Jul 2020 19:52:50 -0700 Subject: [PATCH 12/15] Temporarily disable pylint checks for AsyncServiceBusSharedKeyCredentialPolicy. In the mid-term we need to deprecate the Async versions of this policy and credential to unify on a single model in the primary namespace, see issue here: https://github.com/Azure/azure-sdk-for-python/issues/12533 --- .../servicebus/aio/management/_shared_key_policy_async.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sdk/servicebus/azure-servicebus/azure/servicebus/aio/management/_shared_key_policy_async.py b/sdk/servicebus/azure-servicebus/azure/servicebus/aio/management/_shared_key_policy_async.py index b63c989fd6c1..a1b93b5e4357 100644 --- a/sdk/servicebus/azure-servicebus/azure/servicebus/aio/management/_shared_key_policy_async.py +++ b/sdk/servicebus/azure-servicebus/azure/servicebus/aio/management/_shared_key_policy_async.py @@ -22,11 +22,11 @@ def __init__(self, endpoint: str, credential: ServiceBusSharedKeyCredential, nam self._token_expiry_on = 0 self._token = None - async def _update_token(self): + async def _update_token(self): # pylint: disable=invalid-overridden-method if self._token_expiry_on + 60 <= time.time(): # Update token if it's expiring in 60 seconds access_token, self._token_expiry_on = await self._credential.get_token(self._endpoint) self._token = access_token.decode("utf-8") - async def on_request(self, request): + async def on_request(self, request): # pylint: disable=invalid-overridden-method await self._update_token() request.http_request.headers[self._name] = self._token From ccdfacb80f18cb4dc4b9a5e287fbacf05513b01e Mon Sep 17 00:00:00 2001 From: Kieran Brantner-Magee Date: Mon, 13 Jul 2020 20:46:20 -0700 Subject: [PATCH 13/15] Fix deferred settlement tests by reverting the mgmt link settlement await. --- .../azure-servicebus/azure/servicebus/aio/_async_message.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/sdk/servicebus/azure-servicebus/azure/servicebus/aio/_async_message.py b/sdk/servicebus/azure-servicebus/azure/servicebus/aio/_async_message.py index 8e8db462d34e..6bd8c7122864 100644 --- a/sdk/servicebus/azure-servicebus/azure/servicebus/aio/_async_message.py +++ b/sdk/servicebus/azure-servicebus/azure/servicebus/aio/_async_message.py @@ -51,12 +51,9 @@ async def _settle_message( # type: ignore settle_operation, exception ) - await get_running_loop().run_in_executor( - None, - self._settle_via_mgmt_link(settle_operation, + await self._settle_via_mgmt_link(settle_operation, dead_letter_reason=dead_letter_reason, dead_letter_description=dead_letter_description)() - ) except Exception as e: raise MessageSettleFailed(settle_operation, e) From 03466a7f4fe9e9f8cfc817a19753519b54e94532 Mon Sep 17 00:00:00 2001 From: xiafu Date: Mon, 13 Jul 2020 19:50:19 -0700 Subject: [PATCH 14/15] [Storage][Pylint]Fix Pylint --- .../azure/storage/blob/changefeed/_models.py | 6 ++++-- .../azure/storage/blob/_quick_query_helper.py | 6 ++++-- .../azure/storage/blob/_shared/authentication.py | 16 ++++++++++------ .../azure/storage/blob/_shared/avro/schema.py | 2 +- .../azure/storage/blob/_shared/policies_async.py | 1 + .../azure/storage/blob/_shared/uploads.py | 6 ++++-- .../azure/storage/blob/aio/_blob_client_async.py | 2 +- .../blob/aio/_blob_service_client_async.py | 2 +- .../storage/blob/aio/_container_client_async.py | 2 +- .../azure/storage/blob/aio/_download_async.py | 1 + .../azure/storage/blob/aio/_lease_async.py | 1 + .../filedatalake/_shared/authentication.py | 16 ++++++++++------ .../filedatalake/_shared/policies_async.py | 1 + .../storage/filedatalake/_shared/uploads.py | 6 ++++-- .../aio/_data_lake_directory_client_async.py | 2 ++ .../aio/_data_lake_file_client_async.py | 1 + .../filedatalake/aio/_data_lake_lease_async.py | 1 + .../aio/_data_lake_service_client_async.py | 2 ++ .../aio/_file_system_client_async.py | 1 + .../filedatalake/aio/_path_client_async.py | 1 + .../storage/fileshare/_shared/authentication.py | 16 ++++++++++------ .../storage/fileshare/_shared/policies_async.py | 1 + .../azure/storage/fileshare/_shared/uploads.py | 6 ++++-- .../fileshare/aio/_directory_client_async.py | 2 +- .../storage/fileshare/aio/_download_async.py | 2 +- .../storage/fileshare/aio/_file_client_async.py | 2 +- .../azure/storage/fileshare/aio/_lease_async.py | 2 +- .../storage/fileshare/aio/_share_client_async.py | 2 +- .../fileshare/aio/_share_service_client_async.py | 2 +- .../storage/queue/_shared/authentication.py | 16 ++++++++++------ .../storage/queue/_shared/policies_async.py | 1 + .../azure/storage/queue/_shared/uploads.py | 6 ++++-- .../storage/queue/aio/_queue_client_async.py | 1 + .../queue/aio/_queue_service_client_async.py | 1 + 34 files changed, 90 insertions(+), 46 deletions(-) diff --git a/sdk/storage/azure-storage-blob-changefeed/azure/storage/blob/changefeed/_models.py b/sdk/storage/azure-storage-blob-changefeed/azure/storage/blob/changefeed/_models.py index b904f751363e..a5d8aef59b32 100644 --- a/sdk/storage/azure-storage-blob-changefeed/azure/storage/blob/changefeed/_models.py +++ b/sdk/storage/azure-storage-blob-changefeed/azure/storage/blob/changefeed/_models.py @@ -384,11 +384,13 @@ def __iter__(self): def seekable(): return True - def next(self): + def __next__(self): next_chunk = next(self._iterator) self._download_offset += len(next_chunk) return next_chunk + next = __next__ # Python 2 compatibility. + def tell(self): return self._point @@ -406,7 +408,7 @@ def read(self, size): try: # keep downloading file content until the buffer has enough bytes to read while self._point + size > self._download_offset: - next_data_chunk = self.next() + next_data_chunk = self.__next__() self._buf += next_data_chunk except StopIteration: pass diff --git a/sdk/storage/azure-storage-blob/azure/storage/blob/_quick_query_helper.py b/sdk/storage/azure-storage-blob/azure/storage/blob/_quick_query_helper.py index ab69dd7ae835..afad9a1727ff 100644 --- a/sdk/storage/azure-storage-blob/azure/storage/blob/_quick_query_helper.py +++ b/sdk/storage/azure-storage-blob/azure/storage/blob/_quick_query_helper.py @@ -148,11 +148,13 @@ def __iter__(self): def seekable(): return True - def next(self): + def __next__(self): next_part = next(self.iterator) self._download_offset += len(next_part) return next_part + next = __next__ # Python 2 compatibility. + def tell(self): return self._point @@ -170,7 +172,7 @@ def read(self, size): try: # keep reading from the generator until the buffer of this stream has enough data to read while self._point + size > self._download_offset: - self._buf += self.next() + self._buf += self.__next__() except StopIteration: self.file_length = self._download_offset diff --git a/sdk/storage/azure-storage-blob/azure/storage/blob/_shared/authentication.py b/sdk/storage/azure-storage-blob/azure/storage/blob/_shared/authentication.py index a8db96d4a051..b11dc5757808 100644 --- a/sdk/storage/azure-storage-blob/azure/storage/blob/_shared/authentication.py +++ b/sdk/storage/azure-storage-blob/azure/storage/blob/_shared/authentication.py @@ -64,27 +64,30 @@ def __init__(self, account_name, account_key): self.account_key = account_key super(SharedKeyCredentialPolicy, self).__init__() - def _get_headers(self, request, headers_to_sign): + @staticmethod + def _get_headers(request, headers_to_sign): headers = dict((name.lower(), value) for name, value in request.http_request.headers.items() if value) if 'content-length' in headers and headers['content-length'] == '0': del headers['content-length'] return '\n'.join(headers.get(x, '') for x in headers_to_sign) + '\n' - def _get_verb(self, request): + @staticmethod + def _get_verb(request): return request.http_request.method + '\n' def _get_canonicalized_resource(self, request): uri_path = urlparse(request.http_request.url).path try: if isinstance(request.context.transport, AioHttpTransport) or \ - isinstance(getattr(request.context.transport, "_transport", None), AioHttpTransport): + isinstance(getattr(request.context.transport, "_transport", None), AioHttpTransport): uri_path = URL(uri_path) return '/' + self.account_name + str(uri_path) except TypeError: pass return '/' + self.account_name + uri_path - def _get_canonicalized_headers(self, request): + @staticmethod + def _get_canonicalized_headers(request): string_to_sign = '' x_ms_headers = [] for name, value in request.http_request.headers.items(): @@ -96,8 +99,9 @@ def _get_canonicalized_headers(self, request): string_to_sign += ''.join([name, ':', value, '\n']) return string_to_sign - def _get_canonicalized_resource_query(self, request): - sorted_queries = [(name, value) for name, value in request.http_request.query.items()] + @staticmethod + def _get_canonicalized_resource_query(request): + sorted_queries = list(request.http_request.query.items()) sorted_queries.sort() string_to_sign = '' diff --git a/sdk/storage/azure-storage-blob/azure/storage/blob/_shared/avro/schema.py b/sdk/storage/azure-storage-blob/azure/storage/blob/_shared/avro/schema.py index 6832ab4fd2d5..ffe28530167f 100644 --- a/sdk/storage/azure-storage-blob/azure/storage/blob/_shared/avro/schema.py +++ b/sdk/storage/azure-storage-blob/azure/storage/blob/_shared/avro/schema.py @@ -393,7 +393,7 @@ class NamedSchema(Schema): def __init__( self, data_type, - name, + name=None, namespace=None, names=None, other_props=None, diff --git a/sdk/storage/azure-storage-blob/azure/storage/blob/_shared/policies_async.py b/sdk/storage/azure-storage-blob/azure/storage/blob/_shared/policies_async.py index c0a44767b177..e0926b81dbc5 100644 --- a/sdk/storage/azure-storage-blob/azure/storage/blob/_shared/policies_async.py +++ b/sdk/storage/azure-storage-blob/azure/storage/blob/_shared/policies_async.py @@ -3,6 +3,7 @@ # Licensed under the MIT License. See License.txt in the project root for # license information. # -------------------------------------------------------------------------- +# pylint: disable=invalid-overridden-method import asyncio import random diff --git a/sdk/storage/azure-storage-blob/azure/storage/blob/_shared/uploads.py b/sdk/storage/azure-storage-blob/azure/storage/blob/_shared/uploads.py index 623fa16182ea..abf3fb2ce007 100644 --- a/sdk/storage/azure-storage-blob/azure/storage/blob/_shared/uploads.py +++ b/sdk/storage/azure-storage-blob/azure/storage/blob/_shared/uploads.py @@ -520,9 +520,11 @@ def __iter__(self): def seekable(self): return False - def next(self): + def __next__(self): return next(self.iterator) + next = __next__ # Python 2 compatibility. + def tell(self, *args, **kwargs): raise UnsupportedOperation("Data generator does not support tell.") @@ -534,7 +536,7 @@ def read(self, size): count = len(self.leftover) try: while count < size: - chunk = self.next() + chunk = self.__next__() if isinstance(chunk, six.text_type): chunk = chunk.encode(self.encoding) data += chunk diff --git a/sdk/storage/azure-storage-blob/azure/storage/blob/aio/_blob_client_async.py b/sdk/storage/azure-storage-blob/azure/storage/blob/aio/_blob_client_async.py index 82a5c627f050..28f333fc21e9 100644 --- a/sdk/storage/azure-storage-blob/azure/storage/blob/aio/_blob_client_async.py +++ b/sdk/storage/azure-storage-blob/azure/storage/blob/aio/_blob_client_async.py @@ -3,7 +3,7 @@ # Licensed under the MIT License. See License.txt in the project root for # license information. # -------------------------------------------------------------------------- -# pylint: disable=too-many-lines +# pylint: disable=too-many-lines, invalid-overridden-method from typing import ( # pylint: disable=unused-import Union, Optional, Any, IO, Iterable, AnyStr, Dict, List, Tuple, diff --git a/sdk/storage/azure-storage-blob/azure/storage/blob/aio/_blob_service_client_async.py b/sdk/storage/azure-storage-blob/azure/storage/blob/aio/_blob_service_client_async.py index 14944c510eb7..ab2e8a0defc7 100644 --- a/sdk/storage/azure-storage-blob/azure/storage/blob/aio/_blob_service_client_async.py +++ b/sdk/storage/azure-storage-blob/azure/storage/blob/aio/_blob_service_client_async.py @@ -3,7 +3,7 @@ # Licensed under the MIT License. See License.txt in the project root for # license information. # -------------------------------------------------------------------------- - +# pylint: disable=invalid-overridden-method import functools from typing import ( # pylint: disable=unused-import Union, Optional, Any, Iterable, Dict, List, diff --git a/sdk/storage/azure-storage-blob/azure/storage/blob/aio/_container_client_async.py b/sdk/storage/azure-storage-blob/azure/storage/blob/aio/_container_client_async.py index 8a777cb5daa2..ee31e3c9e7de 100644 --- a/sdk/storage/azure-storage-blob/azure/storage/blob/aio/_container_client_async.py +++ b/sdk/storage/azure-storage-blob/azure/storage/blob/aio/_container_client_async.py @@ -4,7 +4,7 @@ # Licensed under the MIT License. See License.txt in the project root for # license information. # -------------------------------------------------------------------------- - +# pylint: disable=invalid-overridden-method import functools from typing import ( # pylint: disable=unused-import Union, Optional, Any, Iterable, AnyStr, Dict, List, IO, AsyncIterator, diff --git a/sdk/storage/azure-storage-blob/azure/storage/blob/aio/_download_async.py b/sdk/storage/azure-storage-blob/azure/storage/blob/aio/_download_async.py index ea83862e4ae5..c698cb40a40a 100644 --- a/sdk/storage/azure-storage-blob/azure/storage/blob/aio/_download_async.py +++ b/sdk/storage/azure-storage-blob/azure/storage/blob/aio/_download_async.py @@ -3,6 +3,7 @@ # Licensed under the MIT License. See License.txt in the project root for # license information. # -------------------------------------------------------------------------- +# pylint: disable=invalid-overridden-method import asyncio import sys diff --git a/sdk/storage/azure-storage-blob/azure/storage/blob/aio/_lease_async.py b/sdk/storage/azure-storage-blob/azure/storage/blob/aio/_lease_async.py index ecd9076bc8cd..53ab5ae3ff75 100644 --- a/sdk/storage/azure-storage-blob/azure/storage/blob/aio/_lease_async.py +++ b/sdk/storage/azure-storage-blob/azure/storage/blob/aio/_lease_async.py @@ -3,6 +3,7 @@ # Licensed under the MIT License. See License.txt in the project root for # license information. # -------------------------------------------------------------------------- +# pylint: disable=invalid-overridden-method from typing import ( # pylint: disable=unused-import Union, Optional, Any, IO, Iterable, AnyStr, Dict, List, Tuple, diff --git a/sdk/storage/azure-storage-file-datalake/azure/storage/filedatalake/_shared/authentication.py b/sdk/storage/azure-storage-file-datalake/azure/storage/filedatalake/_shared/authentication.py index a8db96d4a051..b11dc5757808 100644 --- a/sdk/storage/azure-storage-file-datalake/azure/storage/filedatalake/_shared/authentication.py +++ b/sdk/storage/azure-storage-file-datalake/azure/storage/filedatalake/_shared/authentication.py @@ -64,27 +64,30 @@ def __init__(self, account_name, account_key): self.account_key = account_key super(SharedKeyCredentialPolicy, self).__init__() - def _get_headers(self, request, headers_to_sign): + @staticmethod + def _get_headers(request, headers_to_sign): headers = dict((name.lower(), value) for name, value in request.http_request.headers.items() if value) if 'content-length' in headers and headers['content-length'] == '0': del headers['content-length'] return '\n'.join(headers.get(x, '') for x in headers_to_sign) + '\n' - def _get_verb(self, request): + @staticmethod + def _get_verb(request): return request.http_request.method + '\n' def _get_canonicalized_resource(self, request): uri_path = urlparse(request.http_request.url).path try: if isinstance(request.context.transport, AioHttpTransport) or \ - isinstance(getattr(request.context.transport, "_transport", None), AioHttpTransport): + isinstance(getattr(request.context.transport, "_transport", None), AioHttpTransport): uri_path = URL(uri_path) return '/' + self.account_name + str(uri_path) except TypeError: pass return '/' + self.account_name + uri_path - def _get_canonicalized_headers(self, request): + @staticmethod + def _get_canonicalized_headers(request): string_to_sign = '' x_ms_headers = [] for name, value in request.http_request.headers.items(): @@ -96,8 +99,9 @@ def _get_canonicalized_headers(self, request): string_to_sign += ''.join([name, ':', value, '\n']) return string_to_sign - def _get_canonicalized_resource_query(self, request): - sorted_queries = [(name, value) for name, value in request.http_request.query.items()] + @staticmethod + def _get_canonicalized_resource_query(request): + sorted_queries = list(request.http_request.query.items()) sorted_queries.sort() string_to_sign = '' diff --git a/sdk/storage/azure-storage-file-datalake/azure/storage/filedatalake/_shared/policies_async.py b/sdk/storage/azure-storage-file-datalake/azure/storage/filedatalake/_shared/policies_async.py index c0a44767b177..e0926b81dbc5 100644 --- a/sdk/storage/azure-storage-file-datalake/azure/storage/filedatalake/_shared/policies_async.py +++ b/sdk/storage/azure-storage-file-datalake/azure/storage/filedatalake/_shared/policies_async.py @@ -3,6 +3,7 @@ # Licensed under the MIT License. See License.txt in the project root for # license information. # -------------------------------------------------------------------------- +# pylint: disable=invalid-overridden-method import asyncio import random diff --git a/sdk/storage/azure-storage-file-datalake/azure/storage/filedatalake/_shared/uploads.py b/sdk/storage/azure-storage-file-datalake/azure/storage/filedatalake/_shared/uploads.py index 68c6c72d03d0..29949d57a293 100644 --- a/sdk/storage/azure-storage-file-datalake/azure/storage/filedatalake/_shared/uploads.py +++ b/sdk/storage/azure-storage-file-datalake/azure/storage/filedatalake/_shared/uploads.py @@ -538,9 +538,11 @@ def __iter__(self): def seekable(self): return False - def next(self): + def __next__(self): return next(self.iterator) + next = __next__ # Python 2 compatibility. + def tell(self, *args, **kwargs): raise UnsupportedOperation("Data generator does not support tell.") @@ -552,7 +554,7 @@ def read(self, size): count = len(self.leftover) try: while count < size: - chunk = self.next() + chunk = self.__next__() if isinstance(chunk, six.text_type): chunk = chunk.encode(self.encoding) data += chunk diff --git a/sdk/storage/azure-storage-file-datalake/azure/storage/filedatalake/aio/_data_lake_directory_client_async.py b/sdk/storage/azure-storage-file-datalake/azure/storage/filedatalake/aio/_data_lake_directory_client_async.py index f655adc0f791..8d4eb3ebbe83 100644 --- a/sdk/storage/azure-storage-file-datalake/azure/storage/filedatalake/aio/_data_lake_directory_client_async.py +++ b/sdk/storage/azure-storage-file-datalake/azure/storage/filedatalake/aio/_data_lake_directory_client_async.py @@ -3,6 +3,8 @@ # Licensed under the MIT License. See License.txt in the project root for # license information. # -------------------------------------------------------------------------- +# pylint: disable=invalid-overridden-method + from ._data_lake_file_client_async import DataLakeFileClient from .._data_lake_directory_client import DataLakeDirectoryClient as DataLakeDirectoryClientBase from .._models import DirectoryProperties diff --git a/sdk/storage/azure-storage-file-datalake/azure/storage/filedatalake/aio/_data_lake_file_client_async.py b/sdk/storage/azure-storage-file-datalake/azure/storage/filedatalake/aio/_data_lake_file_client_async.py index 12f0ff86aaa7..e74cc13442ad 100644 --- a/sdk/storage/azure-storage-file-datalake/azure/storage/filedatalake/aio/_data_lake_file_client_async.py +++ b/sdk/storage/azure-storage-file-datalake/azure/storage/filedatalake/aio/_data_lake_file_client_async.py @@ -3,6 +3,7 @@ # Licensed under the MIT License. See License.txt in the project root for # license information. # -------------------------------------------------------------------------- +# pylint: disable=invalid-overridden-method from ._download_async import StorageStreamDownloader from ._path_client_async import PathClient diff --git a/sdk/storage/azure-storage-file-datalake/azure/storage/filedatalake/aio/_data_lake_lease_async.py b/sdk/storage/azure-storage-file-datalake/azure/storage/filedatalake/aio/_data_lake_lease_async.py index cadf7bc0c396..10205f9b551a 100644 --- a/sdk/storage/azure-storage-file-datalake/azure/storage/filedatalake/aio/_data_lake_lease_async.py +++ b/sdk/storage/azure-storage-file-datalake/azure/storage/filedatalake/aio/_data_lake_lease_async.py @@ -3,6 +3,7 @@ # Licensed under the MIT License. See License.txt in the project root for # license information. # -------------------------------------------------------------------------- +# pylint: disable=invalid-overridden-method from typing import ( # pylint: disable=unused-import Union, Optional, Any, diff --git a/sdk/storage/azure-storage-file-datalake/azure/storage/filedatalake/aio/_data_lake_service_client_async.py b/sdk/storage/azure-storage-file-datalake/azure/storage/filedatalake/aio/_data_lake_service_client_async.py index 205a4ec4f6b5..18935c8d5e35 100644 --- a/sdk/storage/azure-storage-file-datalake/azure/storage/filedatalake/aio/_data_lake_service_client_async.py +++ b/sdk/storage/azure-storage-file-datalake/azure/storage/filedatalake/aio/_data_lake_service_client_async.py @@ -3,6 +3,8 @@ # Licensed under the MIT License. See License.txt in the project root for # license information. # -------------------------------------------------------------------------- +# pylint: disable=invalid-overridden-method + from azure.core.paging import ItemPaged from azure.storage.blob.aio import BlobServiceClient diff --git a/sdk/storage/azure-storage-file-datalake/azure/storage/filedatalake/aio/_file_system_client_async.py b/sdk/storage/azure-storage-file-datalake/azure/storage/filedatalake/aio/_file_system_client_async.py index a39bfb2fee7f..6b1be52d7137 100644 --- a/sdk/storage/azure-storage-file-datalake/azure/storage/filedatalake/aio/_file_system_client_async.py +++ b/sdk/storage/azure-storage-file-datalake/azure/storage/filedatalake/aio/_file_system_client_async.py @@ -4,6 +4,7 @@ # Licensed under the MIT License. See License.txt in the project root for # license information. # -------------------------------------------------------------------------- +# pylint: disable=invalid-overridden-method import functools from typing import ( # pylint: disable=unused-import diff --git a/sdk/storage/azure-storage-file-datalake/azure/storage/filedatalake/aio/_path_client_async.py b/sdk/storage/azure-storage-file-datalake/azure/storage/filedatalake/aio/_path_client_async.py index 6f9693090422..688f2d4c3ffd 100644 --- a/sdk/storage/azure-storage-file-datalake/azure/storage/filedatalake/aio/_path_client_async.py +++ b/sdk/storage/azure-storage-file-datalake/azure/storage/filedatalake/aio/_path_client_async.py @@ -3,6 +3,7 @@ # Licensed under the MIT License. See License.txt in the project root for # license information. # -------------------------------------------------------------------------- +# pylint: disable=invalid-overridden-method from azure.storage.blob.aio import BlobClient from .._shared.base_client_async import AsyncStorageAccountHostsMixin from .._path_client import PathClient as PathClientBase diff --git a/sdk/storage/azure-storage-file-share/azure/storage/fileshare/_shared/authentication.py b/sdk/storage/azure-storage-file-share/azure/storage/fileshare/_shared/authentication.py index a8db96d4a051..b11dc5757808 100644 --- a/sdk/storage/azure-storage-file-share/azure/storage/fileshare/_shared/authentication.py +++ b/sdk/storage/azure-storage-file-share/azure/storage/fileshare/_shared/authentication.py @@ -64,27 +64,30 @@ def __init__(self, account_name, account_key): self.account_key = account_key super(SharedKeyCredentialPolicy, self).__init__() - def _get_headers(self, request, headers_to_sign): + @staticmethod + def _get_headers(request, headers_to_sign): headers = dict((name.lower(), value) for name, value in request.http_request.headers.items() if value) if 'content-length' in headers and headers['content-length'] == '0': del headers['content-length'] return '\n'.join(headers.get(x, '') for x in headers_to_sign) + '\n' - def _get_verb(self, request): + @staticmethod + def _get_verb(request): return request.http_request.method + '\n' def _get_canonicalized_resource(self, request): uri_path = urlparse(request.http_request.url).path try: if isinstance(request.context.transport, AioHttpTransport) or \ - isinstance(getattr(request.context.transport, "_transport", None), AioHttpTransport): + isinstance(getattr(request.context.transport, "_transport", None), AioHttpTransport): uri_path = URL(uri_path) return '/' + self.account_name + str(uri_path) except TypeError: pass return '/' + self.account_name + uri_path - def _get_canonicalized_headers(self, request): + @staticmethod + def _get_canonicalized_headers(request): string_to_sign = '' x_ms_headers = [] for name, value in request.http_request.headers.items(): @@ -96,8 +99,9 @@ def _get_canonicalized_headers(self, request): string_to_sign += ''.join([name, ':', value, '\n']) return string_to_sign - def _get_canonicalized_resource_query(self, request): - sorted_queries = [(name, value) for name, value in request.http_request.query.items()] + @staticmethod + def _get_canonicalized_resource_query(request): + sorted_queries = list(request.http_request.query.items()) sorted_queries.sort() string_to_sign = '' diff --git a/sdk/storage/azure-storage-file-share/azure/storage/fileshare/_shared/policies_async.py b/sdk/storage/azure-storage-file-share/azure/storage/fileshare/_shared/policies_async.py index c0a44767b177..e0926b81dbc5 100644 --- a/sdk/storage/azure-storage-file-share/azure/storage/fileshare/_shared/policies_async.py +++ b/sdk/storage/azure-storage-file-share/azure/storage/fileshare/_shared/policies_async.py @@ -3,6 +3,7 @@ # Licensed under the MIT License. See License.txt in the project root for # license information. # -------------------------------------------------------------------------- +# pylint: disable=invalid-overridden-method import asyncio import random diff --git a/sdk/storage/azure-storage-file-share/azure/storage/fileshare/_shared/uploads.py b/sdk/storage/azure-storage-file-share/azure/storage/fileshare/_shared/uploads.py index 623fa16182ea..abf3fb2ce007 100644 --- a/sdk/storage/azure-storage-file-share/azure/storage/fileshare/_shared/uploads.py +++ b/sdk/storage/azure-storage-file-share/azure/storage/fileshare/_shared/uploads.py @@ -520,9 +520,11 @@ def __iter__(self): def seekable(self): return False - def next(self): + def __next__(self): return next(self.iterator) + next = __next__ # Python 2 compatibility. + def tell(self, *args, **kwargs): raise UnsupportedOperation("Data generator does not support tell.") @@ -534,7 +536,7 @@ def read(self, size): count = len(self.leftover) try: while count < size: - chunk = self.next() + chunk = self.__next__() if isinstance(chunk, six.text_type): chunk = chunk.encode(self.encoding) data += chunk diff --git a/sdk/storage/azure-storage-file-share/azure/storage/fileshare/aio/_directory_client_async.py b/sdk/storage/azure-storage-file-share/azure/storage/fileshare/aio/_directory_client_async.py index 260c9a08c907..29b63969fbfe 100644 --- a/sdk/storage/azure-storage-file-share/azure/storage/fileshare/aio/_directory_client_async.py +++ b/sdk/storage/azure-storage-file-share/azure/storage/fileshare/aio/_directory_client_async.py @@ -3,7 +3,7 @@ # Licensed under the MIT License. See License.txt in the project root for # license information. # -------------------------------------------------------------------------- - +# pylint: disable=invalid-overridden-method import functools import time from typing import ( # pylint: disable=unused-import diff --git a/sdk/storage/azure-storage-file-share/azure/storage/fileshare/aio/_download_async.py b/sdk/storage/azure-storage-file-share/azure/storage/fileshare/aio/_download_async.py index 7636190e8b8e..c0db16d6f7a2 100644 --- a/sdk/storage/azure-storage-file-share/azure/storage/fileshare/aio/_download_async.py +++ b/sdk/storage/azure-storage-file-share/azure/storage/fileshare/aio/_download_async.py @@ -3,7 +3,7 @@ # Licensed under the MIT License. See License.txt in the project root for # license information. # -------------------------------------------------------------------------- - +# pylint: disable=invalid-overridden-method import asyncio import sys from io import BytesIO diff --git a/sdk/storage/azure-storage-file-share/azure/storage/fileshare/aio/_file_client_async.py b/sdk/storage/azure-storage-file-share/azure/storage/fileshare/aio/_file_client_async.py index de63720f53cb..3d48fdc0d882 100644 --- a/sdk/storage/azure-storage-file-share/azure/storage/fileshare/aio/_file_client_async.py +++ b/sdk/storage/azure-storage-file-share/azure/storage/fileshare/aio/_file_client_async.py @@ -3,7 +3,7 @@ # Licensed under the MIT License. See License.txt in the project root for # license information. # -------------------------------------------------------------------------- -# pylint: disable=too-many-lines +# pylint: disable=too-many-lines, invalid-overridden-method import functools import time from io import BytesIO diff --git a/sdk/storage/azure-storage-file-share/azure/storage/fileshare/aio/_lease_async.py b/sdk/storage/azure-storage-file-share/azure/storage/fileshare/aio/_lease_async.py index bdd06d72be1b..0a04484638f3 100644 --- a/sdk/storage/azure-storage-file-share/azure/storage/fileshare/aio/_lease_async.py +++ b/sdk/storage/azure-storage-file-share/azure/storage/fileshare/aio/_lease_async.py @@ -3,7 +3,7 @@ # Licensed under the MIT License. See License.txt in the project root for # license information. # -------------------------------------------------------------------------- - +# pylint: disable=invalid-overridden-method from typing import ( # pylint: disable=unused-import Union, Optional, Any, IO, Iterable, AnyStr, Dict, List, Tuple, TypeVar, TYPE_CHECKING diff --git a/sdk/storage/azure-storage-file-share/azure/storage/fileshare/aio/_share_client_async.py b/sdk/storage/azure-storage-file-share/azure/storage/fileshare/aio/_share_client_async.py index 2a795f683f6c..b6fb243067e9 100644 --- a/sdk/storage/azure-storage-file-share/azure/storage/fileshare/aio/_share_client_async.py +++ b/sdk/storage/azure-storage-file-share/azure/storage/fileshare/aio/_share_client_async.py @@ -3,7 +3,7 @@ # Licensed under the MIT License. See License.txt in the project root for # license information. # -------------------------------------------------------------------------- - +# pylint: disable=invalid-overridden-method from typing import ( # pylint: disable=unused-import Optional, Union, Dict, Any, Iterable, TYPE_CHECKING ) diff --git a/sdk/storage/azure-storage-file-share/azure/storage/fileshare/aio/_share_service_client_async.py b/sdk/storage/azure-storage-file-share/azure/storage/fileshare/aio/_share_service_client_async.py index 9b5e3f2a7310..2ee8390932f4 100644 --- a/sdk/storage/azure-storage-file-share/azure/storage/fileshare/aio/_share_service_client_async.py +++ b/sdk/storage/azure-storage-file-share/azure/storage/fileshare/aio/_share_service_client_async.py @@ -3,7 +3,7 @@ # Licensed under the MIT License. See License.txt in the project root for # license information. # -------------------------------------------------------------------------- - +# pylint: disable=invalid-overridden-method import functools from typing import ( # pylint: disable=unused-import Union, Optional, Any, Iterable, Dict, List, diff --git a/sdk/storage/azure-storage-queue/azure/storage/queue/_shared/authentication.py b/sdk/storage/azure-storage-queue/azure/storage/queue/_shared/authentication.py index a8db96d4a051..b11dc5757808 100644 --- a/sdk/storage/azure-storage-queue/azure/storage/queue/_shared/authentication.py +++ b/sdk/storage/azure-storage-queue/azure/storage/queue/_shared/authentication.py @@ -64,27 +64,30 @@ def __init__(self, account_name, account_key): self.account_key = account_key super(SharedKeyCredentialPolicy, self).__init__() - def _get_headers(self, request, headers_to_sign): + @staticmethod + def _get_headers(request, headers_to_sign): headers = dict((name.lower(), value) for name, value in request.http_request.headers.items() if value) if 'content-length' in headers and headers['content-length'] == '0': del headers['content-length'] return '\n'.join(headers.get(x, '') for x in headers_to_sign) + '\n' - def _get_verb(self, request): + @staticmethod + def _get_verb(request): return request.http_request.method + '\n' def _get_canonicalized_resource(self, request): uri_path = urlparse(request.http_request.url).path try: if isinstance(request.context.transport, AioHttpTransport) or \ - isinstance(getattr(request.context.transport, "_transport", None), AioHttpTransport): + isinstance(getattr(request.context.transport, "_transport", None), AioHttpTransport): uri_path = URL(uri_path) return '/' + self.account_name + str(uri_path) except TypeError: pass return '/' + self.account_name + uri_path - def _get_canonicalized_headers(self, request): + @staticmethod + def _get_canonicalized_headers(request): string_to_sign = '' x_ms_headers = [] for name, value in request.http_request.headers.items(): @@ -96,8 +99,9 @@ def _get_canonicalized_headers(self, request): string_to_sign += ''.join([name, ':', value, '\n']) return string_to_sign - def _get_canonicalized_resource_query(self, request): - sorted_queries = [(name, value) for name, value in request.http_request.query.items()] + @staticmethod + def _get_canonicalized_resource_query(request): + sorted_queries = list(request.http_request.query.items()) sorted_queries.sort() string_to_sign = '' diff --git a/sdk/storage/azure-storage-queue/azure/storage/queue/_shared/policies_async.py b/sdk/storage/azure-storage-queue/azure/storage/queue/_shared/policies_async.py index c0a44767b177..e0926b81dbc5 100644 --- a/sdk/storage/azure-storage-queue/azure/storage/queue/_shared/policies_async.py +++ b/sdk/storage/azure-storage-queue/azure/storage/queue/_shared/policies_async.py @@ -3,6 +3,7 @@ # Licensed under the MIT License. See License.txt in the project root for # license information. # -------------------------------------------------------------------------- +# pylint: disable=invalid-overridden-method import asyncio import random diff --git a/sdk/storage/azure-storage-queue/azure/storage/queue/_shared/uploads.py b/sdk/storage/azure-storage-queue/azure/storage/queue/_shared/uploads.py index 623fa16182ea..abf3fb2ce007 100644 --- a/sdk/storage/azure-storage-queue/azure/storage/queue/_shared/uploads.py +++ b/sdk/storage/azure-storage-queue/azure/storage/queue/_shared/uploads.py @@ -520,9 +520,11 @@ def __iter__(self): def seekable(self): return False - def next(self): + def __next__(self): return next(self.iterator) + next = __next__ # Python 2 compatibility. + def tell(self, *args, **kwargs): raise UnsupportedOperation("Data generator does not support tell.") @@ -534,7 +536,7 @@ def read(self, size): count = len(self.leftover) try: while count < size: - chunk = self.next() + chunk = self.__next__() if isinstance(chunk, six.text_type): chunk = chunk.encode(self.encoding) data += chunk diff --git a/sdk/storage/azure-storage-queue/azure/storage/queue/aio/_queue_client_async.py b/sdk/storage/azure-storage-queue/azure/storage/queue/aio/_queue_client_async.py index cc5851ec9412..21e710554e2a 100644 --- a/sdk/storage/azure-storage-queue/azure/storage/queue/aio/_queue_client_async.py +++ b/sdk/storage/azure-storage-queue/azure/storage/queue/aio/_queue_client_async.py @@ -3,6 +3,7 @@ # Licensed under the MIT License. See License.txt in the project root for # license information. # -------------------------------------------------------------------------- +# pylint: disable=invalid-overridden-method import functools from typing import ( # pylint: disable=unused-import diff --git a/sdk/storage/azure-storage-queue/azure/storage/queue/aio/_queue_service_client_async.py b/sdk/storage/azure-storage-queue/azure/storage/queue/aio/_queue_service_client_async.py index 4d32d1f8b0d8..42d0d45f4583 100644 --- a/sdk/storage/azure-storage-queue/azure/storage/queue/aio/_queue_service_client_async.py +++ b/sdk/storage/azure-storage-queue/azure/storage/queue/aio/_queue_service_client_async.py @@ -3,6 +3,7 @@ # Licensed under the MIT License. See License.txt in the project root for # license information. # -------------------------------------------------------------------------- +# pylint: disable=invalid-overridden-method import functools from typing import ( # pylint: disable=unused-import From e4f9736f4745726df3bf41c5b87e35ffda57e2e0 Mon Sep 17 00:00:00 2001 From: Scott Beddall Date: Tue, 14 Jul 2020 14:27:36 -0700 Subject: [PATCH 15/15] resolve conflicts --- eng/ci_tools.txt | 2 +- .../templates/steps/verify-links.yml | 4 +- eng/common/scripts/Verify-ChangeLog.ps1 | 35 +- .../scripts/modules/Package-Properties.psm1 | 3 + .../azure/ai/formrecognizer/_api_versions.py | 18 + .../formrecognizer/_form_recognizer_client.py | 18 +- .../formrecognizer/_form_training_client.py | 6 + .../ai/formrecognizer/_generated/__init__.py | 5 +- .../_generated/_configuration.py | 4 +- .../_generated/_form_recognizer_client.py | 2 +- .../_generated/aio/_configuration_async.py | 4 +- .../aio/_form_recognizer_client_async.py | 2 +- ...form_recognizer_client_operations_async.py | 69 +- .../models/_form_recognizer_client_enums.py | 86 +- .../_form_recognizer_client_operations.py | 53 +- .../aio/_form_recognizer_client_async.py | 6 + .../aio/_form_training_client_async.py | 6 + .../test_content.test_blank_page.yaml | 28 +- ...t.test_content_authentication_bad_key.yaml | 21 +- ...content_authentication_successful_key.yaml | 28 +- .../test_content.test_content_multipage.yaml | 64 +- ...test_content_multipage_table_span_pdf.yaml | 28 +- ...ontent_multipage_table_span_transform.yaml | 43 +- ...tent.test_content_multipage_transform.yaml | 64 +- .../test_content.test_content_stream_jpg.yaml | 64 +- .../test_content.test_content_stream_pdf.yaml | 28 +- ...ent.test_content_stream_transform_jpg.yaml | 28 +- ...ent.test_content_stream_transform_pdf.yaml | 28 +- ...ent.test_damaged_file_passed_as_bytes.yaml | 15 +- ....test_damaged_file_passed_as_bytes_io.yaml | 15 +- ...ontent.test_passing_enum_content_type.yaml | 28 +- .../test_content_async.test_blank_page.yaml | 32 +- ...c.test_content_authentication_bad_key.yaml | 18 +- ...content_authentication_successful_key.yaml | 32 +- ..._content_async.test_content_multipage.yaml | 56 +- ...test_content_multipage_table_span_pdf.yaml | 32 +- ...ontent_multipage_table_span_transform.yaml | 56 +- ...sync.test_content_multipage_transform.yaml | 32 +- ...content_async.test_content_stream_jpg.yaml | 32 +- ...content_async.test_content_stream_pdf.yaml | 32 +- ...ync.test_content_stream_transform_jpg.yaml | 32 +- ...ync.test_content_stream_transform_pdf.yaml | 56 +- ...ync.test_damaged_file_passed_as_bytes.yaml | 17 +- ....test_damaged_file_passed_as_bytes_io.yaml | 13 +- ..._async.test_passing_enum_content_type.yaml | 53 +- ...content_from_url.test_content_bad_url.yaml | 11 +- ...ent_from_url.test_content_encoded_url.yaml | 11 +- ...test_content_multipage_table_span_pdf.yaml | 64 +- ...ontent_multipage_table_span_transform.yaml | 43 +- ....test_content_multipage_transform_url.yaml | 28 +- ...t_from_url.test_content_multipage_url.yaml | 28 +- ...rom_url.test_content_url_auth_bad_key.yaml | 21 +- ....test_content_url_auth_successful_key.yaml | 28 +- ...content_from_url.test_content_url_jpg.yaml | 28 +- ...from_url.test_content_url_pass_stream.yaml | 11 +- ...content_from_url.test_content_url_pdf.yaml | 28 +- ...om_url.test_content_url_transform_jpg.yaml | 28 +- ...om_url.test_content_url_transform_pdf.yaml | 28 +- ...t_from_url_async.test_content_bad_url.yaml | 13 +- ...om_url_async.test_content_encoded_url.yaml | 13 +- ...test_content_multipage_table_span_pdf.yaml | 56 +- ...ontent_multipage_table_span_transform.yaml | 56 +- ....test_content_multipage_transform_url.yaml | 32 +- ..._url_async.test_content_multipage_url.yaml | 32 +- ...l_async.test_content_url_auth_bad_key.yaml | 18 +- ....test_content_url_auth_successful_key.yaml | 32 +- ...t_from_url_async.test_content_url_jpg.yaml | 32 +- ...rl_async.test_content_url_pass_stream.yaml | 13 +- ...t_from_url_async.test_content_url_pdf.yaml | 56 +- ..._async.test_content_url_transform_jpg.yaml | 32 +- ..._async.test_content_url_transform_pdf.yaml | 32 +- ...st_copy_model.test_copy_authorization.yaml | 17 +- .../test_copy_model.test_copy_model_fail.yaml | 208 +-- ...copy_model.test_copy_model_successful.yaml | 217 ++- ..._copy_model.test_copy_model_transform.yaml | 146 +- ...y_model_async.test_copy_authorization.yaml | 19 +- ...copy_model_async.test_copy_model_fail.yaml | 267 +--- ...odel_async.test_copy_model_successful.yaml | 189 +-- ...model_async.test_copy_model_transform.yaml | 221 ++- ...tom_forms.test_authentication_bad_key.yaml | 21 +- ...m_forms.test_custom_form_damaged_file.yaml | 217 ++- ...custom_forms.test_custom_form_labeled.yaml | 165 +- ...s.test_custom_form_labeled_blank_page.yaml | 983 ++++++------ ...ms.test_custom_form_labeled_transform.yaml | 155 +- ...ms.test_custom_form_multipage_labeled.yaml | 223 ++- ...stom_form_multipage_labeled_transform.yaml | 207 +-- ....test_custom_form_multipage_unlabeled.yaml | 181 +-- ...om_form_multipage_unlabeled_transform.yaml | 143 +- ...ultipage_vendor_set_labeled_transform.yaml | 138 +- ...tipage_vendor_set_unlabeled_transform.yaml | 507 +----- ...stom_forms.test_custom_form_unlabeled.yaml | 105 +- ...test_custom_form_unlabeled_blank_page.yaml | 1000 ++++++------ ....test_custom_form_unlabeled_transform.yaml | 148 +- ...rms_async.test_authentication_bad_key.yaml | 18 +- ...s_async.test_custom_form_damaged_file.yaml | 339 ++++- ..._forms_async.test_custom_form_labeled.yaml | 164 +- ...c.test_custom_form_labeled_blank_page.yaml | 113 +- ...nc.test_custom_form_multipage_labeled.yaml | 241 ++- ....test_custom_form_multipage_unlabeled.yaml | 146 +- ...ultipage_vendor_set_labeled_transform.yaml | 373 ++++- ...tipage_vendor_set_unlabeled_transform.yaml | 219 +-- ...orms_async.test_custom_form_unlabeled.yaml | 128 +- ...test_custom_form_unlabeled_blank_page.yaml | 110 +- ...tom_forms_multipage_labeled_transform.yaml | 201 ++- ...m_forms_multipage_unlabeled_transform.yaml | 144 +- ...rms_async.test_form_labeled_transform.yaml | 164 +- ...s_async.test_form_unlabeled_transform.yaml | 121 +- ...rms_from_url.test_custom_form_bad_url.yaml | 58 +- ...rms_from_url.test_custom_form_labeled.yaml | 201 ++- ...stom_form_multipage_labeled_transform.yaml | 198 ++- ...om_form_multipage_unlabeled_transform.yaml | 128 +- ...ultipage_vendor_set_labeled_transform.yaml | 126 +- ...tipage_vendor_set_unlabeled_transform.yaml | 509 ++++++- ...s_from_url.test_custom_form_unlabeled.yaml | 257 ++-- ....test_custom_form_unlabeled_transform.yaml | 264 +++- ...rom_url.test_custom_forms_encoded_url.yaml | 11 +- ..._from_url.test_form_labeled_transform.yaml | 175 +-- ..._from_url.test_form_multipage_labeled.yaml | 189 +-- ...rom_url.test_form_multipage_unlabeled.yaml | 212 ++- ...ms_from_url.test_pass_stream_into_url.yaml | 11 +- ...m_forms_from_url.test_passing_bad_url.yaml | 11 +- ...m_url.test_url_authentication_bad_key.yaml | 21 +- ....test_custom_form_multipage_unlabeled.yaml | 170 +-- ...ultipage_vendor_set_labeled_transform.yaml | 146 +- ...tipage_vendor_set_unlabeled_transform.yaml | 167 +- ...l_async.test_custom_forms_encoded_url.yaml | 13 +- ...orms_from_url_async.test_form_bad_url.yaml | 90 +- ...orms_from_url_async.test_form_labeled.yaml | 164 +- ...url_async.test_form_labeled_transform.yaml | 184 +-- ...url_async.test_form_multipage_labeled.yaml | 229 ++- ...ms_from_url_async.test_form_unlabeled.yaml | 170 +-- ...l_async.test_form_unlabeled_transform.yaml | 202 +-- ...sync.test_multipage_labeled_transform.yaml | 204 +-- ...nc.test_multipage_unlabeled_transform.yaml | 212 ++- ...m_url_async.test_pass_stream_into_url.yaml | 13 +- ...s_from_url_async.test_passing_bad_url.yaml | 13 +- ...async.test_url_authentication_bad_key.yaml | 18 +- .../test_mgmt.test_account_properties.yaml | 13 +- ....test_account_properties_auth_bad_key.yaml | 21 +- ...t_mgmt.test_delete_model_auth_bad_key.yaml | 21 +- ..._mgmt.test_get_form_recognizer_client.yaml | 54 +- ...test_mgmt.test_get_model_auth_bad_key.yaml | 21 +- ...est_mgmt.test_list_model_auth_bad_key.yaml | 21 +- .../test_mgmt.test_mgmt_model_labeled.yaml | 134 +- .../test_mgmt.test_mgmt_model_unlabeled.yaml | 242 ++- ...st_mgmt_async.test_account_properties.yaml | 15 +- ....test_account_properties_auth_bad_key.yaml | 18 +- ..._async.test_delete_model_auth_bad_key.yaml | 18 +- ...async.test_get_form_recognizer_client.yaml | 45 +- ...gmt_async.test_get_model_auth_bad_key.yaml | 18 +- ...mt_async.test_list_model_auth_bad_key.yaml | 18 +- ...st_mgmt_async.test_mgmt_model_labeled.yaml | 194 ++- ..._mgmt_async.test_mgmt_model_unlabeled.yaml | 208 ++- ...t_receipt.test_authentication_bad_key.yaml | 21 +- ...pt.test_authentication_successful_key.yaml | 28 +- .../test_receipt.test_blank_page.yaml | 28 +- ...ipt.test_damaged_file_passed_as_bytes.yaml | 13 +- ....test_damaged_file_passed_as_bytes_io.yaml | 13 +- ...eceipt.test_passing_enum_content_type.yaml | 30 +- .../test_receipt.test_receipt_jpg.yaml | 28 +- ...st_receipt_jpg_include_field_elements.yaml | 28 +- .../test_receipt.test_receipt_multipage.yaml | 28 +- ...eipt.test_receipt_multipage_transform.yaml | 28 +- .../test_receipt.test_receipt_png.yaml | 28 +- ...ipt.test_receipt_stream_transform_jpg.yaml | 28 +- ...ipt.test_receipt_stream_transform_png.yaml | 28 +- ...ipt_async.test_authentication_bad_key.yaml | 18 +- ...nc.test_authentication_successful_key.yaml | 32 +- .../test_receipt_async.test_blank_page.yaml | 32 +- ...ync.test_damaged_file_passed_as_bytes.yaml | 15 +- ....test_damaged_file_passed_as_bytes_io.yaml | 15 +- ..._async.test_passing_enum_content_type.yaml | 30 +- .../test_receipt_async.test_receipt_jpg.yaml | 32 +- ...st_receipt_jpg_include_field_elements.yaml | 32 +- ..._receipt_async.test_receipt_multipage.yaml | 30 +- ...sync.test_receipt_multipage_transform.yaml | 54 +- .../test_receipt_async.test_receipt_png.yaml | 80 +- ...ync.test_receipt_stream_transform_jpg.yaml | 30 +- ...ync.test_receipt_stream_transform_png.yaml | 32 +- ...eceipt_from_url.test_polling_interval.yaml | 56 +- ...receipt_from_url.test_receipt_bad_url.yaml | 13 +- ....test_receipt_multipage_transform_url.yaml | 28 +- ...t_from_url.test_receipt_multipage_url.yaml | 100 +- ...rom_url.test_receipt_url_auth_bad_key.yaml | 21 +- ....test_receipt_url_auth_successful_key.yaml | 26 +- ...st_receipt_url_include_field_elements.yaml | 28 +- ...receipt_from_url.test_receipt_url_jpg.yaml | 26 +- ...from_url.test_receipt_url_pass_stream.yaml | 11 +- ...receipt_from_url.test_receipt_url_png.yaml | 28 +- ...om_url.test_receipt_url_transform_jpg.yaml | 28 +- ...om_url.test_receipt_url_transform_png.yaml | 28 +- ...pt_from_url.test_receipts_encoded_url.yaml | 13 +- ..._from_url_async.test_polling_interval.yaml | 64 +- ...t_from_url_async.test_receipt_bad_url.yaml | 15 +- ....test_receipt_multipage_transform_url.yaml | 32 +- ..._url_async.test_receipt_multipage_url.yaml | 32 +- ...l_async.test_receipt_url_auth_bad_key.yaml | 18 +- ....test_receipt_url_auth_successful_key.yaml | 32 +- ...st_receipt_url_include_field_elements.yaml | 32 +- ...t_from_url_async.test_receipt_url_jpg.yaml | 32 +- ...rl_async.test_receipt_url_pass_stream.yaml | 13 +- ...t_from_url_async.test_receipt_url_png.yaml | 32 +- ..._async.test_receipt_url_transform_jpg.yaml | 32 +- ..._async.test_receipt_url_transform_png.yaml | 32 +- ...m_url_async.test_receipts_encoded_url.yaml | 15 +- .../test_training.test_polling_interval.yaml | 111 +- ...st_train_multipage_w_labels_transform.yaml | 30 +- .../test_training.test_training.yaml | 82 +- ...t_training.test_training_auth_bad_key.yaml | 21 +- ...st_training.test_training_encoded_url.yaml | 357 +++-- ...test_training.test_training_multipage.yaml | 172 ++- ...ing.test_training_multipage_transform.yaml | 100 +- ...g.test_training_multipage_with_labels.yaml | 30 +- ...test_training.test_training_transform.yaml | 173 +-- ...ining.test_training_with_files_filter.yaml | 533 +++++-- ...st_training.test_training_with_labels.yaml | 28 +- ...g.test_training_with_labels_transform.yaml | 30 +- ..._training_async.test_polling_interval.yaml | 197 ++- ...c.test_train_multipage_w_lbls_trnsfrm.yaml | 34 +- .../test_training_async.test_training.yaml | 78 +- ...ning_async.test_training_auth_bad_key.yaml | 18 +- ...ining_async.test_training_encoded_url.yaml | 319 ++-- ...raining_async.test_training_multipage.yaml | 96 +- ...ync.test_training_multipage_transform.yaml | 170 +-- ...c.test_training_multipage_with_labels.yaml | 34 +- ...raining_async.test_training_transform.yaml | 72 +- ...async.test_training_with_files_filter.yaml | 258 +++- ...ining_async.test_training_with_labels.yaml | 34 +- ...c.test_training_with_labels_transform.yaml | 34 +- .../tests/test_mgmt.py | 8 + sdk/search/azure-search-documents/README.md | 2 + .../tests/async_tests/test_queues_async.py | 19 +- .../azure-servicebus/tests/test_queues.py | 19 +- sdk/storage/azure-storage-blob/README.md | 1 + .../azure/storage/blob/_download.py | 2 +- .../samples/blob_samples_common.py | 2 +- .../tests/test_blob_encryption.py | 14 +- .../azure/ai/textanalytics/__init__.py | 2 + .../azure/ai/textanalytics/_base_client.py | 6 +- .../ai/textanalytics/_generated/__init__.py | 19 +- .../models/_text_analytics_client_enums.py | 56 - .../textanalytics/_generated/v3_0/__init__.py | 16 + .../_generated/{ => v3_0}/_configuration.py | 1 + .../{ => v3_0}/_text_analytics_client.py | 2 + .../_generated/{ => v3_0}/aio/__init__.py | 0 .../{ => v3_0}/aio/_configuration_async.py | 3 +- .../aio/_text_analytics_client_async.py | 6 +- .../aio/operations_async/__init__.py | 0 ..._text_analytics_client_operations_async.py | 78 +- .../_generated/{ => v3_0}/models/__init__.py | 0 .../_generated/{ => v3_0}/models/_models.py | 86 +- .../{ => v3_0}/models/_models_py3.py | 86 +- .../models/_text_analytics_client_enums.py | 74 + .../{ => v3_0}/operations/__init__.py | 0 .../_text_analytics_client_operations.py | 78 +- .../_generated/{ => v3_0}/py.typed | 0 .../_generated/v3_1_preview_1/__init__.py | 16 + .../v3_1_preview_1/_configuration.py | 69 + .../v3_1_preview_1/_text_analytics_client.py | 62 + .../_generated/v3_1_preview_1/aio/__init__.py | 10 + .../aio/_configuration_async.py | 65 + .../aio/_text_analytics_client_async.py | 56 + .../aio/operations_async/__init__.py | 13 + ..._text_analytics_client_operations_async.py | 473 ++++++ .../v3_1_preview_1/models/__init__.py | 122 ++ .../v3_1_preview_1/models/_models.py | 1205 +++++++++++++++ .../v3_1_preview_1/models/_models_py3.py | 1355 +++++++++++++++++ .../models/_text_analytics_client_enums.py | 97 ++ .../v3_1_preview_1/operations/__init__.py | 13 + .../_text_analytics_client_operations.py | 483 ++++++ .../_generated/v3_1_preview_1/py.typed | 1 + .../azure/ai/textanalytics/_models.py | 4 +- .../azure/ai/textanalytics/_multiapi.py | 46 + .../textanalytics/_text_analytics_client.py | 3 + .../textanalytics/aio/_base_client_async.py | 11 +- .../ai/textanalytics/aio/_policies_async.py | 36 - .../aio/_text_analytics_client_async.py | 3 + .../tests/test_multiapi.py | 31 + .../tests/test_multiapi_async.py | 32 + .../tests/test_text_analytics.py | 2 +- 280 files changed, 14512 insertions(+), 10292 deletions(-) create mode 100644 sdk/formrecognizer/azure-ai-formrecognizer/azure/ai/formrecognizer/_api_versions.py delete mode 100644 sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_generated/models/_text_analytics_client_enums.py create mode 100644 sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_generated/v3_0/__init__.py rename sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_generated/{ => v3_0}/_configuration.py (96%) rename sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_generated/{ => v3_0}/_text_analytics_client.py (98%) rename sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_generated/{ => v3_0}/aio/__init__.py (100%) rename sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_generated/{ => v3_0}/aio/_configuration_async.py (94%) rename sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_generated/{ => v3_0}/aio/_text_analytics_client_async.py (93%) rename sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_generated/{ => v3_0}/aio/operations_async/__init__.py (100%) rename sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_generated/{ => v3_0}/aio/operations_async/_text_analytics_client_operations_async.py (84%) rename sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_generated/{ => v3_0}/models/__init__.py (100%) rename sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_generated/{ => v3_0}/models/_models.py (90%) rename sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_generated/{ => v3_0}/models/_models_py3.py (91%) create mode 100644 sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_generated/v3_0/models/_text_analytics_client_enums.py rename sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_generated/{ => v3_0}/operations/__init__.py (100%) rename sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_generated/{ => v3_0}/operations/_text_analytics_client_operations.py (84%) rename sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_generated/{ => v3_0}/py.typed (100%) create mode 100644 sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_generated/v3_1_preview_1/__init__.py create mode 100644 sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_generated/v3_1_preview_1/_configuration.py create mode 100644 sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_generated/v3_1_preview_1/_text_analytics_client.py create mode 100644 sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_generated/v3_1_preview_1/aio/__init__.py create mode 100644 sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_generated/v3_1_preview_1/aio/_configuration_async.py create mode 100644 sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_generated/v3_1_preview_1/aio/_text_analytics_client_async.py create mode 100644 sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_generated/v3_1_preview_1/aio/operations_async/__init__.py create mode 100644 sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_generated/v3_1_preview_1/aio/operations_async/_text_analytics_client_operations_async.py create mode 100644 sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_generated/v3_1_preview_1/models/__init__.py create mode 100644 sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_generated/v3_1_preview_1/models/_models.py create mode 100644 sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_generated/v3_1_preview_1/models/_models_py3.py create mode 100644 sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_generated/v3_1_preview_1/models/_text_analytics_client_enums.py create mode 100644 sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_generated/v3_1_preview_1/operations/__init__.py create mode 100644 sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_generated/v3_1_preview_1/operations/_text_analytics_client_operations.py create mode 100644 sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_generated/v3_1_preview_1/py.typed create mode 100644 sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_multiapi.py delete mode 100644 sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/aio/_policies_async.py create mode 100644 sdk/textanalytics/azure-ai-textanalytics/tests/test_multiapi.py create mode 100644 sdk/textanalytics/azure-ai-textanalytics/tests/test_multiapi_async.py diff --git a/eng/ci_tools.txt b/eng/ci_tools.txt index ab463e9daad9..dac85fba9d07 100644 --- a/eng/ci_tools.txt +++ b/eng/ci_tools.txt @@ -11,7 +11,7 @@ twine==1.15.0; python_version == '2.7' or python_version == '3.5' twine==3.1.1; python_version >= '3.6' pathlib2==2.3.5 readme-renderer[md]==25.0 -doc-warden==0.5.4 +doc-warden==0.7.1 # we pin coverage to 4.5.4 because there is an bug with `pytest-cov`. the generated coverage files cannot be `coverage combine`ed coverage==4.5.4 codecov==2.1.0 diff --git a/eng/common/pipelines/templates/steps/verify-links.yml b/eng/common/pipelines/templates/steps/verify-links.yml index 1a99350f0161..a3d385becefc 100644 --- a/eng/common/pipelines/templates/steps/verify-links.yml +++ b/eng/common/pipelines/templates/steps/verify-links.yml @@ -1,5 +1,7 @@ parameters: Directory: 'not-specified' + IgnoreLinksFile: "$(Build.SourcesDirectory)/eng/ignore-links.txt" + steps: - task: PowerShell@2 @@ -9,4 +11,4 @@ steps: workingDirectory: $(Build.SourcesDirectory)/${{ parameters.Directory }} filePath: eng/common/scripts/Verify-Links.ps1 arguments: > - -urls $(dir -r -i *.md) -rootUrl "file://$(Build.SourcesDirectory)/${{ parameters.Directory }}" + -urls $(dir -r -i *.md) -rootUrl "file://$(Build.SourcesDirectory)/${{ parameters.Directory }}" -recursive:$false -ignoreLinksFile ${{ parameters.IgnoreLinksFile }} diff --git a/eng/common/scripts/Verify-ChangeLog.ps1 b/eng/common/scripts/Verify-ChangeLog.ps1 index c9ad4d295644..26218d988df2 100644 --- a/eng/common/scripts/Verify-ChangeLog.ps1 +++ b/eng/common/scripts/Verify-ChangeLog.ps1 @@ -1,14 +1,14 @@ # Wrapper Script for ChangeLog Verification param ( - [String]$ChangeLogLocation, - [String]$VersionString, - [string]$PackageName, - [string]$ServiceName, - [string]$RepoRoot, - [ValidateSet("net","java","js","python")] - [string]$Language, - [string]$RepoName, - [boolean]$ForRelease=$False + [String]$ChangeLogLocation, + [String]$VersionString, + [string]$PackageName, + [string]$ServiceName, + [string]$RepoRoot, + [ValidateSet("net", "java", "js", "python")] + [string]$Language, + [string]$RepoName, + [boolean]$ForRelease = $False ) $ProgressPreference = "SilentlyContinue" @@ -16,23 +16,32 @@ $ProgressPreference = "SilentlyContinue" Import-Module (Join-Path $PSScriptRoot modules ChangeLog-Operations.psm1) $validChangeLog = $false -if ($ChangeLogLocation -and $VersionString) +if ($ChangeLogLocation -and $VersionString) { $validChangeLog = Confirm-ChangeLogEntry -ChangeLogLocation $ChangeLogLocation -VersionString $VersionString -ForRelease $ForRelease } -else +else { Import-Module (Join-Path $PSScriptRoot modules Package-Properties.psm1) if ([System.String]::IsNullOrEmpty($Language)) { - $Language = $RepoName.Substring($RepoName.LastIndexOf('-') + 1) + if ($RepoName -match "azure-sdk-for-(?[^-]+)") + { + $Language = $matches["lang"] + } + else + { + Write-Error "Failed to set Language automatically. Please pass the appropriate Language as a parameter." + exit 1 + } } $PackageProp = Get-PkgProperties -PackageName $PackageName -ServiceName $ServiceName -Language $Language -RepoRoot $RepoRoot $validChangeLog = Confirm-ChangeLogEntry -ChangeLogLocation $PackageProp.pkgChangeLogPath -VersionString $PackageProp.pkgVersion -ForRelease $ForRelease } -if (!$validChangeLog) { +if (!$validChangeLog) +{ exit 1 } diff --git a/eng/common/scripts/modules/Package-Properties.psm1 b/eng/common/scripts/modules/Package-Properties.psm1 index fa6920bec349..b9a8eb11780d 100644 --- a/eng/common/scripts/modules/Package-Properties.psm1 +++ b/eng/common/scripts/modules/Package-Properties.psm1 @@ -65,6 +65,9 @@ class PackageProps } $ProgressPreference = "SilentlyContinue" + + +Register-PSRepository -Default -ErrorAction:SilentlyContinue Install-Module -Name powershell-yaml -RequiredVersion 0.4.1 -Force -Scope CurrentUser function Extract-PkgProps ($pkgPath, $serviceName, $pkgName, $lang) diff --git a/sdk/formrecognizer/azure-ai-formrecognizer/azure/ai/formrecognizer/_api_versions.py b/sdk/formrecognizer/azure-ai-formrecognizer/azure/ai/formrecognizer/_api_versions.py new file mode 100644 index 000000000000..ff7fa0721863 --- /dev/null +++ b/sdk/formrecognizer/azure-ai-formrecognizer/azure/ai/formrecognizer/_api_versions.py @@ -0,0 +1,18 @@ +# ------------------------------------ +# Copyright (c) Microsoft Corporation. +# Licensed under the MIT License. +# ------------------------------------ + + +_SUPPORTED_API_VERSIONS = [ + "2.0", +] + +def validate_api_version(api_version): + # type: (str) -> None + """Raise error if api_version is invalid """ + if not api_version: + return + if api_version not in _SUPPORTED_API_VERSIONS: + versions = '\n'.join(_SUPPORTED_API_VERSIONS) + raise ValueError("Unsupported API version '{}'. Please select from:\n{}".format(api_version, versions)) 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 f71233e1333a..e4bc9786023f 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 @@ -23,6 +23,7 @@ prepare_form_result ) from ._generated.models import AnalyzeOperationResult +from ._api_versions import validate_api_version from ._helpers import get_content_type, get_authentication_policy, error_map, POLLING_INTERVAL from ._user_agent import USER_AGENT from ._polling import AnalyzePolling @@ -44,6 +45,9 @@ class FormRecognizerClient(object): credential from :mod:`azure.identity`. :type credential: :class:`~azure.core.credentials.AzureKeyCredential` or :class:`~azure.core.credentials.TokenCredential` + :keyword str api_version: + The API version of the service to use for requests. It defaults to the latest service version. + Setting to an older version may result in reduced feature compatibility. .. admonition:: Example: @@ -67,6 +71,8 @@ def __init__(self, endpoint, credential, **kwargs): authentication_policy = get_authentication_policy(credential) polling_interval = kwargs.pop("polling_interval", POLLING_INTERVAL) + api_version = kwargs.pop('api_version', None) + validate_api_version(api_version) self._client = FormRecognizer( endpoint=endpoint, credential=credential, # type: ignore @@ -128,7 +134,7 @@ def begin_recognize_receipts(self, receipt, **kwargs): if content_type is None: content_type = get_content_type(receipt) - return self._client.begin_analyze_receipt_async( + return self._client.begin_analyze_receipt_async( # type: ignore file_stream=receipt, content_type=content_type, include_text_details=include_field_elements, @@ -175,7 +181,7 @@ def begin_recognize_receipts_from_url(self, receipt_url, **kwargs): continuation_token = kwargs.pop("continuation_token", None) include_field_elements = kwargs.pop("include_field_elements", False) - return self._client.begin_analyze_receipt_async( + return self._client.begin_analyze_receipt_async( # type: ignore file_stream={"source": receipt_url}, include_text_details=include_field_elements, cls=kwargs.pop("cls", self._receipt_callback), @@ -229,7 +235,7 @@ def begin_recognize_content(self, form, **kwargs): if content_type is None: content_type = get_content_type(form) - return self._client.begin_analyze_layout_async( + return self._client.begin_analyze_layout_async( # type: ignore file_stream=form, content_type=content_type, cls=kwargs.pop("cls", self._content_callback), @@ -259,7 +265,7 @@ def begin_recognize_content_from_url(self, form_url, **kwargs): polling_interval = kwargs.pop("polling_interval", self._client._config.polling_interval) continuation_token = kwargs.pop("continuation_token", None) - return self._client.begin_analyze_layout_async( + return self._client.begin_analyze_layout_async( # type: ignore file_stream={"source": form_url}, cls=kwargs.pop("cls", self._content_callback), polling=LROBasePolling(timeout=polling_interval, **kwargs), @@ -322,7 +328,7 @@ def analyze_callback(raw_response, _, headers): # pylint: disable=unused-argume return prepare_form_result(analyze_result, model_id) deserialization_callback = cls if cls else analyze_callback - return self._client.begin_analyze_with_custom_model( + return self._client.begin_analyze_with_custom_model( # type: ignore file_stream=form, model_id=model_id, include_text_details=include_field_elements, @@ -368,7 +374,7 @@ def analyze_callback(raw_response, _, headers): # pylint: disable=unused-argume return prepare_form_result(analyze_result, model_id) deserialization_callback = cls if cls else analyze_callback - return self._client.begin_analyze_with_custom_model( + return self._client.begin_analyze_with_custom_model( # type: ignore file_stream={"source": form_url}, model_id=model_id, include_text_details=include_field_elements, diff --git a/sdk/formrecognizer/azure-ai-formrecognizer/azure/ai/formrecognizer/_form_training_client.py b/sdk/formrecognizer/azure-ai-formrecognizer/azure/ai/formrecognizer/_form_training_client.py index ccfc37d14d15..094284051091 100644 --- a/sdk/formrecognizer/azure-ai-formrecognizer/azure/ai/formrecognizer/_form_training_client.py +++ b/sdk/formrecognizer/azure-ai-formrecognizer/azure/ai/formrecognizer/_form_training_client.py @@ -35,6 +35,7 @@ from ._polling import TrainingPolling, CopyPolling from ._user_agent import USER_AGENT from ._form_recognizer_client import FormRecognizerClient +from ._api_versions import validate_api_version if TYPE_CHECKING: from azure.core.credentials import AzureKeyCredential, TokenCredential from azure.core.pipeline import PipelineResponse @@ -56,6 +57,9 @@ class FormTrainingClient(object): credential from :mod:`azure.identity`. :type credential: :class:`~azure.core.credentials.AzureKeyCredential` or :class:`~azure.core.credentials.TokenCredential` + :keyword str api_version: + The API version of the service to use for requests. It defaults to the latest service version. + Setting to an older version may result in reduced feature compatibility. .. admonition:: Example: @@ -80,6 +84,8 @@ def __init__(self, endpoint, credential, **kwargs): self._credential = credential authentication_policy = get_authentication_policy(credential) polling_interval = kwargs.pop("polling_interval", POLLING_INTERVAL) + api_version = kwargs.pop('api_version', None) + validate_api_version(api_version) self._client = FormRecognizer( endpoint=self._endpoint, credential=self._credential, # type: ignore diff --git a/sdk/formrecognizer/azure-ai-formrecognizer/azure/ai/formrecognizer/_generated/__init__.py b/sdk/formrecognizer/azure-ai-formrecognizer/azure/ai/formrecognizer/_generated/__init__.py index bbb35174dae1..b0df362d6f33 100644 --- a/sdk/formrecognizer/azure-ai-formrecognizer/azure/ai/formrecognizer/_generated/__init__.py +++ b/sdk/formrecognizer/azure-ai-formrecognizer/azure/ai/formrecognizer/_generated/__init__.py @@ -5,13 +5,10 @@ # -------------------------------------------------------------------------- from ._form_recognizer_client import FormRecognizerClient -from ._version import VERSION - -__version__ = VERSION __all__ = ['FormRecognizerClient'] try: - from ._patch import patch_sdk + from ._patch import patch_sdk # type: ignore patch_sdk() except ImportError: pass diff --git a/sdk/formrecognizer/azure-ai-formrecognizer/azure/ai/formrecognizer/_generated/_configuration.py b/sdk/formrecognizer/azure-ai-formrecognizer/azure/ai/formrecognizer/_generated/_configuration.py index db0a5e6f5c48..e37f967c5327 100644 --- a/sdk/formrecognizer/azure-ai-formrecognizer/azure/ai/formrecognizer/_generated/_configuration.py +++ b/sdk/formrecognizer/azure-ai-formrecognizer/azure/ai/formrecognizer/_generated/_configuration.py @@ -9,14 +9,13 @@ from azure.core.configuration import Configuration from azure.core.pipeline import policies -from ._version import VERSION - if TYPE_CHECKING: # pylint: disable=unused-import,ungrouped-imports from typing import Any from azure.core.credentials import TokenCredential +VERSION = "unknown" class FormRecognizerClientConfiguration(Configuration): """Configuration for FormRecognizerClient. @@ -59,6 +58,7 @@ def _configure( self.headers_policy = kwargs.get('headers_policy') or policies.HeadersPolicy(**kwargs) self.proxy_policy = kwargs.get('proxy_policy') or policies.ProxyPolicy(**kwargs) self.logging_policy = kwargs.get('logging_policy') or policies.NetworkTraceLoggingPolicy(**kwargs) + self.http_logging_policy = kwargs.get('http_logging_policy') or policies.HttpLoggingPolicy(**kwargs) self.retry_policy = kwargs.get('retry_policy') or policies.RetryPolicy(**kwargs) self.custom_hook_policy = kwargs.get('custom_hook_policy') or policies.CustomHookPolicy(**kwargs) self.redirect_policy = kwargs.get('redirect_policy') or policies.RedirectPolicy(**kwargs) diff --git a/sdk/formrecognizer/azure-ai-formrecognizer/azure/ai/formrecognizer/_generated/_form_recognizer_client.py b/sdk/formrecognizer/azure-ai-formrecognizer/azure/ai/formrecognizer/_generated/_form_recognizer_client.py index ebfee04f90f6..909b6c6893de 100644 --- a/sdk/formrecognizer/azure-ai-formrecognizer/azure/ai/formrecognizer/_generated/_form_recognizer_client.py +++ b/sdk/formrecognizer/azure-ai-formrecognizer/azure/ai/formrecognizer/_generated/_form_recognizer_client.py @@ -37,7 +37,7 @@ def __init__( **kwargs # type: Any ): # type: (...) -> None - base_url = '{endpoint}/formrecognizer/v2.0-preview' + base_url = '{endpoint}/formrecognizer/v2.0' self._config = FormRecognizerClientConfiguration(credential, endpoint, **kwargs) self._client = PipelineClient(base_url=base_url, config=self._config, **kwargs) diff --git a/sdk/formrecognizer/azure-ai-formrecognizer/azure/ai/formrecognizer/_generated/aio/_configuration_async.py b/sdk/formrecognizer/azure-ai-formrecognizer/azure/ai/formrecognizer/_generated/aio/_configuration_async.py index 3faa127ff1c9..076d4b740be2 100644 --- a/sdk/formrecognizer/azure-ai-formrecognizer/azure/ai/formrecognizer/_generated/aio/_configuration_async.py +++ b/sdk/formrecognizer/azure-ai-formrecognizer/azure/ai/formrecognizer/_generated/aio/_configuration_async.py @@ -9,12 +9,11 @@ from azure.core.configuration import Configuration from azure.core.pipeline import policies -from .._version import VERSION - if TYPE_CHECKING: # pylint: disable=unused-import,ungrouped-imports from azure.core.credentials_async import AsyncTokenCredential +VERSION = "unknown" class FormRecognizerClientConfiguration(Configuration): """Configuration for FormRecognizerClient. @@ -55,6 +54,7 @@ def _configure( self.headers_policy = kwargs.get('headers_policy') or policies.HeadersPolicy(**kwargs) self.proxy_policy = kwargs.get('proxy_policy') or policies.ProxyPolicy(**kwargs) self.logging_policy = kwargs.get('logging_policy') or policies.NetworkTraceLoggingPolicy(**kwargs) + self.http_logging_policy = kwargs.get('http_logging_policy') or policies.HttpLoggingPolicy(**kwargs) self.retry_policy = kwargs.get('retry_policy') or policies.AsyncRetryPolicy(**kwargs) self.custom_hook_policy = kwargs.get('custom_hook_policy') or policies.CustomHookPolicy(**kwargs) self.redirect_policy = kwargs.get('redirect_policy') or policies.AsyncRedirectPolicy(**kwargs) diff --git a/sdk/formrecognizer/azure-ai-formrecognizer/azure/ai/formrecognizer/_generated/aio/_form_recognizer_client_async.py b/sdk/formrecognizer/azure-ai-formrecognizer/azure/ai/formrecognizer/_generated/aio/_form_recognizer_client_async.py index eee9966f59a4..8ef1d9a86519 100644 --- a/sdk/formrecognizer/azure-ai-formrecognizer/azure/ai/formrecognizer/_generated/aio/_form_recognizer_client_async.py +++ b/sdk/formrecognizer/azure-ai-formrecognizer/azure/ai/formrecognizer/_generated/aio/_form_recognizer_client_async.py @@ -34,7 +34,7 @@ def __init__( endpoint: str, **kwargs: Any ) -> None: - base_url = '{endpoint}/formrecognizer/v2.0-preview' + base_url = '{endpoint}/formrecognizer/v2.0' self._config = FormRecognizerClientConfiguration(credential, endpoint, **kwargs) self._client = AsyncPipelineClient(base_url=base_url, config=self._config, **kwargs) diff --git a/sdk/formrecognizer/azure-ai-formrecognizer/azure/ai/formrecognizer/_generated/aio/operations_async/_form_recognizer_client_operations_async.py b/sdk/formrecognizer/azure-ai-formrecognizer/azure/ai/formrecognizer/_generated/aio/operations_async/_form_recognizer_client_operations_async.py index 0746043cba4a..bdce33b13d8d 100644 --- a/sdk/formrecognizer/azure-ai-formrecognizer/azure/ai/formrecognizer/_generated/aio/operations_async/_form_recognizer_client_operations_async.py +++ b/sdk/formrecognizer/azure-ai-formrecognizer/azure/ai/formrecognizer/_generated/aio/operations_async/_form_recognizer_client_operations_async.py @@ -66,7 +66,6 @@ async def train_custom_model_async( header_parameters = {} # type: Dict[str, Any] header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') - # Construct and send request body_content_kwargs = {} # type: Dict[str, Any] body_content = self._serialize.body(train_request, 'TrainRequest') body_content_kwargs['content'] = body_content @@ -129,7 +128,6 @@ async def get_custom_model( header_parameters = {} # type: Dict[str, Any] header_parameters['Accept'] = 'application/json' - # Construct and send request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -183,7 +181,6 @@ async def delete_custom_model( # Construct headers header_parameters = {} # type: Dict[str, Any] - # Construct and send request request = self._client.delete(url, query_parameters, header_parameters) pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -227,7 +224,6 @@ async def _analyze_with_custom_model_initial( header_parameters = {} # type: Dict[str, Any] header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') - # Construct and send request body_content_kwargs = {} # type: Dict[str, Any] if header_parameters['Content-Type'].split(";")[0] in ['application/pdf', 'image/jpeg', 'image/png', 'image/tiff']: body_content_kwargs['stream_content'] = file_stream @@ -267,13 +263,13 @@ async def begin_analyze_with_custom_model( include_text_details: Optional[bool] = False, file_stream: Optional[Union[IO, "models.SourcePath"]] = None, **kwargs - ) -> None: + ) -> AsyncLROPoller[None]: """Analyze Form. Extract key-value pairs, tables, and semantic values from a given document. The input document - must be of one of the supported content types - 'application/pdf', 'image/jpeg', 'image/png' or - 'image/tiff'. Alternatively, use 'application/json' type to specify the location (Uri or local - path) of the document to be analyzed. + must be of one of the supported content types - 'application/pdf', 'image/jpeg', 'image/png' or + 'image/tiff'. Alternatively, use 'application/json' type to specify the location (Uri or local + path) of the document to be analyzed. :param model_id: Model identifier. :type model_id: str @@ -287,8 +283,8 @@ async def begin_analyze_with_custom_model( polling object for personal polling strategy :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. - :return: None, or the result of cls(response) - :rtype: None + :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) + :rtype: ~azure.core.polling.AsyncLROPoller[None] :raises ~azure.core.exceptions.HttpResponseError: """ polling = kwargs.pop('polling', False) # type: Union[bool, AsyncPollingMethod] @@ -368,7 +364,6 @@ async def get_analyze_form_result( header_parameters = {} # type: Dict[str, Any] header_parameters['Accept'] = 'application/json' - # Construct and send request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -412,7 +407,6 @@ async def _copy_custom_model_initial( header_parameters = {} # type: Dict[str, Any] header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') - # Construct and send request body_content_kwargs = {} # type: Dict[str, Any] body_content = self._serialize.body(copy_request, 'CopyRequest') body_content_kwargs['content'] = body_content @@ -440,11 +434,11 @@ async def begin_copy_custom_model( model_id: str, copy_request: "models.CopyRequest", **kwargs - ) -> None: + ) -> AsyncLROPoller[None]: """Copy Custom Model. Copy custom model stored in this resource (the source) to user specified target Form Recognizer - resource. + resource. :param model_id: Model identifier. :type model_id: str @@ -456,8 +450,8 @@ async def begin_copy_custom_model( polling object for personal polling strategy :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. - :return: None, or the result of cls(response) - :rtype: None + :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) + :rtype: ~azure.core.polling.AsyncLROPoller[None] :raises ~azure.core.exceptions.HttpResponseError: """ polling = kwargs.pop('polling', False) # type: Union[bool, AsyncPollingMethod] @@ -536,7 +530,6 @@ async def get_custom_model_copy_result( header_parameters = {} # type: Dict[str, Any] header_parameters['Accept'] = 'application/json' - # Construct and send request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -586,7 +579,6 @@ async def generate_model_copy_authorization( header_parameters = {} # type: Dict[str, Any] header_parameters['Accept'] = 'application/json' - # Construct and send request request = self._client.post(url, query_parameters, header_parameters) pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -633,7 +625,6 @@ async def _analyze_receipt_async_initial( header_parameters = {} # type: Dict[str, Any] header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') - # Construct and send request body_content_kwargs = {} # type: Dict[str, Any] if header_parameters['Content-Type'].split(";")[0] in ['application/pdf', 'image/jpeg', 'image/png', 'image/tiff']: body_content_kwargs['stream_content'] = file_stream @@ -672,13 +663,13 @@ async def begin_analyze_receipt_async( include_text_details: Optional[bool] = False, file_stream: Optional[Union[IO, "models.SourcePath"]] = None, **kwargs - ) -> None: + ) -> AsyncLROPoller[None]: """Analyze Receipt. Extract field text and semantic values from a given receipt document. The input document must - be of one of the supported content types - 'application/pdf', 'image/jpeg', 'image/png' or - 'image/tiff'. Alternatively, use 'application/json' type to specify the location (Uri or local - path) of the document to be analyzed. + be of one of the supported content types - 'application/pdf', 'image/jpeg', 'image/png' or + 'image/tiff'. Alternatively, use 'application/json' type to specify the location (Uri or local + path) of the document to be analyzed. :param include_text_details: Include text lines and element references in the result. :type include_text_details: bool @@ -690,8 +681,8 @@ async def begin_analyze_receipt_async( polling object for personal polling strategy :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. - :return: None, or the result of cls(response) - :rtype: None + :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) + :rtype: ~azure.core.polling.AsyncLROPoller[None] :raises ~azure.core.exceptions.HttpResponseError: """ polling = kwargs.pop('polling', False) # type: Union[bool, AsyncPollingMethod] @@ -766,7 +757,6 @@ async def get_analyze_receipt_result( header_parameters = {} # type: Dict[str, Any] header_parameters['Accept'] = 'application/json' - # Construct and send request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -808,7 +798,6 @@ async def _analyze_layout_async_initial( header_parameters = {} # type: Dict[str, Any] header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') - # Construct and send request body_content_kwargs = {} # type: Dict[str, Any] if header_parameters['Content-Type'].split(";")[0] in ['application/pdf', 'image/jpeg', 'image/png', 'image/tiff']: body_content_kwargs['stream_content'] = file_stream @@ -846,13 +835,13 @@ async def begin_analyze_layout_async( self, file_stream: Optional[Union[IO, "models.SourcePath"]] = None, **kwargs - ) -> None: + ) -> AsyncLROPoller[None]: """Analyze Layout. Extract text and layout information from a given document. The input document must be of one of - the supported content types - 'application/pdf', 'image/jpeg', 'image/png' or 'image/tiff'. - Alternatively, use 'application/json' type to specify the location (Uri or local path) of the - document to be analyzed. + the supported content types - 'application/pdf', 'image/jpeg', 'image/png' or 'image/tiff'. + Alternatively, use 'application/json' type to specify the location (Uri or local path) of the + document to be analyzed. :param file_stream: .json, .pdf, .jpg, .png or .tiff type file stream. :type file_stream: ~azure.ai.formrecognizer.models.SourcePath @@ -862,8 +851,8 @@ async def begin_analyze_layout_async( polling object for personal polling strategy :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. - :return: None, or the result of cls(response) - :rtype: None + :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) + :rtype: ~azure.core.polling.AsyncLROPoller[None] :raises ~azure.core.exceptions.HttpResponseError: """ polling = kwargs.pop('polling', False) # type: Union[bool, AsyncPollingMethod] @@ -937,7 +926,6 @@ async def get_analyze_layout_result( header_parameters = {} # type: Dict[str, Any] header_parameters['Accept'] = 'application/json' - # Construct and send request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -975,6 +963,10 @@ def list_custom_models( op = "full" def prepare_request(next_link=None): + # Construct headers + header_parameters = {} # type: Dict[str, Any] + header_parameters['Accept'] = 'application/json' + if not next_link: # Construct URL url = self.list_custom_models.metadata['url'] # type: ignore @@ -986,6 +978,7 @@ def prepare_request(next_link=None): query_parameters = {} # type: Dict[str, Any] query_parameters['op'] = self._serialize.query("op", op, 'str') + request = self._client.get(url, query_parameters, header_parameters) else: url = next_link query_parameters = {} # type: Dict[str, Any] @@ -993,12 +986,7 @@ def prepare_request(next_link=None): 'endpoint': self._serialize.url("self._config.endpoint", self._config.endpoint, 'str', skip_quote=True), } url = self._client.format_url(url, **path_format_arguments) - # Construct headers - header_parameters = {} # type: Dict[str, Any] - header_parameters['Accept'] = 'application/json' - - # Construct and send request - request = self._client.get(url, query_parameters, header_parameters) + request = self._client.get(url, query_parameters, header_parameters) return request async def extract_data(pipeline_response): @@ -1060,7 +1048,6 @@ async def get_custom_models( header_parameters = {} # type: Dict[str, Any] header_parameters['Accept'] = 'application/json' - # Construct and send request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response diff --git a/sdk/formrecognizer/azure-ai-formrecognizer/azure/ai/formrecognizer/_generated/models/_form_recognizer_client_enums.py b/sdk/formrecognizer/azure-ai-formrecognizer/azure/ai/formrecognizer/_generated/models/_form_recognizer_client_enums.py index cded7e466b2a..da1bc59ee782 100644 --- a/sdk/formrecognizer/azure-ai-formrecognizer/azure/ai/formrecognizer/_generated/models/_form_recognizer_client_enums.py +++ b/sdk/formrecognizer/azure-ai-formrecognizer/azure/ai/formrecognizer/_generated/models/_form_recognizer_client_enums.py @@ -4,66 +4,84 @@ # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -from enum import Enum +from enum import Enum, EnumMeta +from six import with_metaclass -class ContentType(str, Enum): +class _CaseInsensitiveEnumMeta(EnumMeta): + def __getitem__(self, name): + return super().__getitem__(name.upper()) + + def __getattr__(cls, name): + """Return the enum member matching `name` + We use __getattr__ instead of descriptors or inserting into the enum + class' __dict__ in order to support `name` and `value` being both + properties for enum members (which live in the class' __dict__) and + enum members themselves. + """ + try: + return cls._member_map_[name.upper()] + except KeyError: + raise AttributeError(name) + + +class ContentType(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): """Content type for upload """ - application_pdf = "application/pdf" #: Content Type 'application/pdf'. - image_jpeg = "image/jpeg" #: Content Type 'image/jpeg'. - image_png = "image/png" #: Content Type 'image/png'. - image_tiff = "image/tiff" #: Content Type 'image/tiff'. + APPLICATION_PDF = "application/pdf" #: Content Type 'application/pdf'. + IMAGE_JPEG = "image/jpeg" #: Content Type 'image/jpeg'. + IMAGE_PNG = "image/png" #: Content Type 'image/png'. + IMAGE_TIFF = "image/tiff" #: Content Type 'image/tiff'. -class FieldValueType(str, Enum): +class FieldValueType(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): """Semantic data type of the field value. """ - string = "string" - date = "date" - time = "time" - phone_number = "phoneNumber" - number = "number" - integer = "integer" - array = "array" - object = "object" + STRING = "string" + DATE = "date" + TIME = "time" + PHONE_NUMBER = "phoneNumber" + NUMBER = "number" + INTEGER = "integer" + ARRAY = "array" + OBJECT = "object" -class Language(str, Enum): +class Language(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): """Language code """ - en = "en" - es = "es" + EN = "en" + ES = "es" -class LengthUnit(str, Enum): +class LengthUnit(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): """The unit used by the width, height and boundingBox properties. For images, the unit is "pixel". For PDF, the unit is "inch". """ - pixel = "pixel" - inch = "inch" + PIXEL = "pixel" + INCH = "inch" -class ModelStatus(str, Enum): +class ModelStatus(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): """Status of the model. """ - creating = "creating" - ready = "ready" - invalid = "invalid" + CREATING = "creating" + READY = "ready" + INVALID = "invalid" -class OperationStatus(str, Enum): +class OperationStatus(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): """Status of the queued operation. """ - not_started = "notStarted" - running = "running" - succeeded = "succeeded" - failed = "failed" + NOT_STARTED = "notStarted" + RUNNING = "running" + SUCCEEDED = "succeeded" + FAILED = "failed" -class TrainStatus(str, Enum): +class TrainStatus(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): """Status of the training operation. """ - succeeded = "succeeded" - partially_succeeded = "partiallySucceeded" - failed = "failed" + SUCCEEDED = "succeeded" + PARTIALLY_SUCCEEDED = "partiallySucceeded" + FAILED = "failed" diff --git a/sdk/formrecognizer/azure-ai-formrecognizer/azure/ai/formrecognizer/_generated/operations/_form_recognizer_client_operations.py b/sdk/formrecognizer/azure-ai-formrecognizer/azure/ai/formrecognizer/_generated/operations/_form_recognizer_client_operations.py index 3bc85d224944..0f5963fedf21 100644 --- a/sdk/formrecognizer/azure-ai-formrecognizer/azure/ai/formrecognizer/_generated/operations/_form_recognizer_client_operations.py +++ b/sdk/formrecognizer/azure-ai-formrecognizer/azure/ai/formrecognizer/_generated/operations/_form_recognizer_client_operations.py @@ -70,7 +70,6 @@ def train_custom_model_async( header_parameters = {} # type: Dict[str, Any] header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') - # Construct and send request body_content_kwargs = {} # type: Dict[str, Any] body_content = self._serialize.body(train_request, 'TrainRequest') body_content_kwargs['content'] = body_content @@ -134,7 +133,6 @@ def get_custom_model( header_parameters = {} # type: Dict[str, Any] header_parameters['Accept'] = 'application/json' - # Construct and send request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -189,7 +187,6 @@ def delete_custom_model( # Construct headers header_parameters = {} # type: Dict[str, Any] - # Construct and send request request = self._client.delete(url, query_parameters, header_parameters) pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -234,7 +231,6 @@ def _analyze_with_custom_model_initial( header_parameters = {} # type: Dict[str, Any] header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') - # Construct and send request body_content_kwargs = {} # type: Dict[str, Any] if header_parameters['Content-Type'].split(";")[0] in ['application/pdf', 'image/jpeg', 'image/png', 'image/tiff']: body_content_kwargs['stream_content'] = file_stream @@ -275,13 +271,13 @@ def begin_analyze_with_custom_model( file_stream=None, # type: Optional[Union[IO, "models.SourcePath"]] **kwargs # type: Any ): - # type: (...) -> LROPoller + # type: (...) -> LROPoller[None] """Analyze Form. Extract key-value pairs, tables, and semantic values from a given document. The input document - must be of one of the supported content types - 'application/pdf', 'image/jpeg', 'image/png' or - 'image/tiff'. Alternatively, use 'application/json' type to specify the location (Uri or local - path) of the document to be analyzed. + must be of one of the supported content types - 'application/pdf', 'image/jpeg', 'image/png' or + 'image/tiff'. Alternatively, use 'application/json' type to specify the location (Uri or local + path) of the document to be analyzed. :param model_id: Model identifier. :type model_id: str @@ -377,7 +373,6 @@ def get_analyze_form_result( header_parameters = {} # type: Dict[str, Any] header_parameters['Accept'] = 'application/json' - # Construct and send request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -422,7 +417,6 @@ def _copy_custom_model_initial( header_parameters = {} # type: Dict[str, Any] header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') - # Construct and send request body_content_kwargs = {} # type: Dict[str, Any] body_content = self._serialize.body(copy_request, 'CopyRequest') body_content_kwargs['content'] = body_content @@ -451,11 +445,11 @@ def begin_copy_custom_model( copy_request, # type: "models.CopyRequest" **kwargs # type: Any ): - # type: (...) -> LROPoller + # type: (...) -> LROPoller[None] """Copy Custom Model. Copy custom model stored in this resource (the source) to user specified target Form Recognizer - resource. + resource. :param model_id: Model identifier. :type model_id: str @@ -548,7 +542,6 @@ def get_custom_model_copy_result( header_parameters = {} # type: Dict[str, Any] header_parameters['Accept'] = 'application/json' - # Construct and send request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -599,7 +592,6 @@ def generate_model_copy_authorization( header_parameters = {} # type: Dict[str, Any] header_parameters['Accept'] = 'application/json' - # Construct and send request request = self._client.post(url, query_parameters, header_parameters) pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -647,7 +639,6 @@ def _analyze_receipt_async_initial( header_parameters = {} # type: Dict[str, Any] header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') - # Construct and send request body_content_kwargs = {} # type: Dict[str, Any] if header_parameters['Content-Type'].split(";")[0] in ['application/pdf', 'image/jpeg', 'image/png', 'image/tiff']: body_content_kwargs['stream_content'] = file_stream @@ -687,13 +678,13 @@ def begin_analyze_receipt_async( file_stream=None, # type: Optional[Union[IO, "models.SourcePath"]] **kwargs # type: Any ): - # type: (...) -> LROPoller + # type: (...) -> LROPoller[None] """Analyze Receipt. Extract field text and semantic values from a given receipt document. The input document must - be of one of the supported content types - 'application/pdf', 'image/jpeg', 'image/png' or - 'image/tiff'. Alternatively, use 'application/json' type to specify the location (Uri or local - path) of the document to be analyzed. + be of one of the supported content types - 'application/pdf', 'image/jpeg', 'image/png' or + 'image/tiff'. Alternatively, use 'application/json' type to specify the location (Uri or local + path) of the document to be analyzed. :param include_text_details: Include text lines and element references in the result. :type include_text_details: bool @@ -782,7 +773,6 @@ def get_analyze_receipt_result( header_parameters = {} # type: Dict[str, Any] header_parameters['Accept'] = 'application/json' - # Construct and send request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -825,7 +815,6 @@ def _analyze_layout_async_initial( header_parameters = {} # type: Dict[str, Any] header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') - # Construct and send request body_content_kwargs = {} # type: Dict[str, Any] if header_parameters['Content-Type'].split(";")[0] in ['application/pdf', 'image/jpeg', 'image/png', 'image/tiff']: body_content_kwargs['stream_content'] = file_stream @@ -864,13 +853,13 @@ def begin_analyze_layout_async( file_stream=None, # type: Optional[Union[IO, "models.SourcePath"]] **kwargs # type: Any ): - # type: (...) -> LROPoller + # type: (...) -> LROPoller[None] """Analyze Layout. Extract text and layout information from a given document. The input document must be of one of - the supported content types - 'application/pdf', 'image/jpeg', 'image/png' or 'image/tiff'. - Alternatively, use 'application/json' type to specify the location (Uri or local path) of the - document to be analyzed. + the supported content types - 'application/pdf', 'image/jpeg', 'image/png' or 'image/tiff'. + Alternatively, use 'application/json' type to specify the location (Uri or local path) of the + document to be analyzed. :param file_stream: .json, .pdf, .jpg, .png or .tiff type file stream. :type file_stream: ~azure.ai.formrecognizer.models.SourcePath @@ -956,7 +945,6 @@ def get_analyze_layout_result( header_parameters = {} # type: Dict[str, Any] header_parameters['Accept'] = 'application/json' - # Construct and send request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -995,6 +983,10 @@ def list_custom_models( op = "full" def prepare_request(next_link=None): + # Construct headers + header_parameters = {} # type: Dict[str, Any] + header_parameters['Accept'] = 'application/json' + if not next_link: # Construct URL url = self.list_custom_models.metadata['url'] # type: ignore @@ -1006,6 +998,7 @@ def prepare_request(next_link=None): query_parameters = {} # type: Dict[str, Any] query_parameters['op'] = self._serialize.query("op", op, 'str') + request = self._client.get(url, query_parameters, header_parameters) else: url = next_link query_parameters = {} # type: Dict[str, Any] @@ -1013,12 +1006,7 @@ def prepare_request(next_link=None): 'endpoint': self._serialize.url("self._config.endpoint", self._config.endpoint, 'str', skip_quote=True), } url = self._client.format_url(url, **path_format_arguments) - # Construct headers - header_parameters = {} # type: Dict[str, Any] - header_parameters['Accept'] = 'application/json' - - # Construct and send request - request = self._client.get(url, query_parameters, header_parameters) + request = self._client.get(url, query_parameters, header_parameters) return request def extract_data(pipeline_response): @@ -1081,7 +1069,6 @@ def get_custom_models( header_parameters = {} # type: Dict[str, Any] header_parameters['Accept'] = 'application/json' - # Construct and send request request = self._client.get(url, query_parameters, header_parameters) pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response 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 90824bf880af..c4cc7aa1798a 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 @@ -26,6 +26,7 @@ from .._helpers import get_content_type, get_authentication_policy, error_map, POLLING_INTERVAL from .._user_agent import USER_AGENT from .._polling import AnalyzePolling +from .._api_versions import validate_api_version from .._models import FormPage, RecognizedForm if TYPE_CHECKING: from azure.core.credentials import AzureKeyCredential @@ -45,6 +46,9 @@ class FormRecognizerClient(object): credential from :mod:`azure.identity`. :type credential: :class:`~azure.core.credentials.AzureKeyCredential` or :class:`~azure.core.credentials_async.AsyncTokenCredential` + :keyword str api_version: + The API version of the service to use for requests. It defaults to the latest service version. + Setting to an older version may result in reduced feature compatibility. .. admonition:: Example: @@ -72,6 +76,8 @@ def __init__( authentication_policy = get_authentication_policy(credential) polling_interval = kwargs.pop("polling_interval", POLLING_INTERVAL) + api_version = kwargs.pop('api_version', None) + validate_api_version(api_version) self._client = FormRecognizer( endpoint=endpoint, credential=credential, # type: ignore diff --git a/sdk/formrecognizer/azure-ai-formrecognizer/azure/ai/formrecognizer/aio/_form_training_client_async.py b/sdk/formrecognizer/azure-ai-formrecognizer/azure/ai/formrecognizer/aio/_form_training_client_async.py index 1fff8b00f42c..dee6a28d66ba 100644 --- a/sdk/formrecognizer/azure-ai-formrecognizer/azure/ai/formrecognizer/aio/_form_training_client_async.py +++ b/sdk/formrecognizer/azure-ai-formrecognizer/azure/ai/formrecognizer/aio/_form_training_client_async.py @@ -37,6 +37,7 @@ CustomFormModel ) from .._user_agent import USER_AGENT +from .._api_versions import validate_api_version from .._polling import TrainingPolling, CopyPolling if TYPE_CHECKING: from azure.core.pipeline import PipelineResponse @@ -57,6 +58,9 @@ class FormTrainingClient(object): credential from :mod:`azure.identity`. :type credential: :class:`~azure.core.credentials.AzureKeyCredential` or :class:`~azure.core.credentials_async.AsyncTokenCredential` + :keyword str api_version: + The API version of the service to use for requests. It defaults to the latest service version. + Setting to an older version may result in reduced feature compatibility. .. admonition:: Example: @@ -85,6 +89,8 @@ def __init__( self._credential = credential authentication_policy = get_authentication_policy(credential) polling_interval = kwargs.pop("polling_interval", POLLING_INTERVAL) + api_version = kwargs.pop('api_version', None) + validate_api_version(api_version) self._client = FormRecognizer( endpoint=self._endpoint, credential=self._credential, # type: ignore diff --git a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_content.test_blank_page.yaml b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_content.test_blank_page.yaml index 55bdd43274c0..aea0dff657f1 100644 --- a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_content.test_blank_page.yaml +++ b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_content.test_blank_page.yaml @@ -468,28 +468,27 @@ interactions: Content-Type: - application/pdf User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) method: POST - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/layout/analyze + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/layout/analyze response: body: string: '' headers: apim-request-id: - - e4e40d88-2988-43d5-927e-6ea4305ece87 + - cda67980-5c58-4b06-973a-70c6b1b60c73 content-length: - '0' date: - - Thu, 11 Jun 2020 15:40:39 GMT + - Fri, 10 Jul 2020 18:39:31 GMT operation-location: - - https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/layout/analyzeResults/e4e40d88-2988-43d5-927e-6ea4305ece87 + - https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/layout/analyzeResults/cda67980-5c58-4b06-973a-70c6b1b60c73 strict-transport-security: - max-age=31536000; includeSubDomains; preload x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '225' + - '65' status: code: 202 message: Accepted @@ -503,24 +502,23 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/layout/analyzeResults/e4e40d88-2988-43d5-927e-6ea4305ece87 + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/layout/analyzeResults/cda67980-5c58-4b06-973a-70c6b1b60c73 response: body: - string: '{"status": "succeeded", "createdDateTime": "2020-06-11T15:40:39Z", - "lastUpdatedDateTime": "2020-06-11T15:40:42Z", "analyzeResult": {"version": + string: '{"status": "succeeded", "createdDateTime": "2020-07-10T18:39:32Z", + "lastUpdatedDateTime": "2020-07-10T18:39:36Z", "analyzeResult": {"version": "2.0.0", "readResults": [{"page": 1, "language": "en", "angle": 0, "width": 8.4967, "height": 10.9967, "unit": "inch", "lines": []}], "pageResults": [{"page": 1, "tables": []}]}}' headers: apim-request-id: - - e0e4dcb1-f74c-4d69-b068-604140a9d902 + - 9d745884-2de1-439e-88d9-c1db933fdd37 content-type: - application/json; charset=utf-8 date: - - Thu, 11 Jun 2020 15:40:43 GMT + - Fri, 10 Jul 2020 18:39:37 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -528,7 +526,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '34' + - '31' status: code: 200 message: OK diff --git a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_content.test_content_authentication_bad_key.yaml b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_content.test_content_authentication_bad_key.yaml index be50a30e0222..f99211d6fbd1 100644 --- a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_content.test_content_authentication_bad_key.yaml +++ b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_content.test_content_authentication_bad_key.yaml @@ -13,21 +13,30 @@ interactions: Content-Type: - application/pdf User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) method: POST - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/layout/analyze + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/layout/analyze response: body: string: '{"error": {"code": "401", "message": "Access denied due to invalid subscription key or wrong API endpoint. Make sure to provide a valid key for an active subscription and use a correct regional API endpoint for your resource."}}' headers: + apim-request-id: + - 9ac66232-3878-4e31-b55a-c30fb5705bca content-length: - - '224' + - '225' + content-type: + - application/json date: - - Thu, 11 Jun 2020 15:40:38 GMT + - Fri, 10 Jul 2020 18:39:30 GMT + strict-transport-security: + - max-age=31536000; includeSubDomains; preload + www-authenticate: + - AzureApiManagementKey realm="https://centraluseuap.api.cognitive.microsoft.com/formrecognizer",name="Ocp-Apim-Subscription-Key",type="header" + x-content-type-options: + - nosniff status: code: 401 - message: PermissionDenied + message: Access Denied version: 1 diff --git a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_content.test_content_authentication_successful_key.yaml b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_content.test_content_authentication_successful_key.yaml index a9c3d1bade27..fbbfd035ce01 100644 --- a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_content.test_content_authentication_successful_key.yaml +++ b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_content.test_content_authentication_successful_key.yaml @@ -2599,28 +2599,27 @@ interactions: Content-Type: - application/pdf User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) method: POST - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/layout/analyze + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/layout/analyze response: body: string: '' headers: apim-request-id: - - d818509b-eeb3-4d59-b821-f4f0d524c9d2 + - 60884788-678f-46b5-b503-5f5639852af2 content-length: - '0' date: - - Thu, 11 Jun 2020 15:40:41 GMT + - Fri, 10 Jul 2020 18:39:31 GMT operation-location: - - https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/layout/analyzeResults/d818509b-eeb3-4d59-b821-f4f0d524c9d2 + - https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/layout/analyzeResults/60884788-678f-46b5-b503-5f5639852af2 strict-transport-security: - max-age=31536000; includeSubDomains; preload x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '85' + - '110' status: code: 202 message: Accepted @@ -2634,14 +2633,13 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/layout/analyzeResults/d818509b-eeb3-4d59-b821-f4f0d524c9d2 + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/layout/analyzeResults/60884788-678f-46b5-b503-5f5639852af2 response: body: - string: '{"status": "succeeded", "createdDateTime": "2020-06-11T15:40:42Z", - "lastUpdatedDateTime": "2020-06-11T15:40:47Z", "analyzeResult": {"version": + string: '{"status": "succeeded", "createdDateTime": "2020-07-10T18:39:32Z", + "lastUpdatedDateTime": "2020-07-10T18:39:36Z", "analyzeResult": {"version": "2.0.0", "readResults": [{"page": 1, "language": "en", "angle": 0, "width": 8.5, "height": 11, "unit": "inch", "lines": [{"boundingBox": [0.5384, 1.1583, 1.4466, 1.1583, 1.4466, 1.3534, 0.5384, 1.3534], "text": "Contoso", "words": @@ -2748,11 +2746,11 @@ interactions: 3.859], "elements": ["#/readResults/0/lines/17/words/0"]}]}]}]}}' headers: apim-request-id: - - 452b8a5e-0ac9-455e-8a76-1240f528705c + - 0aa3a7e7-0b9b-4db3-abdf-05d8ba2b02cf content-type: - application/json; charset=utf-8 date: - - Thu, 11 Jun 2020 15:40:46 GMT + - Fri, 10 Jul 2020 18:39:37 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -2760,7 +2758,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '41' + - '31' status: code: 200 message: OK diff --git a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_content.test_content_multipage.yaml b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_content.test_content_multipage.yaml index c18aa72a575f..e245a5ee3aa7 100644 --- a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_content.test_content_multipage.yaml +++ b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_content.test_content_multipage.yaml @@ -1925,28 +1925,27 @@ interactions: Content-Type: - application/pdf User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) method: POST - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/layout/analyze + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/layout/analyze response: body: string: '' headers: apim-request-id: - - 4e12d4b1-a734-4230-ad44-b7c9a1eb635a + - 17c989bc-f462-47f0-91a6-78a6769cc78e content-length: - '0' date: - - Thu, 11 Jun 2020 15:40:41 GMT + - Fri, 10 Jul 2020 18:39:38 GMT operation-location: - - https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/layout/analyzeResults/4e12d4b1-a734-4230-ad44-b7c9a1eb635a + - https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/layout/analyzeResults/17c989bc-f462-47f0-91a6-78a6769cc78e strict-transport-security: - max-age=31536000; includeSubDomains; preload x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '40' + - '68' status: code: 202 message: Accepted @@ -1960,50 +1959,13 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/layout/analyzeResults/4e12d4b1-a734-4230-ad44-b7c9a1eb635a + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/layout/analyzeResults/17c989bc-f462-47f0-91a6-78a6769cc78e response: body: - string: '{"status": "running", "createdDateTime": "2020-06-11T15:40:42Z", "lastUpdatedDateTime": - "2020-06-11T15:40:46Z"}' - headers: - apim-request-id: - - 1a019960-8192-4e1a-af36-79910a1fd035 - content-type: - - application/json; charset=utf-8 - date: - - Thu, 11 Jun 2020 15:40:46 GMT - strict-transport-security: - - max-age=31536000; includeSubDomains; preload - transfer-encoding: - - chunked - x-content-type-options: - - nosniff - x-envoy-upstream-service-time: - - '12' - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) - method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/layout/analyzeResults/4e12d4b1-a734-4230-ad44-b7c9a1eb635a - response: - body: - string: '{"status": "succeeded", "createdDateTime": "2020-06-11T15:40:42Z", - "lastUpdatedDateTime": "2020-06-11T15:40:47Z", "analyzeResult": {"version": + string: '{"status": "succeeded", "createdDateTime": "2020-07-10T18:39:38Z", + "lastUpdatedDateTime": "2020-07-10T18:39:42Z", "analyzeResult": {"version": "2.0.0", "readResults": [{"page": 1, "language": "en", "angle": 0, "width": 8.5, "height": 11, "unit": "inch", "lines": [{"boundingBox": [0.8861, 1.1217, 2.3783, 1.1217, 2.3783, 1.2812, 0.8861, 1.2812], "text": "Company A Invoice", @@ -2385,11 +2347,11 @@ interactions: 4.4181, 7.4997, 4.4181, 7.4997, 4.6281, 5.3353, 4.6281], "elements": ["#/readResults/2/lines/33/words/0"]}]}]}]}}' headers: apim-request-id: - - ec1b97ad-0da1-422d-9fb3-91be8478de69 + - f8a8aea3-c50d-48de-b1b7-5839ae870e00 content-type: - application/json; charset=utf-8 date: - - Thu, 11 Jun 2020 15:40:52 GMT + - Fri, 10 Jul 2020 18:39:43 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -2397,7 +2359,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '102' + - '54' status: code: 200 message: OK diff --git a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_content.test_content_multipage_table_span_pdf.yaml b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_content.test_content_multipage_table_span_pdf.yaml index 642c835ff049..e4e4072ad943 100644 --- a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_content.test_content_multipage_table_span_pdf.yaml +++ b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_content.test_content_multipage_table_span_pdf.yaml @@ -11424,28 +11424,27 @@ interactions: Content-Type: - application/pdf User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) method: POST - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/layout/analyze + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/layout/analyze response: body: string: '' headers: apim-request-id: - - 12c756f5-c020-4490-bf08-37db0bd55fbc + - d1e89e1b-f412-454e-82b1-6672f2a5ca85 content-length: - '0' date: - - Thu, 11 Jun 2020 15:40:40 GMT + - Fri, 10 Jul 2020 18:39:39 GMT operation-location: - - https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/layout/analyzeResults/12c756f5-c020-4490-bf08-37db0bd55fbc + - https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/layout/analyzeResults/d1e89e1b-f412-454e-82b1-6672f2a5ca85 strict-transport-security: - max-age=31536000; includeSubDomains; preload x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '121' + - '187' status: code: 202 message: Accepted @@ -11459,14 +11458,13 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/layout/analyzeResults/12c756f5-c020-4490-bf08-37db0bd55fbc + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/layout/analyzeResults/d1e89e1b-f412-454e-82b1-6672f2a5ca85 response: body: - string: '{"status": "succeeded", "createdDateTime": "2020-06-11T15:40:41Z", - "lastUpdatedDateTime": "2020-06-11T15:40:46Z", "analyzeResult": {"version": + string: '{"status": "succeeded", "createdDateTime": "2020-07-10T18:39:40Z", + "lastUpdatedDateTime": "2020-07-10T18:39:45Z", "analyzeResult": {"version": "2.0.0", "readResults": [{"page": 1, "language": "en", "angle": 0, "width": 8.5, "height": 11, "unit": "inch", "lines": [{"boundingBox": [1.0119, 1.6855, 3.9147, 1.6855, 3.9147, 1.8775, 1.0119, 1.8775], "text": "Quarterly Sales @@ -12731,11 +12729,11 @@ interactions: 5.0925, 7.8425, 5.0925, 7.8425, 5.285, 7.0817, 5.285], "elements": ["#/readResults/1/lines/79/words/0"]}]}]}]}}' headers: apim-request-id: - - aaade7e6-7e4a-486d-91c2-d885dfc8cb63 + - 926a8a10-c94c-4283-95ef-43186ed27431 content-type: - application/json; charset=utf-8 date: - - Thu, 11 Jun 2020 15:40:46 GMT + - Fri, 10 Jul 2020 18:39:45 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -12743,7 +12741,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '130' + - '46' status: code: 200 message: OK diff --git a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_content.test_content_multipage_table_span_transform.yaml b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_content.test_content_multipage_table_span_transform.yaml index fc16afe8d2b5..c654098de3a5 100644 --- a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_content.test_content_multipage_table_span_transform.yaml +++ b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_content.test_content_multipage_table_span_transform.yaml @@ -11420,28 +11420,27 @@ interactions: Content-Type: - application/pdf User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) method: POST - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/layout/analyze + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/layout/analyze response: body: string: '' headers: apim-request-id: - - a97b1931-cea2-40f8-add1-8223f0de6513 + - 68c69373-2152-40ce-a68c-b0cbe4724a21 content-length: - '0' date: - - Thu, 11 Jun 2020 15:40:40 GMT + - Fri, 10 Jul 2020 18:39:40 GMT operation-location: - - https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/layout/analyzeResults/a97b1931-cea2-40f8-add1-8223f0de6513 + - https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/layout/analyzeResults/68c69373-2152-40ce-a68c-b0cbe4724a21 strict-transport-security: - max-age=31536000; includeSubDomains; preload x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '157' + - '174' status: code: 202 message: Accepted @@ -11455,21 +11454,20 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/layout/analyzeResults/a97b1931-cea2-40f8-add1-8223f0de6513 + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/layout/analyzeResults/68c69373-2152-40ce-a68c-b0cbe4724a21 response: body: - string: '{"status": "running", "createdDateTime": "2020-06-11T15:40:41Z", "lastUpdatedDateTime": - "2020-06-11T15:40:45Z"}' + string: '{"status": "running", "createdDateTime": "2020-07-10T18:39:40Z", "lastUpdatedDateTime": + "2020-07-10T18:39:45Z"}' headers: apim-request-id: - - aead9096-bf96-4a39-be0e-37baea2ac988 + - 1ead3072-e2ce-4ec4-9e5f-44d7674de2d3 content-type: - application/json; charset=utf-8 date: - - Thu, 11 Jun 2020 15:40:46 GMT + - Fri, 10 Jul 2020 18:39:45 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -11477,7 +11475,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '28' + - '25' status: code: 200 message: OK @@ -11491,14 +11489,13 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/layout/analyzeResults/a97b1931-cea2-40f8-add1-8223f0de6513 + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/layout/analyzeResults/68c69373-2152-40ce-a68c-b0cbe4724a21 response: body: - string: '{"status": "succeeded", "createdDateTime": "2020-06-11T15:40:41Z", - "lastUpdatedDateTime": "2020-06-11T15:40:48Z", "analyzeResult": {"version": + string: '{"status": "succeeded", "createdDateTime": "2020-07-10T18:39:40Z", + "lastUpdatedDateTime": "2020-07-10T18:39:46Z", "analyzeResult": {"version": "2.0.0", "readResults": [{"page": 1, "language": "en", "angle": 0, "width": 8.5, "height": 11, "unit": "inch", "lines": [{"boundingBox": [1.0119, 1.6855, 3.9147, 1.6855, 3.9147, 1.8775, 1.0119, 1.8775], "text": "Quarterly Sales @@ -12763,11 +12760,11 @@ interactions: 5.0925, 7.8425, 5.0925, 7.8425, 5.285, 7.0817, 5.285], "elements": ["#/readResults/1/lines/79/words/0"]}]}]}]}}' headers: apim-request-id: - - 049ebb90-07da-4b62-8124-8135befba616 + - 80a0f3ca-76d4-4f03-af74-60fefb1f74aa content-type: - application/json; charset=utf-8 date: - - Thu, 11 Jun 2020 15:40:51 GMT + - Fri, 10 Jul 2020 18:39:50 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -12775,7 +12772,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '123' + - '58' status: code: 200 message: OK diff --git a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_content.test_content_multipage_transform.yaml b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_content.test_content_multipage_transform.yaml index f0ab573c00d7..c142567acdd4 100644 --- a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_content.test_content_multipage_transform.yaml +++ b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_content.test_content_multipage_transform.yaml @@ -1925,28 +1925,27 @@ interactions: Content-Type: - application/pdf User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) method: POST - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/layout/analyze + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/layout/analyze response: body: string: '' headers: apim-request-id: - - 438ee868-d961-4ed7-8567-adbc61c90a40 + - 2a0f0b26-cf06-46ce-9c23-beb3feac7acd content-length: - '0' date: - - Thu, 11 Jun 2020 15:40:40 GMT + - Fri, 10 Jul 2020 18:39:44 GMT operation-location: - - https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/layout/analyzeResults/438ee868-d961-4ed7-8567-adbc61c90a40 + - https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/layout/analyzeResults/2a0f0b26-cf06-46ce-9c23-beb3feac7acd strict-transport-security: - max-age=31536000; includeSubDomains; preload x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '65' + - '63' status: code: 202 message: Accepted @@ -1960,50 +1959,13 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/layout/analyzeResults/438ee868-d961-4ed7-8567-adbc61c90a40 + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/layout/analyzeResults/2a0f0b26-cf06-46ce-9c23-beb3feac7acd response: body: - string: '{"status": "running", "createdDateTime": "2020-06-11T15:40:41Z", "lastUpdatedDateTime": - "2020-06-11T15:40:46Z"}' - headers: - apim-request-id: - - 25d310ec-c90e-43db-b4d6-4eb1e647d373 - content-type: - - application/json; charset=utf-8 - date: - - Thu, 11 Jun 2020 15:40:46 GMT - strict-transport-security: - - max-age=31536000; includeSubDomains; preload - transfer-encoding: - - chunked - x-content-type-options: - - nosniff - x-envoy-upstream-service-time: - - '39' - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) - method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/layout/analyzeResults/438ee868-d961-4ed7-8567-adbc61c90a40 - response: - body: - string: '{"status": "succeeded", "createdDateTime": "2020-06-11T15:40:41Z", - "lastUpdatedDateTime": "2020-06-11T15:40:46Z", "analyzeResult": {"version": + string: '{"status": "succeeded", "createdDateTime": "2020-07-10T18:39:44Z", + "lastUpdatedDateTime": "2020-07-10T18:39:48Z", "analyzeResult": {"version": "2.0.0", "readResults": [{"page": 1, "language": "en", "angle": 0, "width": 8.5, "height": 11, "unit": "inch", "lines": [{"boundingBox": [0.8861, 1.1217, 2.3783, 1.1217, 2.3783, 1.2812, 0.8861, 1.2812], "text": "Company A Invoice", @@ -2385,11 +2347,11 @@ interactions: 4.4181, 7.4997, 4.4181, 7.4997, 4.6281, 5.3353, 4.6281], "elements": ["#/readResults/2/lines/33/words/0"]}]}]}]}}' headers: apim-request-id: - - 36c9226c-99df-4578-ab54-4474e046f8dc + - 6335de0f-9df5-4c6c-9ad2-35043faa9fda content-type: - application/json; charset=utf-8 date: - - Thu, 11 Jun 2020 15:40:51 GMT + - Fri, 10 Jul 2020 18:39:49 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -2397,7 +2359,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '125' + - '52' status: code: 200 message: OK diff --git a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_content.test_content_stream_jpg.yaml b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_content.test_content_stream_jpg.yaml index 56ec052fd086..2563bc8597ee 100644 --- a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_content.test_content_stream_jpg.yaml +++ b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_content.test_content_stream_jpg.yaml @@ -8426,28 +8426,27 @@ interactions: Content-Type: - image/jpeg User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) method: POST - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/layout/analyze + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/layout/analyze response: body: string: '' headers: apim-request-id: - - 53ca53e0-dc53-4230-bfc6-90d1ff89e34e + - f55d5749-d35a-4f37-a867-962111adfbea content-length: - '0' date: - - Thu, 11 Jun 2020 15:40:41 GMT + - Fri, 10 Jul 2020 18:39:48 GMT operation-location: - - https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/layout/analyzeResults/53ca53e0-dc53-4230-bfc6-90d1ff89e34e + - https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/layout/analyzeResults/f55d5749-d35a-4f37-a867-962111adfbea strict-transport-security: - max-age=31536000; includeSubDomains; preload x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '164' + - '226' status: code: 202 message: Accepted @@ -8461,50 +8460,13 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/layout/analyzeResults/53ca53e0-dc53-4230-bfc6-90d1ff89e34e + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/layout/analyzeResults/f55d5749-d35a-4f37-a867-962111adfbea response: body: - string: '{"status": "running", "createdDateTime": "2020-06-11T15:40:42Z", "lastUpdatedDateTime": - "2020-06-11T15:40:44Z"}' - headers: - apim-request-id: - - 0b8b7f81-7a5b-4423-8477-094bf220c3f4 - content-type: - - application/json; charset=utf-8 - date: - - Thu, 11 Jun 2020 15:40:47 GMT - strict-transport-security: - - max-age=31536000; includeSubDomains; preload - transfer-encoding: - - chunked - x-content-type-options: - - nosniff - x-envoy-upstream-service-time: - - '29' - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) - method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/layout/analyzeResults/53ca53e0-dc53-4230-bfc6-90d1ff89e34e - response: - body: - string: '{"status": "succeeded", "createdDateTime": "2020-06-11T15:40:42Z", - "lastUpdatedDateTime": "2020-06-11T15:40:49Z", "analyzeResult": {"version": + string: '{"status": "succeeded", "createdDateTime": "2020-07-10T18:39:48Z", + "lastUpdatedDateTime": "2020-07-10T18:39:50Z", "analyzeResult": {"version": "2.0.0", "readResults": [{"page": 1, "language": "en", "angle": 0, "width": 1700, "height": 2200, "unit": "pixel", "lines": [{"boundingBox": [137, 140, 351, 140, 351, 167, 137, 166], "text": "Purchase Order", "words": [{"boundingBox": @@ -8810,11 +8772,11 @@ interactions: 1216, 1544, 1216, 1544, 1260, 1309, 1260], "elements": ["#/readResults/0/lines/40/words/0"]}]}]}]}}' headers: apim-request-id: - - 637cb300-0879-42b0-b251-06c0b6db192f + - d4da7606-6da3-42d1-8a42-f05c7a1b314d content-type: - application/json; charset=utf-8 date: - - Thu, 11 Jun 2020 15:40:52 GMT + - Fri, 10 Jul 2020 18:39:56 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -8822,7 +8784,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '64' + - '36' status: code: 200 message: OK diff --git a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_content.test_content_stream_pdf.yaml b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_content.test_content_stream_pdf.yaml index 2c5c4ed35a05..e9c91a7330a1 100644 --- a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_content.test_content_stream_pdf.yaml +++ b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_content.test_content_stream_pdf.yaml @@ -2599,28 +2599,27 @@ interactions: Content-Type: - application/pdf User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) method: POST - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/layout/analyze + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/layout/analyze response: body: string: '' headers: apim-request-id: - - 778ab67b-51d9-4183-9d0c-05a1e1069c36 + - 462110e8-866a-48bb-ac5b-b3b908238575 content-length: - '0' date: - - Thu, 11 Jun 2020 15:40:40 GMT + - Fri, 10 Jul 2020 18:39:50 GMT operation-location: - - https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/layout/analyzeResults/778ab67b-51d9-4183-9d0c-05a1e1069c36 + - https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/layout/analyzeResults/462110e8-866a-48bb-ac5b-b3b908238575 strict-transport-security: - max-age=31536000; includeSubDomains; preload x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '125' + - '135' status: code: 202 message: Accepted @@ -2634,14 +2633,13 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/layout/analyzeResults/778ab67b-51d9-4183-9d0c-05a1e1069c36 + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/layout/analyzeResults/462110e8-866a-48bb-ac5b-b3b908238575 response: body: - string: '{"status": "succeeded", "createdDateTime": "2020-06-11T15:40:40Z", - "lastUpdatedDateTime": "2020-06-11T15:40:45Z", "analyzeResult": {"version": + string: '{"status": "succeeded", "createdDateTime": "2020-07-10T18:39:50Z", + "lastUpdatedDateTime": "2020-07-10T18:39:55Z", "analyzeResult": {"version": "2.0.0", "readResults": [{"page": 1, "language": "en", "angle": 0, "width": 8.5, "height": 11, "unit": "inch", "lines": [{"boundingBox": [0.5384, 1.1583, 1.4466, 1.1583, 1.4466, 1.3534, 0.5384, 1.3534], "text": "Contoso", "words": @@ -2748,11 +2746,11 @@ interactions: 3.859], "elements": ["#/readResults/0/lines/17/words/0"]}]}]}]}}' headers: apim-request-id: - - 53cae194-4cbd-46b2-a7c0-10c4b7f07cfd + - d5fbdcc4-8aac-4cbd-bd0a-0d728f5460f9 content-type: - application/json; charset=utf-8 date: - - Thu, 11 Jun 2020 15:40:45 GMT + - Fri, 10 Jul 2020 18:39:55 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -2760,7 +2758,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '31' + - '29' status: code: 200 message: OK diff --git a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_content.test_content_stream_transform_jpg.yaml b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_content.test_content_stream_transform_jpg.yaml index 658638b0d638..f32b2b1e2b06 100644 --- a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_content.test_content_stream_transform_jpg.yaml +++ b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_content.test_content_stream_transform_jpg.yaml @@ -8422,28 +8422,27 @@ interactions: Content-Type: - image/jpeg User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) method: POST - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/layout/analyze + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/layout/analyze response: body: string: '' headers: apim-request-id: - - ebe95cc0-dd3d-4c32-a287-22b08c3ff3f4 + - 583df4fc-8a06-47c5-96d6-ef500d2e4234 content-length: - '0' date: - - Thu, 11 Jun 2020 15:40:49 GMT + - Fri, 10 Jul 2020 18:39:57 GMT operation-location: - - https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/layout/analyzeResults/ebe95cc0-dd3d-4c32-a287-22b08c3ff3f4 + - https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/layout/analyzeResults/583df4fc-8a06-47c5-96d6-ef500d2e4234 strict-transport-security: - max-age=31536000; includeSubDomains; preload x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '161' + - '207' status: code: 202 message: Accepted @@ -8457,14 +8456,13 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/layout/analyzeResults/ebe95cc0-dd3d-4c32-a287-22b08c3ff3f4 + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/layout/analyzeResults/583df4fc-8a06-47c5-96d6-ef500d2e4234 response: body: - string: '{"status": "succeeded", "createdDateTime": "2020-06-11T15:40:49Z", - "lastUpdatedDateTime": "2020-06-11T15:40:52Z", "analyzeResult": {"version": + string: '{"status": "succeeded", "createdDateTime": "2020-07-10T18:39:57Z", + "lastUpdatedDateTime": "2020-07-10T18:40:00Z", "analyzeResult": {"version": "2.0.0", "readResults": [{"page": 1, "language": "en", "angle": 0, "width": 1700, "height": 2200, "unit": "pixel", "lines": [{"boundingBox": [137, 140, 351, 140, 351, 167, 137, 166], "text": "Purchase Order", "words": [{"boundingBox": @@ -8770,11 +8768,11 @@ interactions: 1216, 1544, 1216, 1544, 1260, 1309, 1260], "elements": ["#/readResults/0/lines/40/words/0"]}]}]}]}}' headers: apim-request-id: - - c25b0135-99eb-46c8-b7fc-e10db1cddf8a + - 32d8d7b1-ffc5-43ec-a275-b9313e871b5e content-type: - application/json; charset=utf-8 date: - - Thu, 11 Jun 2020 15:40:53 GMT + - Fri, 10 Jul 2020 18:40:02 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -8782,7 +8780,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '55' + - '25' status: code: 200 message: OK diff --git a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_content.test_content_stream_transform_pdf.yaml b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_content.test_content_stream_transform_pdf.yaml index 5a34e5cc9729..30e08fcd0682 100644 --- a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_content.test_content_stream_transform_pdf.yaml +++ b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_content.test_content_stream_transform_pdf.yaml @@ -2599,28 +2599,27 @@ interactions: Content-Type: - application/pdf User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) method: POST - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/layout/analyze + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/layout/analyze response: body: string: '' headers: apim-request-id: - - 1dd84349-21fd-4529-be60-ecf35d6aeeeb + - 7e939460-05d5-43c1-a72a-52d276ccaf5c content-length: - '0' date: - - Thu, 11 Jun 2020 15:40:39 GMT + - Fri, 10 Jul 2020 18:40:11 GMT operation-location: - - https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/layout/analyzeResults/1dd84349-21fd-4529-be60-ecf35d6aeeeb + - https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/layout/analyzeResults/7e939460-05d5-43c1-a72a-52d276ccaf5c strict-transport-security: - max-age=31536000; includeSubDomains; preload x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '135' + - '20146' status: code: 202 message: Accepted @@ -2634,14 +2633,13 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/layout/analyzeResults/1dd84349-21fd-4529-be60-ecf35d6aeeeb + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/layout/analyzeResults/7e939460-05d5-43c1-a72a-52d276ccaf5c response: body: - string: '{"status": "succeeded", "createdDateTime": "2020-06-11T15:40:39Z", - "lastUpdatedDateTime": "2020-06-11T15:40:43Z", "analyzeResult": {"version": + string: '{"status": "succeeded", "createdDateTime": "2020-07-10T18:40:12Z", + "lastUpdatedDateTime": "2020-07-10T18:40:16Z", "analyzeResult": {"version": "2.0.0", "readResults": [{"page": 1, "language": "en", "angle": 0, "width": 8.5, "height": 11, "unit": "inch", "lines": [{"boundingBox": [0.5384, 1.1583, 1.4466, 1.1583, 1.4466, 1.3534, 0.5384, 1.3534], "text": "Contoso", "words": @@ -2748,11 +2746,11 @@ interactions: 3.859], "elements": ["#/readResults/0/lines/17/words/0"]}]}]}]}}' headers: apim-request-id: - - fd1aa51e-382e-40eb-8912-087c740516c4 + - 55aa1864-3f91-4e39-914f-df027237fc42 content-type: - application/json; charset=utf-8 date: - - Thu, 11 Jun 2020 15:40:45 GMT + - Fri, 10 Jul 2020 18:40:17 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -2760,7 +2758,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '100' + - '21' status: code: 200 message: OK diff --git a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_content.test_damaged_file_passed_as_bytes.yaml b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_content.test_damaged_file_passed_as_bytes.yaml index b4c808160f1f..fd46619e51e7 100644 --- a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_content.test_damaged_file_passed_as_bytes.yaml +++ b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_content.test_damaged_file_passed_as_bytes.yaml @@ -13,21 +13,20 @@ interactions: Content-Type: - application/pdf User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) method: POST - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/layout/analyze + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/layout/analyze response: body: - string: '{"error": {"code": "BadArgument", "message": "Bad or unrecognizable - request JSON or binary file."}}' + string: '{"error": {"code": "InvalidImage", "message": "The input data is not + a valid image or password protected."}}' headers: apim-request-id: - - 8a5721d2-4e72-477e-b4fa-9af5b046ce89 + - 9edd8d19-97ad-4ac6-9c9c-2a170b3edd01 content-type: - application/json; charset=utf-8 date: - - Thu, 11 Jun 2020 15:40:46 GMT + - Fri, 10 Jul 2020 18:40:17 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -35,7 +34,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '6' + - '4' status: code: 400 message: Bad Request diff --git a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_content.test_damaged_file_passed_as_bytes_io.yaml b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_content.test_damaged_file_passed_as_bytes_io.yaml index c4b83584e366..d8718b481511 100644 --- a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_content.test_damaged_file_passed_as_bytes_io.yaml +++ b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_content.test_damaged_file_passed_as_bytes_io.yaml @@ -18,21 +18,20 @@ interactions: Content-Type: - application/pdf User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) method: POST - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/layout/analyze + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/layout/analyze response: body: - string: '{"error": {"code": "BadArgument", "message": "Bad or unrecognizable - request JSON or binary file."}}' + string: '{"error": {"code": "InvalidImage", "message": "The input data is not + a valid image or password protected."}}' headers: apim-request-id: - - a7db6a43-2906-4262-902a-34d20aa9eebf + - b98a55a9-1c44-4f3d-8bbb-37e5671f833f content-type: - application/json; charset=utf-8 date: - - Thu, 11 Jun 2020 15:40:52 GMT + - Fri, 10 Jul 2020 18:39:56 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -40,7 +39,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '5' + - '3' status: code: 400 message: Bad Request diff --git a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_content.test_passing_enum_content_type.yaml b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_content.test_passing_enum_content_type.yaml index 720d4ce01876..28041cdf97b5 100644 --- a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_content.test_passing_enum_content_type.yaml +++ b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_content.test_passing_enum_content_type.yaml @@ -2599,28 +2599,27 @@ interactions: Content-Type: - application/pdf User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) method: POST - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/layout/analyze + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/layout/analyze response: body: string: '' headers: apim-request-id: - - c8411129-a628-492c-9dca-9460b62be906 + - 8deabd4a-f9eb-4490-8ec8-35b10aed48e2 content-length: - '0' date: - - Thu, 11 Jun 2020 15:40:55 GMT + - Fri, 10 Jul 2020 18:40:18 GMT operation-location: - - https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/layout/analyzeResults/c8411129-a628-492c-9dca-9460b62be906 + - https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/layout/analyzeResults/8deabd4a-f9eb-4490-8ec8-35b10aed48e2 strict-transport-security: - max-age=31536000; includeSubDomains; preload x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '60' + - '75' status: code: 202 message: Accepted @@ -2634,14 +2633,13 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/layout/analyzeResults/c8411129-a628-492c-9dca-9460b62be906 + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/layout/analyzeResults/8deabd4a-f9eb-4490-8ec8-35b10aed48e2 response: body: - string: '{"status": "succeeded", "createdDateTime": "2020-06-11T15:40:55Z", - "lastUpdatedDateTime": "2020-06-11T15:40:59Z", "analyzeResult": {"version": + string: '{"status": "succeeded", "createdDateTime": "2020-07-10T18:40:18Z", + "lastUpdatedDateTime": "2020-07-10T18:40:21Z", "analyzeResult": {"version": "2.0.0", "readResults": [{"page": 1, "language": "en", "angle": 0, "width": 8.5, "height": 11, "unit": "inch", "lines": [{"boundingBox": [0.5384, 1.1583, 1.4466, 1.1583, 1.4466, 1.3534, 0.5384, 1.3534], "text": "Contoso", "words": @@ -2748,11 +2746,11 @@ interactions: 3.859], "elements": ["#/readResults/0/lines/17/words/0"]}]}]}]}}' headers: apim-request-id: - - 144103f7-19e0-405b-9efc-3a1731013d9a + - 4b1de50c-8c28-4032-9a3c-0e9fb186ea26 content-type: - application/json; charset=utf-8 date: - - Thu, 11 Jun 2020 15:40:59 GMT + - Fri, 10 Jul 2020 18:40:23 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -2760,7 +2758,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '35' + - '22' status: code: 200 message: OK diff --git a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_content_async.test_blank_page.yaml b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_content_async.test_blank_page.yaml index 4390ac0fe807..bdce05cc781c 100644 --- a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_content_async.test_blank_page.yaml +++ b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_content_async.test_blank_page.yaml @@ -456,50 +456,48 @@ interactions: Content-Type: - application/pdf User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) method: POST - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/layout/analyze + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/layout/analyze response: body: string: '' headers: - apim-request-id: a1331d30-fed7-4c92-a876-1dae22371436 + apim-request-id: 7ce371c2-b941-4451-9c48-0294e2d028df content-length: '0' - date: Thu, 11 Jun 2020 15:40:46 GMT - operation-location: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/layout/analyzeResults/a1331d30-fed7-4c92-a876-1dae22371436 + date: Fri, 10 Jul 2020 18:40:03 GMT + operation-location: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/layout/analyzeResults/7ce371c2-b941-4451-9c48-0294e2d028df strict-transport-security: max-age=31536000; includeSubDomains; preload x-content-type-options: nosniff - x-envoy-upstream-service-time: '44' + x-envoy-upstream-service-time: '82' status: code: 202 message: Accepted - url: https://centraluseuap.api.cognitive.microsoft.com//formrecognizer/v2.0-preview/layout/analyze + url: https://centraluseuap.api.cognitive.microsoft.com//formrecognizer/v2.0/layout/analyze - request: body: null headers: User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/layout/analyzeResults/a1331d30-fed7-4c92-a876-1dae22371436 + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/layout/analyzeResults/7ce371c2-b941-4451-9c48-0294e2d028df response: body: - string: '{"status": "succeeded", "createdDateTime": "2020-06-11T15:40:46Z", - "lastUpdatedDateTime": "2020-06-11T15:40:49Z", "analyzeResult": {"version": + string: '{"status": "succeeded", "createdDateTime": "2020-07-10T18:40:03Z", + "lastUpdatedDateTime": "2020-07-10T18:40:07Z", "analyzeResult": {"version": "2.0.0", "readResults": [{"page": 1, "language": "en", "angle": 0, "width": 8.4967, "height": 10.9967, "unit": "inch", "lines": []}], "pageResults": [{"page": 1, "tables": []}]}}' headers: - apim-request-id: 06197b02-8103-480f-9ce8-4dd619f3da75 + apim-request-id: 356b029e-6e0f-467d-89e4-4087f6567df2 content-type: application/json; charset=utf-8 - date: Thu, 11 Jun 2020 15:40:51 GMT + date: Fri, 10 Jul 2020 18:40:08 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '107' + x-envoy-upstream-service-time: '30' status: code: 200 message: OK - url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/layout/analyzeResults/a1331d30-fed7-4c92-a876-1dae22371436 + url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/layout/analyzeResults/7ce371c2-b941-4451-9c48-0294e2d028df version: 1 diff --git a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_content_async.test_content_authentication_bad_key.yaml b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_content_async.test_content_authentication_bad_key.yaml index 6a8d5df3cf34..3df8414bff96 100644 --- a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_content_async.test_content_authentication_bad_key.yaml +++ b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_content_async.test_content_authentication_bad_key.yaml @@ -5,20 +5,24 @@ interactions: Content-Type: - application/pdf User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) method: POST - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/layout/analyze + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/layout/analyze response: body: string: '{"error": {"code": "401", "message": "Access denied due to invalid subscription key or wrong API endpoint. Make sure to provide a valid key for an active subscription and use a correct regional API endpoint for your resource."}}' headers: - content-length: '224' - date: Thu, 11 Jun 2020 15:40:54 GMT + apim-request-id: dc0c59bc-bdc9-4da7-9281-227d3d862274 + content-length: '225' + content-type: application/json + date: Fri, 10 Jul 2020 18:40:24 GMT + strict-transport-security: max-age=31536000; includeSubDomains; preload + www-authenticate: AzureApiManagementKey realm="https://centraluseuap.api.cognitive.microsoft.com/formrecognizer",name="Ocp-Apim-Subscription-Key",type="header" + x-content-type-options: nosniff status: code: 401 - message: PermissionDenied - url: https://centraluseuap.api.cognitive.microsoft.com//formrecognizer/v2.0-preview/layout/analyze + message: Access Denied + url: https://centraluseuap.api.cognitive.microsoft.com//formrecognizer/v2.0/layout/analyze version: 1 diff --git a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_content_async.test_content_authentication_successful_key.yaml b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_content_async.test_content_authentication_successful_key.yaml index 541a71958f9a..dd28d161ee11 100644 --- a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_content_async.test_content_authentication_successful_key.yaml +++ b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_content_async.test_content_authentication_successful_key.yaml @@ -2591,37 +2591,35 @@ interactions: Content-Type: - application/pdf User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) method: POST - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/layout/analyze + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/layout/analyze response: body: string: '' headers: - apim-request-id: eab1dac9-3628-41a6-85d4-55b24913467b + apim-request-id: b070572c-3828-4cb9-bd8e-2cc804eb0e56 content-length: '0' - date: Thu, 11 Jun 2020 15:40:45 GMT - operation-location: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/layout/analyzeResults/eab1dac9-3628-41a6-85d4-55b24913467b + date: Fri, 10 Jul 2020 18:39:57 GMT + operation-location: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/layout/analyzeResults/b070572c-3828-4cb9-bd8e-2cc804eb0e56 strict-transport-security: max-age=31536000; includeSubDomains; preload x-content-type-options: nosniff - x-envoy-upstream-service-time: '54' + x-envoy-upstream-service-time: '116' status: code: 202 message: Accepted - url: https://centraluseuap.api.cognitive.microsoft.com//formrecognizer/v2.0-preview/layout/analyze + url: https://centraluseuap.api.cognitive.microsoft.com//formrecognizer/v2.0/layout/analyze - request: body: null headers: User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/layout/analyzeResults/eab1dac9-3628-41a6-85d4-55b24913467b + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/layout/analyzeResults/b070572c-3828-4cb9-bd8e-2cc804eb0e56 response: body: - string: '{"status": "succeeded", "createdDateTime": "2020-06-11T15:40:46Z", - "lastUpdatedDateTime": "2020-06-11T15:40:50Z", "analyzeResult": {"version": + string: '{"status": "succeeded", "createdDateTime": "2020-07-10T18:39:57Z", + "lastUpdatedDateTime": "2020-07-10T18:40:01Z", "analyzeResult": {"version": "2.0.0", "readResults": [{"page": 1, "language": "en", "angle": 0, "width": 8.5, "height": 11, "unit": "inch", "lines": [{"boundingBox": [0.5384, 1.1583, 1.4466, 1.1583, 1.4466, 1.3534, 0.5384, 1.3534], "text": "Contoso", "words": @@ -2727,15 +2725,15 @@ interactions: "PT", "boundingBox": [6.1051, 3.3219, 7.5038, 3.3219, 7.5038, 3.859, 6.1051, 3.859], "elements": ["#/readResults/0/lines/17/words/0"]}]}]}]}}' headers: - apim-request-id: fc79e411-3109-4902-b572-0f2437ac0527 + apim-request-id: 2bc786f9-b2a5-4047-934e-4eefc91a986f content-type: application/json; charset=utf-8 - date: Thu, 11 Jun 2020 15:40:51 GMT + date: Fri, 10 Jul 2020 18:40:02 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '53' + x-envoy-upstream-service-time: '32' status: code: 200 message: OK - url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/layout/analyzeResults/eab1dac9-3628-41a6-85d4-55b24913467b + url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/layout/analyzeResults/b070572c-3828-4cb9-bd8e-2cc804eb0e56 version: 1 diff --git a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_content_async.test_content_multipage.yaml b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_content_async.test_content_multipage.yaml index 22336efee4a6..d72fc22319ca 100644 --- a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_content_async.test_content_multipage.yaml +++ b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_content_async.test_content_multipage.yaml @@ -1917,61 +1917,35 @@ interactions: Content-Type: - application/pdf User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) method: POST - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/layout/analyze + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/layout/analyze response: body: string: '' headers: - apim-request-id: 407c2f57-51f9-4886-ac78-56a8f491f7ae + apim-request-id: daf0e58d-f8e3-4948-8014-64640a07efcf content-length: '0' - date: Thu, 11 Jun 2020 15:40:47 GMT - operation-location: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/layout/analyzeResults/407c2f57-51f9-4886-ac78-56a8f491f7ae + date: Fri, 10 Jul 2020 18:40:03 GMT + operation-location: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/layout/analyzeResults/daf0e58d-f8e3-4948-8014-64640a07efcf strict-transport-security: max-age=31536000; includeSubDomains; preload x-content-type-options: nosniff - x-envoy-upstream-service-time: '34' + x-envoy-upstream-service-time: '68' status: code: 202 message: Accepted - url: https://centraluseuap.api.cognitive.microsoft.com//formrecognizer/v2.0-preview/layout/analyze + url: https://centraluseuap.api.cognitive.microsoft.com//formrecognizer/v2.0/layout/analyze - request: body: null headers: User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/layout/analyzeResults/407c2f57-51f9-4886-ac78-56a8f491f7ae + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/layout/analyzeResults/daf0e58d-f8e3-4948-8014-64640a07efcf response: body: - string: '{"status": "running", "createdDateTime": "2020-06-11T15:40:48Z", "lastUpdatedDateTime": - "2020-06-11T15:40:53Z"}' - headers: - apim-request-id: f097d37f-b95b-4f83-a3bb-da5ebbce5200 - content-type: application/json; charset=utf-8 - date: Thu, 11 Jun 2020 15:40:53 GMT - strict-transport-security: max-age=31536000; includeSubDomains; preload - transfer-encoding: chunked - x-content-type-options: nosniff - x-envoy-upstream-service-time: '10' - status: - code: 200 - message: OK - url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/layout/analyzeResults/407c2f57-51f9-4886-ac78-56a8f491f7ae -- request: - body: null - headers: - User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) - method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/layout/analyzeResults/407c2f57-51f9-4886-ac78-56a8f491f7ae - response: - body: - string: '{"status": "succeeded", "createdDateTime": "2020-06-11T15:40:48Z", - "lastUpdatedDateTime": "2020-06-11T15:40:54Z", "analyzeResult": {"version": + string: '{"status": "succeeded", "createdDateTime": "2020-07-10T18:40:03Z", + "lastUpdatedDateTime": "2020-07-10T18:40:07Z", "analyzeResult": {"version": "2.0.0", "readResults": [{"page": 1, "language": "en", "angle": 0, "width": 8.5, "height": 11, "unit": "inch", "lines": [{"boundingBox": [0.8861, 1.1217, 2.3783, 1.1217, 2.3783, 1.2812, 0.8861, 1.2812], "text": "Company A Invoice", @@ -2352,15 +2326,15 @@ interactions: {"rowIndex": 7, "columnIndex": 2, "text": "220.00", "boundingBox": [5.3353, 4.4181, 7.4997, 4.4181, 7.4997, 4.6281, 5.3353, 4.6281], "elements": ["#/readResults/2/lines/33/words/0"]}]}]}]}}' headers: - apim-request-id: 5c964db6-9b46-4fbc-ae69-e8d60cb1c448 + apim-request-id: d85b806e-9286-4653-b061-ec2193c75f10 content-type: application/json; charset=utf-8 - date: Thu, 11 Jun 2020 15:40:58 GMT + date: Fri, 10 Jul 2020 18:40:08 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '81' + x-envoy-upstream-service-time: '37' status: code: 200 message: OK - url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/layout/analyzeResults/407c2f57-51f9-4886-ac78-56a8f491f7ae + url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/layout/analyzeResults/daf0e58d-f8e3-4948-8014-64640a07efcf version: 1 diff --git a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_content_async.test_content_multipage_table_span_pdf.yaml b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_content_async.test_content_multipage_table_span_pdf.yaml index b0810da4771c..9b258478e6db 100644 --- a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_content_async.test_content_multipage_table_span_pdf.yaml +++ b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_content_async.test_content_multipage_table_span_pdf.yaml @@ -11412,37 +11412,35 @@ interactions: Content-Type: - application/pdf User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) method: POST - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/layout/analyze + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/layout/analyze response: body: string: '' headers: - apim-request-id: 0205a9f1-d1c6-4937-a7f8-1755189dea38 + apim-request-id: 27a674d7-74aa-4301-a677-982ddf341914 content-length: '0' - date: Thu, 11 Jun 2020 15:40:56 GMT - operation-location: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/layout/analyzeResults/0205a9f1-d1c6-4937-a7f8-1755189dea38 + date: Fri, 10 Jul 2020 18:40:10 GMT + operation-location: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/layout/analyzeResults/27a674d7-74aa-4301-a677-982ddf341914 strict-transport-security: max-age=31536000; includeSubDomains; preload x-content-type-options: nosniff - x-envoy-upstream-service-time: '292' + x-envoy-upstream-service-time: '150' status: code: 202 message: Accepted - url: https://centraluseuap.api.cognitive.microsoft.com//formrecognizer/v2.0-preview/layout/analyze + url: https://centraluseuap.api.cognitive.microsoft.com//formrecognizer/v2.0/layout/analyze - request: body: null headers: User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/layout/analyzeResults/0205a9f1-d1c6-4937-a7f8-1755189dea38 + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/layout/analyzeResults/27a674d7-74aa-4301-a677-982ddf341914 response: body: - string: '{"status": "succeeded", "createdDateTime": "2020-06-11T15:40:56Z", - "lastUpdatedDateTime": "2020-06-11T15:41:01Z", "analyzeResult": {"version": + string: '{"status": "succeeded", "createdDateTime": "2020-07-10T18:40:10Z", + "lastUpdatedDateTime": "2020-07-10T18:40:15Z", "analyzeResult": {"version": "2.0.0", "readResults": [{"page": 1, "language": "en", "angle": 0, "width": 8.5, "height": 11, "unit": "inch", "lines": [{"boundingBox": [1.0119, 1.6855, 3.9147, 1.6855, 3.9147, 1.8775, 1.0119, 1.8775], "text": "Quarterly Sales @@ -12706,15 +12704,15 @@ interactions: {"rowIndex": 23, "columnIndex": 4, "text": "17.49%", "boundingBox": [7.0817, 5.0925, 7.8425, 5.0925, 7.8425, 5.285, 7.0817, 5.285], "elements": ["#/readResults/1/lines/79/words/0"]}]}]}]}}' headers: - apim-request-id: 52b3caae-467f-49fe-91ab-121a921abc6e + apim-request-id: 538442d4-e63c-43ea-bdbd-07687106d97f content-type: application/json; charset=utf-8 - date: Thu, 11 Jun 2020 15:41:01 GMT + date: Fri, 10 Jul 2020 18:40:15 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '68' + x-envoy-upstream-service-time: '52' status: code: 200 message: OK - url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/layout/analyzeResults/0205a9f1-d1c6-4937-a7f8-1755189dea38 + url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/layout/analyzeResults/27a674d7-74aa-4301-a677-982ddf341914 version: 1 diff --git a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_content_async.test_content_multipage_table_span_transform.yaml b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_content_async.test_content_multipage_table_span_transform.yaml index b4041cbb1f17..1d762919ce09 100644 --- a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_content_async.test_content_multipage_table_span_transform.yaml +++ b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_content_async.test_content_multipage_table_span_transform.yaml @@ -11412,61 +11412,35 @@ interactions: Content-Type: - application/pdf User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) method: POST - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/layout/analyze + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/layout/analyze response: body: string: '' headers: - apim-request-id: bd026dc0-2ee1-4231-ad45-47f4e462c5da + apim-request-id: 7c4728b3-6eef-47fb-97ed-15d9b59800ba content-length: '0' - date: Thu, 11 Jun 2020 15:40:53 GMT - operation-location: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/layout/analyzeResults/bd026dc0-2ee1-4231-ad45-47f4e462c5da + date: Fri, 10 Jul 2020 18:40:37 GMT + operation-location: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/layout/analyzeResults/7c4728b3-6eef-47fb-97ed-15d9b59800ba strict-transport-security: max-age=31536000; includeSubDomains; preload x-content-type-options: nosniff - x-envoy-upstream-service-time: '172' + x-envoy-upstream-service-time: '215' status: code: 202 message: Accepted - url: https://centraluseuap.api.cognitive.microsoft.com//formrecognizer/v2.0-preview/layout/analyze + url: https://centraluseuap.api.cognitive.microsoft.com//formrecognizer/v2.0/layout/analyze - request: body: null headers: User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/layout/analyzeResults/bd026dc0-2ee1-4231-ad45-47f4e462c5da + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/layout/analyzeResults/7c4728b3-6eef-47fb-97ed-15d9b59800ba response: body: - string: '{"status": "running", "createdDateTime": "2020-06-11T15:40:54Z", "lastUpdatedDateTime": - "2020-06-11T15:40:58Z"}' - headers: - apim-request-id: 2e94b15f-07b4-47f6-aa07-d5e845893e9b - content-type: application/json; charset=utf-8 - date: Thu, 11 Jun 2020 15:40:59 GMT - strict-transport-security: max-age=31536000; includeSubDomains; preload - transfer-encoding: chunked - x-content-type-options: nosniff - x-envoy-upstream-service-time: '7' - status: - code: 200 - message: OK - url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/layout/analyzeResults/bd026dc0-2ee1-4231-ad45-47f4e462c5da -- request: - body: null - headers: - User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) - method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/layout/analyzeResults/bd026dc0-2ee1-4231-ad45-47f4e462c5da - response: - body: - string: '{"status": "succeeded", "createdDateTime": "2020-06-11T15:40:54Z", - "lastUpdatedDateTime": "2020-06-11T15:41:00Z", "analyzeResult": {"version": + string: '{"status": "succeeded", "createdDateTime": "2020-07-10T18:40:38Z", + "lastUpdatedDateTime": "2020-07-10T18:40:42Z", "analyzeResult": {"version": "2.0.0", "readResults": [{"page": 1, "language": "en", "angle": 0, "width": 8.5, "height": 11, "unit": "inch", "lines": [{"boundingBox": [1.0119, 1.6855, 3.9147, 1.6855, 3.9147, 1.8775, 1.0119, 1.8775], "text": "Quarterly Sales @@ -12730,15 +12704,15 @@ interactions: {"rowIndex": 23, "columnIndex": 4, "text": "17.49%", "boundingBox": [7.0817, 5.0925, 7.8425, 5.0925, 7.8425, 5.285, 7.0817, 5.285], "elements": ["#/readResults/1/lines/79/words/0"]}]}]}]}}' headers: - apim-request-id: 20a58538-b3ae-4f3b-bc94-98b96e9326bd + apim-request-id: 9abd6856-19f7-4aeb-8b64-9c7d6f5cf412 content-type: application/json; charset=utf-8 - date: Thu, 11 Jun 2020 15:41:04 GMT + date: Fri, 10 Jul 2020 18:40:43 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '85' + x-envoy-upstream-service-time: '38' status: code: 200 message: OK - url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/layout/analyzeResults/bd026dc0-2ee1-4231-ad45-47f4e462c5da + url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/layout/analyzeResults/7c4728b3-6eef-47fb-97ed-15d9b59800ba version: 1 diff --git a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_content_async.test_content_multipage_transform.yaml b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_content_async.test_content_multipage_transform.yaml index ff40338291ca..9cbe6726be53 100644 --- a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_content_async.test_content_multipage_transform.yaml +++ b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_content_async.test_content_multipage_transform.yaml @@ -1917,37 +1917,35 @@ interactions: Content-Type: - application/pdf User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) method: POST - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/layout/analyze + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/layout/analyze response: body: string: '' headers: - apim-request-id: 101651c2-3c1c-4fad-9e65-8bdb48a3f18c + apim-request-id: 21467694-a04c-4348-9c6f-057df033f2f0 content-length: '0' - date: Thu, 11 Jun 2020 15:41:00 GMT - operation-location: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/layout/analyzeResults/101651c2-3c1c-4fad-9e65-8bdb48a3f18c + date: Fri, 10 Jul 2020 18:40:08 GMT + operation-location: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/layout/analyzeResults/21467694-a04c-4348-9c6f-057df033f2f0 strict-transport-security: max-age=31536000; includeSubDomains; preload x-content-type-options: nosniff - x-envoy-upstream-service-time: '31' + x-envoy-upstream-service-time: '109' status: code: 202 message: Accepted - url: https://centraluseuap.api.cognitive.microsoft.com//formrecognizer/v2.0-preview/layout/analyze + url: https://centraluseuap.api.cognitive.microsoft.com//formrecognizer/v2.0/layout/analyze - request: body: null headers: User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/layout/analyzeResults/101651c2-3c1c-4fad-9e65-8bdb48a3f18c + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/layout/analyzeResults/21467694-a04c-4348-9c6f-057df033f2f0 response: body: - string: '{"status": "succeeded", "createdDateTime": "2020-06-11T15:41:01Z", - "lastUpdatedDateTime": "2020-06-11T15:41:05Z", "analyzeResult": {"version": + string: '{"status": "succeeded", "createdDateTime": "2020-07-10T18:40:09Z", + "lastUpdatedDateTime": "2020-07-10T18:40:13Z", "analyzeResult": {"version": "2.0.0", "readResults": [{"page": 1, "language": "en", "angle": 0, "width": 8.5, "height": 11, "unit": "inch", "lines": [{"boundingBox": [0.8861, 1.1217, 2.3783, 1.1217, 2.3783, 1.2812, 0.8861, 1.2812], "text": "Company A Invoice", @@ -2328,15 +2326,15 @@ interactions: {"rowIndex": 7, "columnIndex": 2, "text": "220.00", "boundingBox": [5.3353, 4.4181, 7.4997, 4.4181, 7.4997, 4.6281, 5.3353, 4.6281], "elements": ["#/readResults/2/lines/33/words/0"]}]}]}]}}' headers: - apim-request-id: e09a25a6-636c-40e4-ba13-0d48b1558269 + apim-request-id: b986b96e-2856-4039-9bdc-f3c6a9c9e180 content-type: application/json; charset=utf-8 - date: Thu, 11 Jun 2020 15:41:06 GMT + date: Fri, 10 Jul 2020 18:40:14 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '144' + x-envoy-upstream-service-time: '46' status: code: 200 message: OK - url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/layout/analyzeResults/101651c2-3c1c-4fad-9e65-8bdb48a3f18c + url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/layout/analyzeResults/21467694-a04c-4348-9c6f-057df033f2f0 version: 1 diff --git a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_content_async.test_content_stream_jpg.yaml b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_content_async.test_content_stream_jpg.yaml index f6c3a6903870..829ae13c161e 100644 --- a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_content_async.test_content_stream_jpg.yaml +++ b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_content_async.test_content_stream_jpg.yaml @@ -8414,37 +8414,35 @@ interactions: Content-Type: - image/jpeg User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) method: POST - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/layout/analyze + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/layout/analyze response: body: string: '' headers: - apim-request-id: 09f8b2c5-d552-4212-b303-831f52055d06 + apim-request-id: 4b8c70ba-0dd9-4829-a838-e253355c9902 content-length: '0' - date: Thu, 11 Jun 2020 15:40:46 GMT - operation-location: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/layout/analyzeResults/09f8b2c5-d552-4212-b303-831f52055d06 + date: Fri, 10 Jul 2020 18:40:18 GMT + operation-location: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/layout/analyzeResults/4b8c70ba-0dd9-4829-a838-e253355c9902 strict-transport-security: max-age=31536000; includeSubDomains; preload x-content-type-options: nosniff - x-envoy-upstream-service-time: '160' + x-envoy-upstream-service-time: '175' status: code: 202 message: Accepted - url: https://centraluseuap.api.cognitive.microsoft.com//formrecognizer/v2.0-preview/layout/analyze + url: https://centraluseuap.api.cognitive.microsoft.com//formrecognizer/v2.0/layout/analyze - request: body: null headers: User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/layout/analyzeResults/09f8b2c5-d552-4212-b303-831f52055d06 + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/layout/analyzeResults/4b8c70ba-0dd9-4829-a838-e253355c9902 response: body: - string: '{"status": "succeeded", "createdDateTime": "2020-06-11T15:40:46Z", - "lastUpdatedDateTime": "2020-06-11T15:40:48Z", "analyzeResult": {"version": + string: '{"status": "succeeded", "createdDateTime": "2020-07-10T18:40:18Z", + "lastUpdatedDateTime": "2020-07-10T18:40:20Z", "analyzeResult": {"version": "2.0.0", "readResults": [{"page": 1, "language": "en", "angle": 0, "width": 1700, "height": 2200, "unit": "pixel", "lines": [{"boundingBox": [137, 140, 351, 140, 351, 167, 137, 166], "text": "Purchase Order", "words": [{"boundingBox": @@ -8749,15 +8747,15 @@ interactions: {"rowIndex": 4, "columnIndex": 3, "text": "100.00", "boundingBox": [1309, 1216, 1544, 1216, 1544, 1260, 1309, 1260], "elements": ["#/readResults/0/lines/40/words/0"]}]}]}]}}' headers: - apim-request-id: 7f7ac15c-5c34-48ca-aab9-0013c9540a1e + apim-request-id: 36b0f5ed-a103-4d1b-9eba-8eb5ebc3d758 content-type: application/json; charset=utf-8 - date: Thu, 11 Jun 2020 15:40:51 GMT + date: Fri, 10 Jul 2020 18:40:23 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '82' + x-envoy-upstream-service-time: '26' status: code: 200 message: OK - url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/layout/analyzeResults/09f8b2c5-d552-4212-b303-831f52055d06 + url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/layout/analyzeResults/4b8c70ba-0dd9-4829-a838-e253355c9902 version: 1 diff --git a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_content_async.test_content_stream_pdf.yaml b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_content_async.test_content_stream_pdf.yaml index 5d73d83941bb..f0124c1b14b0 100644 --- a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_content_async.test_content_stream_pdf.yaml +++ b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_content_async.test_content_stream_pdf.yaml @@ -2591,37 +2591,35 @@ interactions: Content-Type: - application/pdf User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) method: POST - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/layout/analyze + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/layout/analyze response: body: string: '' headers: - apim-request-id: 52d1106a-faa7-49f3-9f95-ca745297e2f0 + apim-request-id: 01b6fe76-6aa2-4fd0-9e1e-598237951aa0 content-length: '0' - date: Thu, 11 Jun 2020 15:40:54 GMT - operation-location: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/layout/analyzeResults/52d1106a-faa7-49f3-9f95-ca745297e2f0 + date: Fri, 10 Jul 2020 18:40:15 GMT + operation-location: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/layout/analyzeResults/01b6fe76-6aa2-4fd0-9e1e-598237951aa0 strict-transport-security: max-age=31536000; includeSubDomains; preload x-content-type-options: nosniff - x-envoy-upstream-service-time: '52' + x-envoy-upstream-service-time: '97' status: code: 202 message: Accepted - url: https://centraluseuap.api.cognitive.microsoft.com//formrecognizer/v2.0-preview/layout/analyze + url: https://centraluseuap.api.cognitive.microsoft.com//formrecognizer/v2.0/layout/analyze - request: body: null headers: User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/layout/analyzeResults/52d1106a-faa7-49f3-9f95-ca745297e2f0 + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/layout/analyzeResults/01b6fe76-6aa2-4fd0-9e1e-598237951aa0 response: body: - string: '{"status": "succeeded", "createdDateTime": "2020-06-11T15:40:55Z", - "lastUpdatedDateTime": "2020-06-11T15:40:59Z", "analyzeResult": {"version": + string: '{"status": "succeeded", "createdDateTime": "2020-07-10T18:40:16Z", + "lastUpdatedDateTime": "2020-07-10T18:40:19Z", "analyzeResult": {"version": "2.0.0", "readResults": [{"page": 1, "language": "en", "angle": 0, "width": 8.5, "height": 11, "unit": "inch", "lines": [{"boundingBox": [0.5384, 1.1583, 1.4466, 1.1583, 1.4466, 1.3534, 0.5384, 1.3534], "text": "Contoso", "words": @@ -2727,15 +2725,15 @@ interactions: "PT", "boundingBox": [6.1051, 3.3219, 7.5038, 3.3219, 7.5038, 3.859, 6.1051, 3.859], "elements": ["#/readResults/0/lines/17/words/0"]}]}]}]}}' headers: - apim-request-id: a93c879a-370a-436e-a59f-70e606240542 + apim-request-id: bc822ea0-327f-4b37-9942-feea75c4832e content-type: application/json; charset=utf-8 - date: Thu, 11 Jun 2020 15:41:00 GMT + date: Fri, 10 Jul 2020 18:40:20 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '30' + x-envoy-upstream-service-time: '32' status: code: 200 message: OK - url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/layout/analyzeResults/52d1106a-faa7-49f3-9f95-ca745297e2f0 + url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/layout/analyzeResults/01b6fe76-6aa2-4fd0-9e1e-598237951aa0 version: 1 diff --git a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_content_async.test_content_stream_transform_jpg.yaml b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_content_async.test_content_stream_transform_jpg.yaml index f6241cd7bbe6..392b054f5a32 100644 --- a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_content_async.test_content_stream_transform_jpg.yaml +++ b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_content_async.test_content_stream_transform_jpg.yaml @@ -8414,37 +8414,35 @@ interactions: Content-Type: - image/jpeg User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) method: POST - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/layout/analyze + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/layout/analyze response: body: string: '' headers: - apim-request-id: 8e4e00eb-ae0b-479c-8b5c-f2e8a8793da0 + apim-request-id: 287f5b5b-195f-44bf-a60f-6748603f97ed content-length: '0' - date: Thu, 11 Jun 2020 15:40:53 GMT - operation-location: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/layout/analyzeResults/8e4e00eb-ae0b-479c-8b5c-f2e8a8793da0 + date: Fri, 10 Jul 2020 18:40:24 GMT + operation-location: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/layout/analyzeResults/287f5b5b-195f-44bf-a60f-6748603f97ed strict-transport-security: max-age=31536000; includeSubDomains; preload x-content-type-options: nosniff - x-envoy-upstream-service-time: '139' + x-envoy-upstream-service-time: '173' status: code: 202 message: Accepted - url: https://centraluseuap.api.cognitive.microsoft.com//formrecognizer/v2.0-preview/layout/analyze + url: https://centraluseuap.api.cognitive.microsoft.com//formrecognizer/v2.0/layout/analyze - request: body: null headers: User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/layout/analyzeResults/8e4e00eb-ae0b-479c-8b5c-f2e8a8793da0 + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/layout/analyzeResults/287f5b5b-195f-44bf-a60f-6748603f97ed response: body: - string: '{"status": "succeeded", "createdDateTime": "2020-06-11T15:40:53Z", - "lastUpdatedDateTime": "2020-06-11T15:40:56Z", "analyzeResult": {"version": + string: '{"status": "succeeded", "createdDateTime": "2020-07-10T18:40:24Z", + "lastUpdatedDateTime": "2020-07-10T18:40:26Z", "analyzeResult": {"version": "2.0.0", "readResults": [{"page": 1, "language": "en", "angle": 0, "width": 1700, "height": 2200, "unit": "pixel", "lines": [{"boundingBox": [137, 140, 351, 140, 351, 167, 137, 166], "text": "Purchase Order", "words": [{"boundingBox": @@ -8749,15 +8747,15 @@ interactions: {"rowIndex": 4, "columnIndex": 3, "text": "100.00", "boundingBox": [1309, 1216, 1544, 1216, 1544, 1260, 1309, 1260], "elements": ["#/readResults/0/lines/40/words/0"]}]}]}]}}' headers: - apim-request-id: 8a25ac7d-ec20-4cb3-b517-d0366e132d40 + apim-request-id: 2659632a-424a-4c6a-9455-1abf8f12ec1c content-type: application/json; charset=utf-8 - date: Thu, 11 Jun 2020 15:40:58 GMT + date: Fri, 10 Jul 2020 18:40:29 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '177' + x-envoy-upstream-service-time: '22' status: code: 200 message: OK - url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/layout/analyzeResults/8e4e00eb-ae0b-479c-8b5c-f2e8a8793da0 + url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/layout/analyzeResults/287f5b5b-195f-44bf-a60f-6748603f97ed version: 1 diff --git a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_content_async.test_content_stream_transform_pdf.yaml b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_content_async.test_content_stream_transform_pdf.yaml index 599d7b13ae3c..f6a57f649eb7 100644 --- a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_content_async.test_content_stream_transform_pdf.yaml +++ b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_content_async.test_content_stream_transform_pdf.yaml @@ -2591,61 +2591,35 @@ interactions: Content-Type: - application/pdf User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) method: POST - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/layout/analyze + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/layout/analyze response: body: string: '' headers: - apim-request-id: 418b14a6-e8f8-4830-ac10-47cac9f0069d + apim-request-id: 2b7f9c1a-ba0b-4ab4-b0f9-82ff281337d8 content-length: '0' - date: Thu, 11 Jun 2020 15:40:49 GMT - operation-location: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/layout/analyzeResults/418b14a6-e8f8-4830-ac10-47cac9f0069d + date: Fri, 10 Jul 2020 18:40:44 GMT + operation-location: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/layout/analyzeResults/2b7f9c1a-ba0b-4ab4-b0f9-82ff281337d8 strict-transport-security: max-age=31536000; includeSubDomains; preload x-content-type-options: nosniff - x-envoy-upstream-service-time: '58' + x-envoy-upstream-service-time: '74' status: code: 202 message: Accepted - url: https://centraluseuap.api.cognitive.microsoft.com//formrecognizer/v2.0-preview/layout/analyze + url: https://centraluseuap.api.cognitive.microsoft.com//formrecognizer/v2.0/layout/analyze - request: body: null headers: User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/layout/analyzeResults/418b14a6-e8f8-4830-ac10-47cac9f0069d + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/layout/analyzeResults/2b7f9c1a-ba0b-4ab4-b0f9-82ff281337d8 response: body: - string: '{"status": "running", "createdDateTime": "2020-06-11T15:40:50Z", "lastUpdatedDateTime": - "2020-06-11T15:40:50Z"}' - headers: - apim-request-id: 56f618b2-1faf-40a7-80d6-30fdbb423c1f - content-type: application/json; charset=utf-8 - date: Thu, 11 Jun 2020 15:40:55 GMT - strict-transport-security: max-age=31536000; includeSubDomains; preload - transfer-encoding: chunked - x-content-type-options: nosniff - x-envoy-upstream-service-time: '8' - status: - code: 200 - message: OK - url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/layout/analyzeResults/418b14a6-e8f8-4830-ac10-47cac9f0069d -- request: - body: null - headers: - User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) - method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/layout/analyzeResults/418b14a6-e8f8-4830-ac10-47cac9f0069d - response: - body: - string: '{"status": "succeeded", "createdDateTime": "2020-06-11T15:40:50Z", - "lastUpdatedDateTime": "2020-06-11T15:40:56Z", "analyzeResult": {"version": + string: '{"status": "succeeded", "createdDateTime": "2020-07-10T18:40:44Z", + "lastUpdatedDateTime": "2020-07-10T18:40:48Z", "analyzeResult": {"version": "2.0.0", "readResults": [{"page": 1, "language": "en", "angle": 0, "width": 8.5, "height": 11, "unit": "inch", "lines": [{"boundingBox": [0.5384, 1.1583, 1.4466, 1.1583, 1.4466, 1.3534, 0.5384, 1.3534], "text": "Contoso", "words": @@ -2751,15 +2725,15 @@ interactions: "PT", "boundingBox": [6.1051, 3.3219, 7.5038, 3.3219, 7.5038, 3.859, 6.1051, 3.859], "elements": ["#/readResults/0/lines/17/words/0"]}]}]}]}}' headers: - apim-request-id: 98252dcc-8dfe-401b-a258-6efb0bb35303 + apim-request-id: e385fc78-5a21-476f-a4a0-71e9dd79cc22 content-type: application/json; charset=utf-8 - date: Thu, 11 Jun 2020 15:41:00 GMT + date: Fri, 10 Jul 2020 18:40:49 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '33' + x-envoy-upstream-service-time: '31' status: code: 200 message: OK - url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/layout/analyzeResults/418b14a6-e8f8-4830-ac10-47cac9f0069d + url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/layout/analyzeResults/2b7f9c1a-ba0b-4ab4-b0f9-82ff281337d8 version: 1 diff --git a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_content_async.test_damaged_file_passed_as_bytes.yaml b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_content_async.test_damaged_file_passed_as_bytes.yaml index 6fd46345de97..a04034893a51 100644 --- a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_content_async.test_damaged_file_passed_as_bytes.yaml +++ b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_content_async.test_damaged_file_passed_as_bytes.yaml @@ -5,24 +5,23 @@ interactions: Content-Type: - application/pdf User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) method: POST - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/layout/analyze + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/layout/analyze response: body: - string: '{"error": {"code": "BadArgument", "message": "Bad or unrecognizable - request JSON or binary file."}}' + string: '{"error": {"code": "InvalidImage", "message": "The input data is not + a valid image or password protected."}}' headers: - apim-request-id: ce89d0a2-f62f-49dc-8112-151718470664 + apim-request-id: 8de375a7-9a05-40ab-aad9-e14a8377adae content-type: application/json; charset=utf-8 - date: Thu, 11 Jun 2020 15:41:02 GMT + date: Fri, 10 Jul 2020 18:40:50 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '7' + x-envoy-upstream-service-time: '2' status: code: 400 message: Bad Request - url: https://centraluseuap.api.cognitive.microsoft.com//formrecognizer/v2.0-preview/layout/analyze + url: https://centraluseuap.api.cognitive.microsoft.com//formrecognizer/v2.0/layout/analyze version: 1 diff --git a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_content_async.test_damaged_file_passed_as_bytes_io.yaml b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_content_async.test_damaged_file_passed_as_bytes_io.yaml index d4682ed5de09..c905ee5ca592 100644 --- a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_content_async.test_damaged_file_passed_as_bytes_io.yaml +++ b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_content_async.test_damaged_file_passed_as_bytes_io.yaml @@ -10,24 +10,23 @@ interactions: Content-Type: - application/pdf User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) method: POST - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/layout/analyze + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/layout/analyze response: body: string: '{"error": {"code": "BadArgument", "message": "Bad or unrecognizable request JSON or binary file."}}' headers: - apim-request-id: 0814055b-2970-4d30-9acb-d4155cbc9df1 + apim-request-id: 48a784bc-6bf1-4f1c-bc0d-aa3770160cfc content-type: application/json; charset=utf-8 - date: Thu, 11 Jun 2020 15:41:04 GMT + date: Fri, 10 Jul 2020 18:40:21 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '17' + x-envoy-upstream-service-time: '3' status: code: 400 message: Bad Request - url: https://centraluseuap.api.cognitive.microsoft.com//formrecognizer/v2.0-preview/layout/analyze + url: https://centraluseuap.api.cognitive.microsoft.com//formrecognizer/v2.0/layout/analyze version: 1 diff --git a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_content_async.test_passing_enum_content_type.yaml b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_content_async.test_passing_enum_content_type.yaml index 0babc8fefe9c..67abd006e4ed 100644 --- a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_content_async.test_passing_enum_content_type.yaml +++ b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_content_async.test_passing_enum_content_type.yaml @@ -2591,37 +2591,56 @@ interactions: Content-Type: - application/pdf User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) method: POST - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/layout/analyze + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/layout/analyze response: body: string: '' headers: - apim-request-id: 511bd240-7ac9-4024-87bd-74484bd0f2b9 + apim-request-id: 9c1f0c57-ecfe-465d-aa83-106c9e983c93 content-length: '0' - date: Thu, 11 Jun 2020 15:40:52 GMT - operation-location: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/layout/analyzeResults/511bd240-7ac9-4024-87bd-74484bd0f2b9 + date: Fri, 10 Jul 2020 18:40:50 GMT + operation-location: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/layout/analyzeResults/9c1f0c57-ecfe-465d-aa83-106c9e983c93 strict-transport-security: max-age=31536000; includeSubDomains; preload x-content-type-options: nosniff - x-envoy-upstream-service-time: '76' + x-envoy-upstream-service-time: '96' status: code: 202 message: Accepted - url: https://centraluseuap.api.cognitive.microsoft.com//formrecognizer/v2.0-preview/layout/analyze + url: https://centraluseuap.api.cognitive.microsoft.com//formrecognizer/v2.0/layout/analyze - request: body: null headers: User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/layout/analyzeResults/511bd240-7ac9-4024-87bd-74484bd0f2b9 + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/layout/analyzeResults/9c1f0c57-ecfe-465d-aa83-106c9e983c93 response: body: - string: '{"status": "succeeded", "createdDateTime": "2020-06-11T15:40:52Z", - "lastUpdatedDateTime": "2020-06-11T15:40:56Z", "analyzeResult": {"version": + string: '{"error": {"code": "Timeout", "message": "The operation was timeout."}}' + headers: + apim-request-id: 649d9e86-d445-49d2-b3ee-8aaf35b4811d + content-length: '75' + content-type: application/json + date: Fri, 10 Jul 2020 18:42:55 GMT + strict-transport-security: max-age=31536000; includeSubDomains; preload + x-content-type-options: nosniff + status: + code: 408 + message: Timeout + url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/layout/analyzeResults/9c1f0c57-ecfe-465d-aa83-106c9e983c93 +- request: + body: null + headers: + User-Agent: + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + method: GET + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/layout/analyzeResults/9c1f0c57-ecfe-465d-aa83-106c9e983c93 + response: + body: + string: '{"status": "succeeded", "createdDateTime": "2020-07-10T18:40:51Z", + "lastUpdatedDateTime": "2020-07-10T18:40:55Z", "analyzeResult": {"version": "2.0.0", "readResults": [{"page": 1, "language": "en", "angle": 0, "width": 8.5, "height": 11, "unit": "inch", "lines": [{"boundingBox": [0.5384, 1.1583, 1.4466, 1.1583, 1.4466, 1.3534, 0.5384, 1.3534], "text": "Contoso", "words": @@ -2727,15 +2746,15 @@ interactions: "PT", "boundingBox": [6.1051, 3.3219, 7.5038, 3.3219, 7.5038, 3.859, 6.1051, 3.859], "elements": ["#/readResults/0/lines/17/words/0"]}]}]}]}}' headers: - apim-request-id: f8eed662-ab8d-49b7-b884-e495dfa84a60 + apim-request-id: ded47c39-50ca-48c1-b30f-5898ca1c1cc6 content-type: application/json; charset=utf-8 - date: Thu, 11 Jun 2020 15:40:57 GMT + date: Fri, 10 Jul 2020 18:42:55 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '55' + x-envoy-upstream-service-time: '22' status: code: 200 message: OK - url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/layout/analyzeResults/511bd240-7ac9-4024-87bd-74484bd0f2b9 + url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/layout/analyzeResults/9c1f0c57-ecfe-465d-aa83-106c9e983c93 version: 1 diff --git a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_content_from_url.test_content_bad_url.yaml b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_content_from_url.test_content_bad_url.yaml index e4af2572a31a..45ecf6c765cc 100644 --- a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_content_from_url.test_content_bad_url.yaml +++ b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_content_from_url.test_content_bad_url.yaml @@ -13,21 +13,20 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) method: POST - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/layout/analyze + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/layout/analyze response: body: string: '{"error": {"code": "FailedToDownloadImage", "message": "Failed to download image from input URL."}}' headers: apim-request-id: - - c0687869-da96-4ed8-9202-93ff84411ce4 + - 92c30354-3870-430b-86f2-26a705b6ebcc content-type: - application/json; charset=utf-8 date: - - Thu, 11 Jun 2020 15:40:51 GMT + - Fri, 10 Jul 2020 18:40:22 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -35,7 +34,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '262' + - '63' status: code: 400 message: Bad Request diff --git a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_content_from_url.test_content_encoded_url.yaml b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_content_from_url.test_content_encoded_url.yaml index fe1fbe51a0f6..fb3a893a2a37 100644 --- a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_content_from_url.test_content_encoded_url.yaml +++ b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_content_from_url.test_content_encoded_url.yaml @@ -13,21 +13,20 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) method: POST - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/layout/analyze + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/layout/analyze response: body: string: '{"error": {"code": "FailedToDownloadImage", "message": "Failed to download image from input URL."}}' headers: apim-request-id: - - 0801fae5-b315-4d33-9df7-c6fb8333d4db + - f91ae0da-a666-4762-973b-1bf42642edd2 content-type: - application/json; charset=utf-8 date: - - Mon, 15 Jun 2020 18:08:28 GMT + - Fri, 10 Jul 2020 18:42:57 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -35,7 +34,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '2496' + - '361' status: code: 400 message: Bad Request diff --git a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_content_from_url.test_content_multipage_table_span_pdf.yaml b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_content_from_url.test_content_multipage_table_span_pdf.yaml index 928ac0e3d8cc..920e99c573c9 100644 --- a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_content_from_url.test_content_multipage_table_span_pdf.yaml +++ b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_content_from_url.test_content_multipage_table_span_pdf.yaml @@ -13,28 +13,27 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) method: POST - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/layout/analyze + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/layout/analyze response: body: string: '' headers: apim-request-id: - - 5222b502-1b06-4bf8-8daa-2f98ed6169bb + - 7dfe6df0-44d4-41e8-98ce-33f7c16de1e6 content-length: - '0' date: - - Thu, 11 Jun 2020 15:40:59 GMT + - Fri, 10 Jul 2020 18:40:42 GMT operation-location: - - https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/layout/analyzeResults/5222b502-1b06-4bf8-8daa-2f98ed6169bb + - https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/layout/analyzeResults/7dfe6df0-44d4-41e8-98ce-33f7c16de1e6 strict-transport-security: - max-age=31536000; includeSubDomains; preload x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '274' + - '20216' status: code: 202 message: Accepted @@ -48,50 +47,13 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/layout/analyzeResults/5222b502-1b06-4bf8-8daa-2f98ed6169bb + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/layout/analyzeResults/7dfe6df0-44d4-41e8-98ce-33f7c16de1e6 response: body: - string: '{"status": "running", "createdDateTime": "2020-06-11T15:40:59Z", "lastUpdatedDateTime": - "2020-06-11T15:41:04Z"}' - headers: - apim-request-id: - - 2fca5b7b-ec0b-453c-9fe1-ed8f459f5476 - content-type: - - application/json; charset=utf-8 - date: - - Thu, 11 Jun 2020 15:41:04 GMT - strict-transport-security: - - max-age=31536000; includeSubDomains; preload - transfer-encoding: - - chunked - x-content-type-options: - - nosniff - x-envoy-upstream-service-time: - - '8' - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) - method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/layout/analyzeResults/5222b502-1b06-4bf8-8daa-2f98ed6169bb - response: - body: - string: '{"status": "succeeded", "createdDateTime": "2020-06-11T15:40:59Z", - "lastUpdatedDateTime": "2020-06-11T15:41:05Z", "analyzeResult": {"version": + string: '{"status": "succeeded", "createdDateTime": "2020-07-10T18:40:42Z", + "lastUpdatedDateTime": "2020-07-10T18:40:47Z", "analyzeResult": {"version": "2.0.0", "readResults": [{"page": 1, "language": "en", "angle": 0, "width": 8.5, "height": 11, "unit": "inch", "lines": [{"boundingBox": [1.0119, 1.6855, 3.9147, 1.6855, 3.9147, 1.8775, 1.0119, 1.8775], "text": "Quarterly Sales @@ -1356,11 +1318,11 @@ interactions: 5.0925, 7.8425, 5.0925, 7.8425, 5.285, 7.0817, 5.285], "elements": ["#/readResults/1/lines/79/words/0"]}]}]}]}}' headers: apim-request-id: - - ec3d6078-f322-46cf-b7c6-e3f08e32cfab + - 8537e37a-8a4c-4711-80b8-fc5b4bc2d2dd content-type: - application/json; charset=utf-8 date: - - Thu, 11 Jun 2020 15:41:10 GMT + - Fri, 10 Jul 2020 18:40:48 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -1368,7 +1330,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '66' + - '39' status: code: 200 message: OK diff --git a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_content_from_url.test_content_multipage_table_span_transform.yaml b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_content_from_url.test_content_multipage_table_span_transform.yaml index a78204be6565..c064c933c1e2 100644 --- a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_content_from_url.test_content_multipage_table_span_transform.yaml +++ b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_content_from_url.test_content_multipage_table_span_transform.yaml @@ -13,28 +13,27 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) method: POST - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/layout/analyze + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/layout/analyze response: body: string: '' headers: apim-request-id: - - ff729cd7-2bc7-4478-a4cb-4e36080e8fa9 + - 7313aef4-3e48-4d30-8ed6-edd9abfc00d9 content-length: - '0' date: - - Thu, 11 Jun 2020 15:41:00 GMT + - Fri, 10 Jul 2020 18:40:37 GMT operation-location: - - https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/layout/analyzeResults/ff729cd7-2bc7-4478-a4cb-4e36080e8fa9 + - https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/layout/analyzeResults/7313aef4-3e48-4d30-8ed6-edd9abfc00d9 strict-transport-security: - max-age=31536000; includeSubDomains; preload x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '163' + - '452' status: code: 202 message: Accepted @@ -48,21 +47,20 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/layout/analyzeResults/ff729cd7-2bc7-4478-a4cb-4e36080e8fa9 + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/layout/analyzeResults/7313aef4-3e48-4d30-8ed6-edd9abfc00d9 response: body: - string: '{"status": "running", "createdDateTime": "2020-06-11T15:41:01Z", "lastUpdatedDateTime": - "2020-06-11T15:41:05Z"}' + string: '{"status": "running", "createdDateTime": "2020-07-10T18:40:37Z", "lastUpdatedDateTime": + "2020-07-10T18:40:41Z"}' headers: apim-request-id: - - 33996728-4a58-43f4-96b2-8a839e07026c + - d515b926-63de-4cd3-bdc5-6d36146fe387 content-type: - application/json; charset=utf-8 date: - - Thu, 11 Jun 2020 15:41:05 GMT + - Fri, 10 Jul 2020 18:40:41 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -70,7 +68,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '7' + - '11' status: code: 200 message: OK @@ -84,14 +82,13 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/layout/analyzeResults/ff729cd7-2bc7-4478-a4cb-4e36080e8fa9 + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/layout/analyzeResults/7313aef4-3e48-4d30-8ed6-edd9abfc00d9 response: body: - string: '{"status": "succeeded", "createdDateTime": "2020-06-11T15:41:01Z", - "lastUpdatedDateTime": "2020-06-11T15:41:06Z", "analyzeResult": {"version": + string: '{"status": "succeeded", "createdDateTime": "2020-07-10T18:40:37Z", + "lastUpdatedDateTime": "2020-07-10T18:40:42Z", "analyzeResult": {"version": "2.0.0", "readResults": [{"page": 1, "language": "en", "angle": 0, "width": 8.5, "height": 11, "unit": "inch", "lines": [{"boundingBox": [1.0119, 1.6855, 3.9147, 1.6855, 3.9147, 1.8775, 1.0119, 1.8775], "text": "Quarterly Sales @@ -1356,11 +1353,11 @@ interactions: 5.0925, 7.8425, 5.0925, 7.8425, 5.285, 7.0817, 5.285], "elements": ["#/readResults/1/lines/79/words/0"]}]}]}]}}' headers: apim-request-id: - - 01ebcc02-c78b-4ce3-9c37-17c66fe599aa + - afbcd8b1-8657-4414-9750-9a8b45eb0329 content-type: - application/json; charset=utf-8 date: - - Thu, 11 Jun 2020 15:41:11 GMT + - Fri, 10 Jul 2020 18:40:46 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -1368,7 +1365,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '75' + - '56' status: code: 200 message: OK diff --git a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_content_from_url.test_content_multipage_transform_url.yaml b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_content_from_url.test_content_multipage_transform_url.yaml index f44148513a6c..946c60b6bb13 100644 --- a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_content_from_url.test_content_multipage_transform_url.yaml +++ b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_content_from_url.test_content_multipage_transform_url.yaml @@ -13,28 +13,27 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) method: POST - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/layout/analyze + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/layout/analyze response: body: string: '' headers: apim-request-id: - - 188b6d88-69dd-4d9a-a996-1b47835c3045 + - ae33bbfd-6665-4142-aeb7-462b1111b741 content-length: - '0' date: - - Thu, 11 Jun 2020 15:41:05 GMT + - Fri, 10 Jul 2020 18:42:57 GMT operation-location: - - https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/layout/analyzeResults/188b6d88-69dd-4d9a-a996-1b47835c3045 + - https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/layout/analyzeResults/ae33bbfd-6665-4142-aeb7-462b1111b741 strict-transport-security: - max-age=31536000; includeSubDomains; preload x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '51' + - '228' status: code: 202 message: Accepted @@ -48,14 +47,13 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/layout/analyzeResults/188b6d88-69dd-4d9a-a996-1b47835c3045 + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/layout/analyzeResults/ae33bbfd-6665-4142-aeb7-462b1111b741 response: body: - string: '{"status": "succeeded", "createdDateTime": "2020-06-11T15:41:05Z", - "lastUpdatedDateTime": "2020-06-11T15:41:10Z", "analyzeResult": {"version": + string: '{"status": "succeeded", "createdDateTime": "2020-07-10T18:42:57Z", + "lastUpdatedDateTime": "2020-07-10T18:43:01Z", "analyzeResult": {"version": "2.0.0", "readResults": [{"page": 1, "language": "en", "angle": 0, "width": 8.5, "height": 11, "unit": "inch", "lines": [{"boundingBox": [0.8861, 1.1217, 2.3783, 1.1217, 2.3783, 1.2812, 0.8861, 1.2812], "text": "Company A Invoice", @@ -437,11 +435,11 @@ interactions: 4.4181, 7.4997, 4.4181, 7.4997, 4.6281, 5.3353, 4.6281], "elements": ["#/readResults/2/lines/33/words/0"]}]}]}]}}' headers: apim-request-id: - - 6095e354-f62b-474e-a720-f671592d482a + - 6d6f7d98-f59d-4b5b-8809-28b2e78c84af content-type: - application/json; charset=utf-8 date: - - Thu, 11 Jun 2020 15:41:10 GMT + - Fri, 10 Jul 2020 18:43:02 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -449,7 +447,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '203' + - '43' status: code: 200 message: OK diff --git a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_content_from_url.test_content_multipage_url.yaml b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_content_from_url.test_content_multipage_url.yaml index 928db21df9d2..8ed8dadce356 100644 --- a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_content_from_url.test_content_multipage_url.yaml +++ b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_content_from_url.test_content_multipage_url.yaml @@ -13,28 +13,27 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) method: POST - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/layout/analyze + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/layout/analyze response: body: string: '' headers: apim-request-id: - - 62080a1d-60f6-4c52-ae12-fb4d1668a0a5 + - 4de9b47e-0cdf-4f92-ad2b-53a851af9b08 content-length: - '0' date: - - Thu, 11 Jun 2020 15:40:59 GMT + - Fri, 10 Jul 2020 18:40:48 GMT operation-location: - - https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/layout/analyzeResults/62080a1d-60f6-4c52-ae12-fb4d1668a0a5 + - https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/layout/analyzeResults/4de9b47e-0cdf-4f92-ad2b-53a851af9b08 strict-transport-security: - max-age=31536000; includeSubDomains; preload x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '388' + - '239' status: code: 202 message: Accepted @@ -48,14 +47,13 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/layout/analyzeResults/62080a1d-60f6-4c52-ae12-fb4d1668a0a5 + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/layout/analyzeResults/4de9b47e-0cdf-4f92-ad2b-53a851af9b08 response: body: - string: '{"status": "succeeded", "createdDateTime": "2020-06-11T15:40:59Z", - "lastUpdatedDateTime": "2020-06-11T15:41:04Z", "analyzeResult": {"version": + string: '{"status": "succeeded", "createdDateTime": "2020-07-10T18:40:49Z", + "lastUpdatedDateTime": "2020-07-10T18:40:52Z", "analyzeResult": {"version": "2.0.0", "readResults": [{"page": 1, "language": "en", "angle": 0, "width": 8.5, "height": 11, "unit": "inch", "lines": [{"boundingBox": [0.8861, 1.1217, 2.3783, 1.1217, 2.3783, 1.2812, 0.8861, 1.2812], "text": "Company A Invoice", @@ -437,11 +435,11 @@ interactions: 4.4181, 7.4997, 4.4181, 7.4997, 4.6281, 5.3353, 4.6281], "elements": ["#/readResults/2/lines/33/words/0"]}]}]}]}}' headers: apim-request-id: - - 46d1dea7-09e7-4ff4-996c-095d4d07f624 + - 18d625ed-0602-4030-b4f8-34bc9822ca54 content-type: - application/json; charset=utf-8 date: - - Thu, 11 Jun 2020 15:41:04 GMT + - Fri, 10 Jul 2020 18:40:54 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -449,7 +447,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '80' + - '54' status: code: 200 message: OK diff --git a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_content_from_url.test_content_url_auth_bad_key.yaml b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_content_from_url.test_content_url_auth_bad_key.yaml index 25681c8125cf..e2b514c97041 100644 --- a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_content_from_url.test_content_url_auth_bad_key.yaml +++ b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_content_from_url.test_content_url_auth_bad_key.yaml @@ -13,21 +13,30 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) method: POST - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/layout/analyze + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/layout/analyze response: body: string: '{"error": {"code": "401", "message": "Access denied due to invalid subscription key or wrong API endpoint. Make sure to provide a valid key for an active subscription and use a correct regional API endpoint for your resource."}}' headers: + apim-request-id: + - d28932fb-6aed-40d5-baba-370716eef7fa content-length: - - '224' + - '225' + content-type: + - application/json date: - - Thu, 11 Jun 2020 15:41:02 GMT + - Fri, 10 Jul 2020 18:40:48 GMT + strict-transport-security: + - max-age=31536000; includeSubDomains; preload + www-authenticate: + - AzureApiManagementKey realm="https://centraluseuap.api.cognitive.microsoft.com/formrecognizer",name="Ocp-Apim-Subscription-Key",type="header" + x-content-type-options: + - nosniff status: code: 401 - message: PermissionDenied + message: Access Denied version: 1 diff --git a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_content_from_url.test_content_url_auth_successful_key.yaml b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_content_from_url.test_content_url_auth_successful_key.yaml index d227e183c585..c2e4b1d126b5 100644 --- a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_content_from_url.test_content_url_auth_successful_key.yaml +++ b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_content_from_url.test_content_url_auth_successful_key.yaml @@ -13,28 +13,27 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) method: POST - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/layout/analyze + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/layout/analyze response: body: string: '' headers: apim-request-id: - - 405502e9-c952-41d7-af35-97a9b5d196bf + - 74db64b6-4abc-4994-ae9d-059ae6265b75 content-length: - '0' date: - - Thu, 11 Jun 2020 15:41:05 GMT + - Fri, 10 Jul 2020 18:43:02 GMT operation-location: - - https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/layout/analyzeResults/405502e9-c952-41d7-af35-97a9b5d196bf + - https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/layout/analyzeResults/74db64b6-4abc-4994-ae9d-059ae6265b75 strict-transport-security: - max-age=31536000; includeSubDomains; preload x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '270' + - '162' status: code: 202 message: Accepted @@ -48,14 +47,13 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/layout/analyzeResults/405502e9-c952-41d7-af35-97a9b5d196bf + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/layout/analyzeResults/74db64b6-4abc-4994-ae9d-059ae6265b75 response: body: - string: '{"status": "succeeded", "createdDateTime": "2020-06-11T15:41:05Z", - "lastUpdatedDateTime": "2020-06-11T15:41:09Z", "analyzeResult": {"version": + string: '{"status": "succeeded", "createdDateTime": "2020-07-10T18:43:03Z", + "lastUpdatedDateTime": "2020-07-10T18:43:08Z", "analyzeResult": {"version": "2.0.0", "readResults": [{"page": 1, "language": "en", "angle": 0, "width": 8.5, "height": 11, "unit": "inch", "lines": [{"boundingBox": [0.5384, 1.1583, 1.4466, 1.1583, 1.4466, 1.3534, 0.5384, 1.3534], "text": "Contoso", "words": @@ -162,11 +160,11 @@ interactions: 3.859], "elements": ["#/readResults/0/lines/17/words/0"]}]}]}]}}' headers: apim-request-id: - - 4a5816cc-5f8d-4d10-83d8-433b3772d6e2 + - 0735e0ee-f478-4dc7-9be4-8e5c3a491f21 content-type: - application/json; charset=utf-8 date: - - Thu, 11 Jun 2020 15:41:10 GMT + - Fri, 10 Jul 2020 18:43:08 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -174,7 +172,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '32' + - '23' status: code: 200 message: OK diff --git a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_content_from_url.test_content_url_jpg.yaml b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_content_from_url.test_content_url_jpg.yaml index 3a8aa47fa8c2..9c5a4709176c 100644 --- a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_content_from_url.test_content_url_jpg.yaml +++ b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_content_from_url.test_content_url_jpg.yaml @@ -13,28 +13,27 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) method: POST - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/layout/analyze + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/layout/analyze response: body: string: '' headers: apim-request-id: - - 23bb143d-4630-42ba-9845-f8515aa0161f + - c1f93f54-b08a-4996-bfe0-1b7ae0a3d225 content-length: - '0' date: - - Thu, 11 Jun 2020 15:40:58 GMT + - Fri, 10 Jul 2020 18:40:48 GMT operation-location: - - https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/layout/analyzeResults/23bb143d-4630-42ba-9845-f8515aa0161f + - https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/layout/analyzeResults/c1f93f54-b08a-4996-bfe0-1b7ae0a3d225 strict-transport-security: - max-age=31536000; includeSubDomains; preload x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '509' + - '199' status: code: 202 message: Accepted @@ -48,14 +47,13 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/layout/analyzeResults/23bb143d-4630-42ba-9845-f8515aa0161f + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/layout/analyzeResults/c1f93f54-b08a-4996-bfe0-1b7ae0a3d225 response: body: - string: '{"status": "succeeded", "createdDateTime": "2020-06-11T15:40:59Z", - "lastUpdatedDateTime": "2020-06-11T15:41:02Z", "analyzeResult": {"version": + string: '{"status": "succeeded", "createdDateTime": "2020-07-10T18:40:48Z", + "lastUpdatedDateTime": "2020-07-10T18:40:51Z", "analyzeResult": {"version": "2.0.0", "readResults": [{"page": 1, "language": "en", "angle": 0, "width": 1700, "height": 2200, "unit": "pixel", "lines": [{"boundingBox": [137, 140, 351, 140, 351, 167, 137, 166], "text": "Purchase Order", "words": [{"boundingBox": @@ -361,11 +359,11 @@ interactions: 1216, 1544, 1216, 1544, 1260, 1309, 1260], "elements": ["#/readResults/0/lines/40/words/0"]}]}]}]}}' headers: apim-request-id: - - 882e275d-2d1f-40e9-920f-6bfd395bbf03 + - 3db591ab-47c2-4561-9bfa-1746227e1d41 content-type: - application/json; charset=utf-8 date: - - Thu, 11 Jun 2020 15:41:03 GMT + - Fri, 10 Jul 2020 18:40:53 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -373,7 +371,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '32' + - '24' status: code: 200 message: OK diff --git a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_content_from_url.test_content_url_pass_stream.yaml b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_content_from_url.test_content_url_pass_stream.yaml index 843e3eb8e9cd..37bcd9399deb 100644 --- a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_content_from_url.test_content_url_pass_stream.yaml +++ b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_content_from_url.test_content_url_pass_stream.yaml @@ -13,21 +13,20 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) method: POST - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/layout/analyze + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/layout/analyze response: body: string: '{"error": {"code": "FailedToDownloadImage", "message": "Failed to download image from input URL."}}' headers: apim-request-id: - - 05d400b9-8773-41f0-8a07-9e89401ed870 + - 9e0d6954-2961-4226-b2ee-42132b4fced1 content-type: - application/json; charset=utf-8 date: - - Thu, 11 Jun 2020 15:40:52 GMT + - Fri, 10 Jul 2020 18:43:09 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -35,7 +34,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '45' + - '2' status: code: 400 message: Bad Request diff --git a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_content_from_url.test_content_url_pdf.yaml b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_content_from_url.test_content_url_pdf.yaml index e1fe04c7951c..f4f0bb0a8b46 100644 --- a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_content_from_url.test_content_url_pdf.yaml +++ b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_content_from_url.test_content_url_pdf.yaml @@ -13,28 +13,27 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) method: POST - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/layout/analyze + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/layout/analyze response: body: string: '' headers: apim-request-id: - - c3276685-918d-497e-ac9a-8277bee76216 + - 466cf620-4b8c-460e-a082-52727711823e content-length: - '0' date: - - Thu, 11 Jun 2020 15:41:06 GMT + - Fri, 10 Jul 2020 18:40:55 GMT operation-location: - - https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/layout/analyzeResults/c3276685-918d-497e-ac9a-8277bee76216 + - https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/layout/analyzeResults/466cf620-4b8c-460e-a082-52727711823e strict-transport-security: - max-age=31536000; includeSubDomains; preload x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '109' + - '182' status: code: 202 message: Accepted @@ -48,14 +47,13 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/layout/analyzeResults/c3276685-918d-497e-ac9a-8277bee76216 + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/layout/analyzeResults/466cf620-4b8c-460e-a082-52727711823e response: body: - string: '{"status": "succeeded", "createdDateTime": "2020-06-11T15:41:07Z", - "lastUpdatedDateTime": "2020-06-11T15:41:11Z", "analyzeResult": {"version": + string: '{"status": "succeeded", "createdDateTime": "2020-07-10T18:40:55Z", + "lastUpdatedDateTime": "2020-07-10T18:40:58Z", "analyzeResult": {"version": "2.0.0", "readResults": [{"page": 1, "language": "en", "angle": 0, "width": 8.5, "height": 11, "unit": "inch", "lines": [{"boundingBox": [0.5384, 1.1583, 1.4466, 1.1583, 1.4466, 1.3534, 0.5384, 1.3534], "text": "Contoso", "words": @@ -162,11 +160,11 @@ interactions: 3.859], "elements": ["#/readResults/0/lines/17/words/0"]}]}]}]}}' headers: apim-request-id: - - 8357ad9d-9c2d-4ee4-894d-9ed97523a5d7 + - a51855b1-06fe-4e95-8d38-8b073468fef0 content-type: - application/json; charset=utf-8 date: - - Thu, 11 Jun 2020 15:41:12 GMT + - Fri, 10 Jul 2020 18:41:00 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -174,7 +172,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '37' + - '25' status: code: 200 message: OK diff --git a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_content_from_url.test_content_url_transform_jpg.yaml b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_content_from_url.test_content_url_transform_jpg.yaml index dc0b9193afae..1075a03f5575 100644 --- a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_content_from_url.test_content_url_transform_jpg.yaml +++ b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_content_from_url.test_content_url_transform_jpg.yaml @@ -13,28 +13,27 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) method: POST - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/layout/analyze + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/layout/analyze response: body: string: '' headers: apim-request-id: - - 365a9377-8042-4fa6-aab4-1a05b4af94dd + - fb9db2d4-b06a-4db8-be2b-24d5a1e05a7b content-length: - '0' date: - - Thu, 11 Jun 2020 15:41:10 GMT + - Fri, 10 Jul 2020 18:41:14 GMT operation-location: - - https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/layout/analyzeResults/365a9377-8042-4fa6-aab4-1a05b4af94dd + - https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/layout/analyzeResults/fb9db2d4-b06a-4db8-be2b-24d5a1e05a7b strict-transport-security: - max-age=31536000; includeSubDomains; preload x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '113' + - '20194' status: code: 202 message: Accepted @@ -48,14 +47,13 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/layout/analyzeResults/365a9377-8042-4fa6-aab4-1a05b4af94dd + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/layout/analyzeResults/fb9db2d4-b06a-4db8-be2b-24d5a1e05a7b response: body: - string: '{"status": "succeeded", "createdDateTime": "2020-06-11T15:41:10Z", - "lastUpdatedDateTime": "2020-06-11T15:41:13Z", "analyzeResult": {"version": + string: '{"status": "succeeded", "createdDateTime": "2020-07-10T18:41:14Z", + "lastUpdatedDateTime": "2020-07-10T18:41:17Z", "analyzeResult": {"version": "2.0.0", "readResults": [{"page": 1, "language": "en", "angle": 0, "width": 1700, "height": 2200, "unit": "pixel", "lines": [{"boundingBox": [137, 140, 351, 140, 351, 167, 137, 166], "text": "Purchase Order", "words": [{"boundingBox": @@ -361,11 +359,11 @@ interactions: 1216, 1544, 1216, 1544, 1260, 1309, 1260], "elements": ["#/readResults/0/lines/40/words/0"]}]}]}]}}' headers: apim-request-id: - - c5e5ec5e-de7d-4346-b42d-fd45c6f14c16 + - 8c92a89e-86c3-4f59-98a0-a596e88d1927 content-type: - application/json; charset=utf-8 date: - - Thu, 11 Jun 2020 15:41:15 GMT + - Fri, 10 Jul 2020 18:41:19 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -373,7 +371,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '37' + - '29' status: code: 200 message: OK diff --git a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_content_from_url.test_content_url_transform_pdf.yaml b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_content_from_url.test_content_url_transform_pdf.yaml index 066a4c1d4048..82e3c1837f5c 100644 --- a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_content_from_url.test_content_url_transform_pdf.yaml +++ b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_content_from_url.test_content_url_transform_pdf.yaml @@ -13,28 +13,27 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) method: POST - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/layout/analyze + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/layout/analyze response: body: string: '' headers: apim-request-id: - - 05eaccd3-1b03-42ae-b842-32d957d0a9fe + - bd8b42e3-7a0b-4f66-bd17-cf1c242cfe0e content-length: - '0' date: - - Thu, 11 Jun 2020 15:41:11 GMT + - Fri, 10 Jul 2020 18:43:10 GMT operation-location: - - https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/layout/analyzeResults/05eaccd3-1b03-42ae-b842-32d957d0a9fe + - https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/layout/analyzeResults/bd8b42e3-7a0b-4f66-bd17-cf1c242cfe0e strict-transport-security: - max-age=31536000; includeSubDomains; preload x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '59' + - '223' status: code: 202 message: Accepted @@ -48,14 +47,13 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/layout/analyzeResults/05eaccd3-1b03-42ae-b842-32d957d0a9fe + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/layout/analyzeResults/bd8b42e3-7a0b-4f66-bd17-cf1c242cfe0e response: body: - string: '{"status": "succeeded", "createdDateTime": "2020-06-11T15:41:12Z", - "lastUpdatedDateTime": "2020-06-11T15:41:16Z", "analyzeResult": {"version": + string: '{"status": "succeeded", "createdDateTime": "2020-07-10T18:43:09Z", + "lastUpdatedDateTime": "2020-07-10T18:43:13Z", "analyzeResult": {"version": "2.0.0", "readResults": [{"page": 1, "language": "en", "angle": 0, "width": 8.5, "height": 11, "unit": "inch", "lines": [{"boundingBox": [0.5384, 1.1583, 1.4466, 1.1583, 1.4466, 1.3534, 0.5384, 1.3534], "text": "Contoso", "words": @@ -162,11 +160,11 @@ interactions: 3.859], "elements": ["#/readResults/0/lines/17/words/0"]}]}]}]}}' headers: apim-request-id: - - fe6b52f8-95f1-4db6-a9d4-7786c023ecb5 + - 52b42f4d-909a-43d7-9b60-a1a8e522f2ab content-type: - application/json; charset=utf-8 date: - - Thu, 11 Jun 2020 15:41:17 GMT + - Fri, 10 Jul 2020 18:43:15 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -174,7 +172,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '29' + - '21' status: code: 200 message: OK diff --git a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_content_from_url_async.test_content_bad_url.yaml b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_content_from_url_async.test_content_bad_url.yaml index 86da003f1826..b5becdbb1576 100644 --- a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_content_from_url_async.test_content_bad_url.yaml +++ b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_content_from_url_async.test_content_bad_url.yaml @@ -7,24 +7,23 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) method: POST - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/layout/analyze + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/layout/analyze response: body: string: '{"error": {"code": "FailedToDownloadImage", "message": "Failed to download image from input URL."}}' headers: - apim-request-id: 2967bd47-0f06-4502-b188-1b45ccdc045f + apim-request-id: 809b4af5-38a4-45db-b5b1-3d7745b03c76 content-type: application/json; charset=utf-8 - date: Thu, 11 Jun 2020 15:41:11 GMT + date: Fri, 10 Jul 2020 18:41:00 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '123' + x-envoy-upstream-service-time: '49' status: code: 400 message: Bad Request - url: https://centraluseuap.api.cognitive.microsoft.com//formrecognizer/v2.0-preview/layout/analyze + url: https://centraluseuap.api.cognitive.microsoft.com//formrecognizer/v2.0/layout/analyze version: 1 diff --git a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_content_from_url_async.test_content_encoded_url.yaml b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_content_from_url_async.test_content_encoded_url.yaml index 52dbdba891f1..9ce7ee1efc9c 100644 --- a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_content_from_url_async.test_content_encoded_url.yaml +++ b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_content_from_url_async.test_content_encoded_url.yaml @@ -7,24 +7,23 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) method: POST - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/layout/analyze + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/layout/analyze response: body: string: '{"error": {"code": "FailedToDownloadImage", "message": "Failed to download image from input URL."}}' headers: - apim-request-id: ba66c94f-af17-4785-a6d6-7c04ca117d87 + apim-request-id: a15aee2c-b24e-42f7-a6f8-23ae7819a5f4 content-type: application/json; charset=utf-8 - date: Mon, 15 Jun 2020 18:18:10 GMT + date: Fri, 10 Jul 2020 18:43:15 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '490' + x-envoy-upstream-service-time: '319' status: code: 400 message: Bad Request - url: https://centraluseuap.api.cognitive.microsoft.com//formrecognizer/v2.0-preview/layout/analyze + url: https://centraluseuap.api.cognitive.microsoft.com//formrecognizer/v2.0/layout/analyze version: 1 diff --git a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_content_from_url_async.test_content_multipage_table_span_pdf.yaml b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_content_from_url_async.test_content_multipage_table_span_pdf.yaml index 73912307cb47..d203d2d1be21 100644 --- a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_content_from_url_async.test_content_multipage_table_span_pdf.yaml +++ b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_content_from_url_async.test_content_multipage_table_span_pdf.yaml @@ -7,61 +7,35 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) method: POST - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/layout/analyze + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/layout/analyze response: body: string: '' headers: - apim-request-id: 6044318d-da3b-433f-9bb1-5c11f21172b5 + apim-request-id: 6fd21c32-dbfd-4353-8943-a598529b28a9 content-length: '0' - date: Thu, 11 Jun 2020 15:41:02 GMT - operation-location: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/layout/analyzeResults/6044318d-da3b-433f-9bb1-5c11f21172b5 + date: Fri, 10 Jul 2020 18:41:01 GMT + operation-location: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/layout/analyzeResults/6fd21c32-dbfd-4353-8943-a598529b28a9 strict-transport-security: max-age=31536000; includeSubDomains; preload x-content-type-options: nosniff - x-envoy-upstream-service-time: '161' + x-envoy-upstream-service-time: '232' status: code: 202 message: Accepted - url: https://centraluseuap.api.cognitive.microsoft.com//formrecognizer/v2.0-preview/layout/analyze + url: https://centraluseuap.api.cognitive.microsoft.com//formrecognizer/v2.0/layout/analyze - request: body: null headers: User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/layout/analyzeResults/6044318d-da3b-433f-9bb1-5c11f21172b5 + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/layout/analyzeResults/6fd21c32-dbfd-4353-8943-a598529b28a9 response: body: - string: '{"status": "running", "createdDateTime": "2020-06-11T15:41:03Z", "lastUpdatedDateTime": - "2020-06-11T15:41:08Z"}' - headers: - apim-request-id: 51024a0f-c719-4785-893f-48ec15dc42ee - content-type: application/json; charset=utf-8 - date: Thu, 11 Jun 2020 15:41:07 GMT - strict-transport-security: max-age=31536000; includeSubDomains; preload - transfer-encoding: chunked - x-content-type-options: nosniff - x-envoy-upstream-service-time: '10' - status: - code: 200 - message: OK - url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/layout/analyzeResults/6044318d-da3b-433f-9bb1-5c11f21172b5 -- request: - body: null - headers: - User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) - method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/layout/analyzeResults/6044318d-da3b-433f-9bb1-5c11f21172b5 - response: - body: - string: '{"status": "succeeded", "createdDateTime": "2020-06-11T15:41:03Z", - "lastUpdatedDateTime": "2020-06-11T15:41:08Z", "analyzeResult": {"version": + string: '{"status": "succeeded", "createdDateTime": "2020-07-10T18:41:01Z", + "lastUpdatedDateTime": "2020-07-10T18:41:05Z", "analyzeResult": {"version": "2.0.0", "readResults": [{"page": 1, "language": "en", "angle": 0, "width": 8.5, "height": 11, "unit": "inch", "lines": [{"boundingBox": [1.0119, 1.6855, 3.9147, 1.6855, 3.9147, 1.8775, 1.0119, 1.8775], "text": "Quarterly Sales @@ -1325,15 +1299,15 @@ interactions: {"rowIndex": 23, "columnIndex": 4, "text": "17.49%", "boundingBox": [7.0817, 5.0925, 7.8425, 5.0925, 7.8425, 5.285, 7.0817, 5.285], "elements": ["#/readResults/1/lines/79/words/0"]}]}]}]}}' headers: - apim-request-id: b12a265c-532f-4ca1-86ef-1a13ab662a61 + apim-request-id: 387672ad-06ab-414e-8b89-b3310920da6d content-type: application/json; charset=utf-8 - date: Thu, 11 Jun 2020 15:41:13 GMT + date: Fri, 10 Jul 2020 18:41:06 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '75' + x-envoy-upstream-service-time: '44' status: code: 200 message: OK - url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/layout/analyzeResults/6044318d-da3b-433f-9bb1-5c11f21172b5 + url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/layout/analyzeResults/6fd21c32-dbfd-4353-8943-a598529b28a9 version: 1 diff --git a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_content_from_url_async.test_content_multipage_table_span_transform.yaml b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_content_from_url_async.test_content_multipage_table_span_transform.yaml index 802f73db0c00..f7b71efe8fca 100644 --- a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_content_from_url_async.test_content_multipage_table_span_transform.yaml +++ b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_content_from_url_async.test_content_multipage_table_span_transform.yaml @@ -7,61 +7,35 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) method: POST - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/layout/analyze + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/layout/analyze response: body: string: '' headers: - apim-request-id: 1e58f46f-bd0e-4fc1-86ad-76b6a10b441a + apim-request-id: 69cba662-c9cb-4472-bf84-d7b1501ec59c content-length: '0' - date: Thu, 11 Jun 2020 15:41:11 GMT - operation-location: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/layout/analyzeResults/1e58f46f-bd0e-4fc1-86ad-76b6a10b441a + date: Fri, 10 Jul 2020 18:41:31 GMT + operation-location: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/layout/analyzeResults/69cba662-c9cb-4472-bf84-d7b1501ec59c strict-transport-security: max-age=31536000; includeSubDomains; preload x-content-type-options: nosniff - x-envoy-upstream-service-time: '104' + x-envoy-upstream-service-time: '190' status: code: 202 message: Accepted - url: https://centraluseuap.api.cognitive.microsoft.com//formrecognizer/v2.0-preview/layout/analyze + url: https://centraluseuap.api.cognitive.microsoft.com//formrecognizer/v2.0/layout/analyze - request: body: null headers: User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/layout/analyzeResults/1e58f46f-bd0e-4fc1-86ad-76b6a10b441a + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/layout/analyzeResults/69cba662-c9cb-4472-bf84-d7b1501ec59c response: body: - string: '{"status": "running", "createdDateTime": "2020-06-11T15:41:11Z", "lastUpdatedDateTime": - "2020-06-11T15:41:15Z"}' - headers: - apim-request-id: acce0ffb-badd-4dbb-8aa9-6eeec75dc902 - content-type: application/json; charset=utf-8 - date: Thu, 11 Jun 2020 15:41:15 GMT - strict-transport-security: max-age=31536000; includeSubDomains; preload - transfer-encoding: chunked - x-content-type-options: nosniff - x-envoy-upstream-service-time: '7' - status: - code: 200 - message: OK - url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/layout/analyzeResults/1e58f46f-bd0e-4fc1-86ad-76b6a10b441a -- request: - body: null - headers: - User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) - method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/layout/analyzeResults/1e58f46f-bd0e-4fc1-86ad-76b6a10b441a - response: - body: - string: '{"status": "succeeded", "createdDateTime": "2020-06-11T15:41:11Z", - "lastUpdatedDateTime": "2020-06-11T15:41:16Z", "analyzeResult": {"version": + string: '{"status": "succeeded", "createdDateTime": "2020-07-10T18:41:31Z", + "lastUpdatedDateTime": "2020-07-10T18:41:35Z", "analyzeResult": {"version": "2.0.0", "readResults": [{"page": 1, "language": "en", "angle": 0, "width": 8.5, "height": 11, "unit": "inch", "lines": [{"boundingBox": [1.0119, 1.6855, 3.9147, 1.6855, 3.9147, 1.8775, 1.0119, 1.8775], "text": "Quarterly Sales @@ -1325,15 +1299,15 @@ interactions: {"rowIndex": 23, "columnIndex": 4, "text": "17.49%", "boundingBox": [7.0817, 5.0925, 7.8425, 5.0925, 7.8425, 5.285, 7.0817, 5.285], "elements": ["#/readResults/1/lines/79/words/0"]}]}]}]}}' headers: - apim-request-id: 286a790e-601a-47de-824b-e74491baf2ae + apim-request-id: 36279a90-2072-4cf7-aa97-73512e0074e8 content-type: application/json; charset=utf-8 - date: Thu, 11 Jun 2020 15:41:21 GMT + date: Fri, 10 Jul 2020 18:41:36 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '68' + x-envoy-upstream-service-time: '41' status: code: 200 message: OK - url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/layout/analyzeResults/1e58f46f-bd0e-4fc1-86ad-76b6a10b441a + url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/layout/analyzeResults/69cba662-c9cb-4472-bf84-d7b1501ec59c version: 1 diff --git a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_content_from_url_async.test_content_multipage_transform_url.yaml b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_content_from_url_async.test_content_multipage_transform_url.yaml index 23ebe2252ffc..bb356cc94480 100644 --- a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_content_from_url_async.test_content_multipage_transform_url.yaml +++ b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_content_from_url_async.test_content_multipage_transform_url.yaml @@ -7,37 +7,35 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) method: POST - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/layout/analyze + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/layout/analyze response: body: string: '' headers: - apim-request-id: 1940709b-2664-42f7-b1d6-537ed827f463 + apim-request-id: 7982c45e-fb6e-465b-acad-f266d2211e75 content-length: '0' - date: Thu, 11 Jun 2020 15:41:06 GMT - operation-location: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/layout/analyzeResults/1940709b-2664-42f7-b1d6-537ed827f463 + date: Fri, 10 Jul 2020 18:43:16 GMT + operation-location: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/layout/analyzeResults/7982c45e-fb6e-465b-acad-f266d2211e75 strict-transport-security: max-age=31536000; includeSubDomains; preload x-content-type-options: nosniff - x-envoy-upstream-service-time: '94' + x-envoy-upstream-service-time: '164' status: code: 202 message: Accepted - url: https://centraluseuap.api.cognitive.microsoft.com//formrecognizer/v2.0-preview/layout/analyze + url: https://centraluseuap.api.cognitive.microsoft.com//formrecognizer/v2.0/layout/analyze - request: body: null headers: User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/layout/analyzeResults/1940709b-2664-42f7-b1d6-537ed827f463 + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/layout/analyzeResults/7982c45e-fb6e-465b-acad-f266d2211e75 response: body: - string: '{"status": "succeeded", "createdDateTime": "2020-06-11T15:41:07Z", - "lastUpdatedDateTime": "2020-06-11T15:41:11Z", "analyzeResult": {"version": + string: '{"status": "succeeded", "createdDateTime": "2020-07-10T18:43:16Z", + "lastUpdatedDateTime": "2020-07-10T18:43:20Z", "analyzeResult": {"version": "2.0.0", "readResults": [{"page": 1, "language": "en", "angle": 0, "width": 8.5, "height": 11, "unit": "inch", "lines": [{"boundingBox": [0.8861, 1.1217, 2.3783, 1.1217, 2.3783, 1.2812, 0.8861, 1.2812], "text": "Company A Invoice", @@ -418,15 +416,15 @@ interactions: {"rowIndex": 7, "columnIndex": 2, "text": "220.00", "boundingBox": [5.3353, 4.4181, 7.4997, 4.4181, 7.4997, 4.6281, 5.3353, 4.6281], "elements": ["#/readResults/2/lines/33/words/0"]}]}]}]}}' headers: - apim-request-id: d1dfcfe4-23da-4052-810b-4ed588653130 + apim-request-id: f8dc3a09-3e61-4eae-85a3-026dc52288d8 content-type: application/json; charset=utf-8 - date: Thu, 11 Jun 2020 15:41:11 GMT + date: Fri, 10 Jul 2020 18:43:21 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '94' + x-envoy-upstream-service-time: '67' status: code: 200 message: OK - url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/layout/analyzeResults/1940709b-2664-42f7-b1d6-537ed827f463 + url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/layout/analyzeResults/7982c45e-fb6e-465b-acad-f266d2211e75 version: 1 diff --git a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_content_from_url_async.test_content_multipage_url.yaml b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_content_from_url_async.test_content_multipage_url.yaml index a4a8610f1022..fa7db38f7fde 100644 --- a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_content_from_url_async.test_content_multipage_url.yaml +++ b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_content_from_url_async.test_content_multipage_url.yaml @@ -7,37 +7,35 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) method: POST - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/layout/analyze + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/layout/analyze response: body: string: '' headers: - apim-request-id: 2ac7a5a4-c2ce-4f5b-826b-c8c2c38091e0 + apim-request-id: 38de86a0-39d4-4708-bb4d-231335a38673 content-length: '0' - date: Thu, 11 Jun 2020 15:41:04 GMT - operation-location: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/layout/analyzeResults/2ac7a5a4-c2ce-4f5b-826b-c8c2c38091e0 + date: Fri, 10 Jul 2020 18:41:06 GMT + operation-location: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/layout/analyzeResults/38de86a0-39d4-4708-bb4d-231335a38673 strict-transport-security: max-age=31536000; includeSubDomains; preload x-content-type-options: nosniff - x-envoy-upstream-service-time: '126' + x-envoy-upstream-service-time: '160' status: code: 202 message: Accepted - url: https://centraluseuap.api.cognitive.microsoft.com//formrecognizer/v2.0-preview/layout/analyze + url: https://centraluseuap.api.cognitive.microsoft.com//formrecognizer/v2.0/layout/analyze - request: body: null headers: User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/layout/analyzeResults/2ac7a5a4-c2ce-4f5b-826b-c8c2c38091e0 + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/layout/analyzeResults/38de86a0-39d4-4708-bb4d-231335a38673 response: body: - string: '{"status": "succeeded", "createdDateTime": "2020-06-11T15:41:04Z", - "lastUpdatedDateTime": "2020-06-11T15:41:09Z", "analyzeResult": {"version": + string: '{"status": "succeeded", "createdDateTime": "2020-07-10T18:41:07Z", + "lastUpdatedDateTime": "2020-07-10T18:41:12Z", "analyzeResult": {"version": "2.0.0", "readResults": [{"page": 1, "language": "en", "angle": 0, "width": 8.5, "height": 11, "unit": "inch", "lines": [{"boundingBox": [0.8861, 1.1217, 2.3783, 1.1217, 2.3783, 1.2812, 0.8861, 1.2812], "text": "Company A Invoice", @@ -418,15 +416,15 @@ interactions: {"rowIndex": 7, "columnIndex": 2, "text": "220.00", "boundingBox": [5.3353, 4.4181, 7.4997, 4.4181, 7.4997, 4.6281, 5.3353, 4.6281], "elements": ["#/readResults/2/lines/33/words/0"]}]}]}]}}' headers: - apim-request-id: 6fa47c6a-3f76-4f56-96b7-f1516fe716ef + apim-request-id: 90004cdd-df14-4247-b1cc-ca6d350e5353 content-type: application/json; charset=utf-8 - date: Thu, 11 Jun 2020 15:41:09 GMT + date: Fri, 10 Jul 2020 18:41:11 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '86' + x-envoy-upstream-service-time: '45' status: code: 200 message: OK - url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/layout/analyzeResults/2ac7a5a4-c2ce-4f5b-826b-c8c2c38091e0 + url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/layout/analyzeResults/38de86a0-39d4-4708-bb4d-231335a38673 version: 1 diff --git a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_content_from_url_async.test_content_url_auth_bad_key.yaml b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_content_from_url_async.test_content_url_auth_bad_key.yaml index 0ad57a297424..4327b95ebb11 100644 --- a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_content_from_url_async.test_content_url_auth_bad_key.yaml +++ b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_content_from_url_async.test_content_url_auth_bad_key.yaml @@ -7,20 +7,24 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) method: POST - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/layout/analyze + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/layout/analyze response: body: string: '{"error": {"code": "401", "message": "Access denied due to invalid subscription key or wrong API endpoint. Make sure to provide a valid key for an active subscription and use a correct regional API endpoint for your resource."}}' headers: - content-length: '224' - date: Thu, 11 Jun 2020 15:40:53 GMT + apim-request-id: 3b4159b8-650e-472f-9dc1-fa7f71bc3055 + content-length: '225' + content-type: application/json + date: Fri, 10 Jul 2020 18:41:36 GMT + strict-transport-security: max-age=31536000; includeSubDomains; preload + www-authenticate: AzureApiManagementKey realm="https://centraluseuap.api.cognitive.microsoft.com/formrecognizer",name="Ocp-Apim-Subscription-Key",type="header" + x-content-type-options: nosniff status: code: 401 - message: PermissionDenied - url: https://centraluseuap.api.cognitive.microsoft.com//formrecognizer/v2.0-preview/layout/analyze + message: Access Denied + url: https://centraluseuap.api.cognitive.microsoft.com//formrecognizer/v2.0/layout/analyze version: 1 diff --git a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_content_from_url_async.test_content_url_auth_successful_key.yaml b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_content_from_url_async.test_content_url_auth_successful_key.yaml index 2afdaefa30e5..367d2dc022c8 100644 --- a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_content_from_url_async.test_content_url_auth_successful_key.yaml +++ b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_content_from_url_async.test_content_url_auth_successful_key.yaml @@ -7,37 +7,35 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) method: POST - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/layout/analyze + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/layout/analyze response: body: string: '' headers: - apim-request-id: f0cb29de-11bb-4030-b22d-88686356f681 + apim-request-id: e4fa2d84-d48a-4610-90cc-fb4035ef3010 content-length: '0' - date: Thu, 11 Jun 2020 15:41:13 GMT - operation-location: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/layout/analyzeResults/f0cb29de-11bb-4030-b22d-88686356f681 + date: Fri, 10 Jul 2020 18:43:22 GMT + operation-location: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/layout/analyzeResults/e4fa2d84-d48a-4610-90cc-fb4035ef3010 strict-transport-security: max-age=31536000; includeSubDomains; preload x-content-type-options: nosniff - x-envoy-upstream-service-time: '149' + x-envoy-upstream-service-time: '177' status: code: 202 message: Accepted - url: https://centraluseuap.api.cognitive.microsoft.com//formrecognizer/v2.0-preview/layout/analyze + url: https://centraluseuap.api.cognitive.microsoft.com//formrecognizer/v2.0/layout/analyze - request: body: null headers: User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/layout/analyzeResults/f0cb29de-11bb-4030-b22d-88686356f681 + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/layout/analyzeResults/e4fa2d84-d48a-4610-90cc-fb4035ef3010 response: body: - string: '{"status": "succeeded", "createdDateTime": "2020-06-11T15:41:13Z", - "lastUpdatedDateTime": "2020-06-11T15:41:18Z", "analyzeResult": {"version": + string: '{"status": "succeeded", "createdDateTime": "2020-07-10T18:43:22Z", + "lastUpdatedDateTime": "2020-07-10T18:43:26Z", "analyzeResult": {"version": "2.0.0", "readResults": [{"page": 1, "language": "en", "angle": 0, "width": 8.5, "height": 11, "unit": "inch", "lines": [{"boundingBox": [0.5384, 1.1583, 1.4466, 1.1583, 1.4466, 1.3534, 0.5384, 1.3534], "text": "Contoso", "words": @@ -143,15 +141,15 @@ interactions: "PT", "boundingBox": [6.1051, 3.3219, 7.5038, 3.3219, 7.5038, 3.859, 6.1051, 3.859], "elements": ["#/readResults/0/lines/17/words/0"]}]}]}]}}' headers: - apim-request-id: 27784fd6-209d-40e5-9e64-0330b312feb7 + apim-request-id: e9c3607a-1f8b-4f3d-b481-336c536c3e3a content-type: application/json; charset=utf-8 - date: Thu, 11 Jun 2020 15:41:17 GMT + date: Fri, 10 Jul 2020 18:43:27 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '32' + x-envoy-upstream-service-time: '70' status: code: 200 message: OK - url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/layout/analyzeResults/f0cb29de-11bb-4030-b22d-88686356f681 + url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/layout/analyzeResults/e4fa2d84-d48a-4610-90cc-fb4035ef3010 version: 1 diff --git a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_content_from_url_async.test_content_url_jpg.yaml b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_content_from_url_async.test_content_url_jpg.yaml index 465cebe8c4c1..1b8eabb8debe 100644 --- a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_content_from_url_async.test_content_url_jpg.yaml +++ b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_content_from_url_async.test_content_url_jpg.yaml @@ -7,37 +7,35 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) method: POST - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/layout/analyze + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/layout/analyze response: body: string: '' headers: - apim-request-id: 4a9c504d-ff5d-4626-8af1-19cbd872780e + apim-request-id: 1de97754-8ad7-449c-9694-b46cde2c967b content-length: '0' - date: Thu, 11 Jun 2020 15:41:17 GMT - operation-location: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/layout/analyzeResults/4a9c504d-ff5d-4626-8af1-19cbd872780e + date: Fri, 10 Jul 2020 18:41:57 GMT + operation-location: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/layout/analyzeResults/1de97754-8ad7-449c-9694-b46cde2c967b strict-transport-security: max-age=31536000; includeSubDomains; preload x-content-type-options: nosniff - x-envoy-upstream-service-time: '106' + x-envoy-upstream-service-time: '20164' status: code: 202 message: Accepted - url: https://centraluseuap.api.cognitive.microsoft.com//formrecognizer/v2.0-preview/layout/analyze + url: https://centraluseuap.api.cognitive.microsoft.com//formrecognizer/v2.0/layout/analyze - request: body: null headers: User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/layout/analyzeResults/4a9c504d-ff5d-4626-8af1-19cbd872780e + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/layout/analyzeResults/1de97754-8ad7-449c-9694-b46cde2c967b response: body: - string: '{"status": "succeeded", "createdDateTime": "2020-06-11T15:41:18Z", - "lastUpdatedDateTime": "2020-06-11T15:41:21Z", "analyzeResult": {"version": + string: '{"status": "succeeded", "createdDateTime": "2020-07-10T18:41:58Z", + "lastUpdatedDateTime": "2020-07-10T18:42:00Z", "analyzeResult": {"version": "2.0.0", "readResults": [{"page": 1, "language": "en", "angle": 0, "width": 1700, "height": 2200, "unit": "pixel", "lines": [{"boundingBox": [137, 140, 351, 140, 351, 167, 137, 166], "text": "Purchase Order", "words": [{"boundingBox": @@ -342,15 +340,15 @@ interactions: {"rowIndex": 4, "columnIndex": 3, "text": "100.00", "boundingBox": [1309, 1216, 1544, 1216, 1544, 1260, 1309, 1260], "elements": ["#/readResults/0/lines/40/words/0"]}]}]}]}}' headers: - apim-request-id: e2fef797-daf5-4138-ba1a-a34780025de3 + apim-request-id: 5f21b1d6-0039-4cad-90cb-88a743f3626d content-type: application/json; charset=utf-8 - date: Thu, 11 Jun 2020 15:41:23 GMT + date: Fri, 10 Jul 2020 18:42:02 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '51' + x-envoy-upstream-service-time: '28' status: code: 200 message: OK - url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/layout/analyzeResults/4a9c504d-ff5d-4626-8af1-19cbd872780e + url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/layout/analyzeResults/1de97754-8ad7-449c-9694-b46cde2c967b version: 1 diff --git a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_content_from_url_async.test_content_url_pass_stream.yaml b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_content_from_url_async.test_content_url_pass_stream.yaml index 819ffa31707a..45cf2cf5e31b 100644 --- a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_content_from_url_async.test_content_url_pass_stream.yaml +++ b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_content_from_url_async.test_content_url_pass_stream.yaml @@ -7,24 +7,23 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) method: POST - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/layout/analyze + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/layout/analyze response: body: string: '{"error": {"code": "FailedToDownloadImage", "message": "Failed to download image from input URL."}}' headers: - apim-request-id: 6e6e4ccb-9194-4c37-85bc-930c0779c2e1 + apim-request-id: c755559e-24c4-4a35-9501-be6494c4a920 content-type: application/json; charset=utf-8 - date: Thu, 11 Jun 2020 15:41:12 GMT + date: Fri, 10 Jul 2020 18:43:27 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '28' + x-envoy-upstream-service-time: '3' status: code: 400 message: Bad Request - url: https://centraluseuap.api.cognitive.microsoft.com//formrecognizer/v2.0-preview/layout/analyze + url: https://centraluseuap.api.cognitive.microsoft.com//formrecognizer/v2.0/layout/analyze version: 1 diff --git a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_content_from_url_async.test_content_url_pdf.yaml b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_content_from_url_async.test_content_url_pdf.yaml index ba3e3cc110d1..661d41a150fc 100644 --- a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_content_from_url_async.test_content_url_pdf.yaml +++ b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_content_from_url_async.test_content_url_pdf.yaml @@ -7,61 +7,35 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) method: POST - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/layout/analyze + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/layout/analyze response: body: string: '' headers: - apim-request-id: e7c435e4-cc30-468d-b14a-ddf61b9a3355 + apim-request-id: 9c0c23ff-ffbe-46fe-abf3-29b7abc396cd content-length: '0' - date: Thu, 11 Jun 2020 15:41:15 GMT - operation-location: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/layout/analyzeResults/e7c435e4-cc30-468d-b14a-ddf61b9a3355 + date: Fri, 10 Jul 2020 18:41:13 GMT + operation-location: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/layout/analyzeResults/9c0c23ff-ffbe-46fe-abf3-29b7abc396cd strict-transport-security: max-age=31536000; includeSubDomains; preload x-content-type-options: nosniff - x-envoy-upstream-service-time: '46' + x-envoy-upstream-service-time: '79' status: code: 202 message: Accepted - url: https://centraluseuap.api.cognitive.microsoft.com//formrecognizer/v2.0-preview/layout/analyze + url: https://centraluseuap.api.cognitive.microsoft.com//formrecognizer/v2.0/layout/analyze - request: body: null headers: User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/layout/analyzeResults/e7c435e4-cc30-468d-b14a-ddf61b9a3355 + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/layout/analyzeResults/9c0c23ff-ffbe-46fe-abf3-29b7abc396cd response: body: - string: '{"status": "running", "createdDateTime": "2020-06-11T15:41:16Z", "lastUpdatedDateTime": - "2020-06-11T15:41:21Z"}' - headers: - apim-request-id: 1b52a998-60ee-4377-92ea-714ba6c7b59d - content-type: application/json; charset=utf-8 - date: Thu, 11 Jun 2020 15:41:21 GMT - strict-transport-security: max-age=31536000; includeSubDomains; preload - transfer-encoding: chunked - x-content-type-options: nosniff - x-envoy-upstream-service-time: '10' - status: - code: 200 - message: OK - url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/layout/analyzeResults/e7c435e4-cc30-468d-b14a-ddf61b9a3355 -- request: - body: null - headers: - User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) - method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/layout/analyzeResults/e7c435e4-cc30-468d-b14a-ddf61b9a3355 - response: - body: - string: '{"status": "succeeded", "createdDateTime": "2020-06-11T15:41:16Z", - "lastUpdatedDateTime": "2020-06-11T15:41:22Z", "analyzeResult": {"version": + string: '{"status": "succeeded", "createdDateTime": "2020-07-10T18:41:13Z", + "lastUpdatedDateTime": "2020-07-10T18:41:17Z", "analyzeResult": {"version": "2.0.0", "readResults": [{"page": 1, "language": "en", "angle": 0, "width": 8.5, "height": 11, "unit": "inch", "lines": [{"boundingBox": [0.5384, 1.1583, 1.4466, 1.1583, 1.4466, 1.3534, 0.5384, 1.3534], "text": "Contoso", "words": @@ -167,15 +141,15 @@ interactions: "PT", "boundingBox": [6.1051, 3.3219, 7.5038, 3.3219, 7.5038, 3.859, 6.1051, 3.859], "elements": ["#/readResults/0/lines/17/words/0"]}]}]}]}}' headers: - apim-request-id: 4e311a1f-0508-4431-b77f-1b600576f3a5 + apim-request-id: 89bc4a1b-aa74-4647-b457-feea51063f28 content-type: application/json; charset=utf-8 - date: Thu, 11 Jun 2020 15:41:26 GMT + date: Fri, 10 Jul 2020 18:41:18 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '40' + x-envoy-upstream-service-time: '26' status: code: 200 message: OK - url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/layout/analyzeResults/e7c435e4-cc30-468d-b14a-ddf61b9a3355 + url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/layout/analyzeResults/9c0c23ff-ffbe-46fe-abf3-29b7abc396cd version: 1 diff --git a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_content_from_url_async.test_content_url_transform_jpg.yaml b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_content_from_url_async.test_content_url_transform_jpg.yaml index 19c06382d1b0..0bc8cb0624e9 100644 --- a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_content_from_url_async.test_content_url_transform_jpg.yaml +++ b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_content_from_url_async.test_content_url_transform_jpg.yaml @@ -7,37 +7,35 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) method: POST - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/layout/analyze + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/layout/analyze response: body: string: '' headers: - apim-request-id: a42cb7bf-e3c5-4c8b-8819-e15eb6702e4e + apim-request-id: cab0412e-b2ae-40dd-b056-cd0e92ecdfbd content-length: '0' - date: Thu, 11 Jun 2020 15:41:13 GMT - operation-location: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/layout/analyzeResults/a42cb7bf-e3c5-4c8b-8819-e15eb6702e4e + date: Fri, 10 Jul 2020 18:42:04 GMT + operation-location: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/layout/analyzeResults/cab0412e-b2ae-40dd-b056-cd0e92ecdfbd strict-transport-security: max-age=31536000; includeSubDomains; preload x-content-type-options: nosniff - x-envoy-upstream-service-time: '107' + x-envoy-upstream-service-time: '334' status: code: 202 message: Accepted - url: https://centraluseuap.api.cognitive.microsoft.com//formrecognizer/v2.0-preview/layout/analyze + url: https://centraluseuap.api.cognitive.microsoft.com//formrecognizer/v2.0/layout/analyze - request: body: null headers: User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/layout/analyzeResults/a42cb7bf-e3c5-4c8b-8819-e15eb6702e4e + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/layout/analyzeResults/cab0412e-b2ae-40dd-b056-cd0e92ecdfbd response: body: - string: '{"status": "succeeded", "createdDateTime": "2020-06-11T15:41:14Z", - "lastUpdatedDateTime": "2020-06-11T15:41:17Z", "analyzeResult": {"version": + string: '{"status": "succeeded", "createdDateTime": "2020-07-10T18:42:03Z", + "lastUpdatedDateTime": "2020-07-10T18:42:06Z", "analyzeResult": {"version": "2.0.0", "readResults": [{"page": 1, "language": "en", "angle": 0, "width": 1700, "height": 2200, "unit": "pixel", "lines": [{"boundingBox": [137, 140, 351, 140, 351, 167, 137, 166], "text": "Purchase Order", "words": [{"boundingBox": @@ -342,15 +340,15 @@ interactions: {"rowIndex": 4, "columnIndex": 3, "text": "100.00", "boundingBox": [1309, 1216, 1544, 1216, 1544, 1260, 1309, 1260], "elements": ["#/readResults/0/lines/40/words/0"]}]}]}]}}' headers: - apim-request-id: 2b6eb623-693a-4a04-a451-1d32cda08c43 + apim-request-id: b78ddca6-80ed-46e9-a34a-de90c3396e4d content-type: application/json; charset=utf-8 - date: Thu, 11 Jun 2020 15:41:19 GMT + date: Fri, 10 Jul 2020 18:42:08 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '42' + x-envoy-upstream-service-time: '27' status: code: 200 message: OK - url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/layout/analyzeResults/a42cb7bf-e3c5-4c8b-8819-e15eb6702e4e + url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/layout/analyzeResults/cab0412e-b2ae-40dd-b056-cd0e92ecdfbd version: 1 diff --git a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_content_from_url_async.test_content_url_transform_pdf.yaml b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_content_from_url_async.test_content_url_transform_pdf.yaml index baf37a1033e2..1a3f8400c5d3 100644 --- a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_content_from_url_async.test_content_url_transform_pdf.yaml +++ b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_content_from_url_async.test_content_url_transform_pdf.yaml @@ -7,37 +7,35 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) method: POST - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/layout/analyze + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/layout/analyze response: body: string: '' headers: - apim-request-id: a0d80d95-e401-4202-9260-9b8400da91e7 + apim-request-id: ea0b3f6a-6acf-4cf4-8866-8914c1bbec5b content-length: '0' - date: Thu, 11 Jun 2020 15:41:21 GMT - operation-location: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/layout/analyzeResults/a0d80d95-e401-4202-9260-9b8400da91e7 + date: Fri, 10 Jul 2020 18:43:27 GMT + operation-location: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/layout/analyzeResults/ea0b3f6a-6acf-4cf4-8866-8914c1bbec5b strict-transport-security: max-age=31536000; includeSubDomains; preload x-content-type-options: nosniff - x-envoy-upstream-service-time: '139' + x-envoy-upstream-service-time: '171' status: code: 202 message: Accepted - url: https://centraluseuap.api.cognitive.microsoft.com//formrecognizer/v2.0-preview/layout/analyze + url: https://centraluseuap.api.cognitive.microsoft.com//formrecognizer/v2.0/layout/analyze - request: body: null headers: User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/layout/analyzeResults/a0d80d95-e401-4202-9260-9b8400da91e7 + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/layout/analyzeResults/ea0b3f6a-6acf-4cf4-8866-8914c1bbec5b response: body: - string: '{"status": "succeeded", "createdDateTime": "2020-06-11T15:41:22Z", - "lastUpdatedDateTime": "2020-06-11T15:41:26Z", "analyzeResult": {"version": + string: '{"status": "succeeded", "createdDateTime": "2020-07-10T18:43:28Z", + "lastUpdatedDateTime": "2020-07-10T18:43:32Z", "analyzeResult": {"version": "2.0.0", "readResults": [{"page": 1, "language": "en", "angle": 0, "width": 8.5, "height": 11, "unit": "inch", "lines": [{"boundingBox": [0.5384, 1.1583, 1.4466, 1.1583, 1.4466, 1.3534, 0.5384, 1.3534], "text": "Contoso", "words": @@ -143,15 +141,15 @@ interactions: "PT", "boundingBox": [6.1051, 3.3219, 7.5038, 3.3219, 7.5038, 3.859, 6.1051, 3.859], "elements": ["#/readResults/0/lines/17/words/0"]}]}]}]}}' headers: - apim-request-id: 2d652dd9-ecf4-439f-9f41-71e81c3efeb5 + apim-request-id: 184e9b2e-e9a0-405a-949e-baec99b5e0e8 content-type: application/json; charset=utf-8 - date: Thu, 11 Jun 2020 15:41:27 GMT + date: Fri, 10 Jul 2020 18:43:32 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '31' + x-envoy-upstream-service-time: '21' status: code: 200 message: OK - url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/layout/analyzeResults/a0d80d95-e401-4202-9260-9b8400da91e7 + url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/layout/analyzeResults/ea0b3f6a-6acf-4cf4-8866-8914c1bbec5b version: 1 diff --git a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_copy_model.test_copy_authorization.yaml b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_copy_model.test_copy_authorization.yaml index 86fc33dcbd73..2474b9d18dd4 100644 --- a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_copy_model.test_copy_authorization.yaml +++ b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_copy_model.test_copy_authorization.yaml @@ -11,23 +11,22 @@ interactions: Content-Length: - '0' User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) method: POST - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/copyAuthorization + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/copyAuthorization response: body: - string: '{"modelId": "098da427-ae14-4261-9c5c-20a0092ea1a7", "accessToken": - "redacted", "expirationDateTimeTicks": 1591976454}' + string: '{"modelId": "89f31fa3-cdf5-4bd2-8a69-ac49becb01b6", "accessToken": + "redacted", "expirationDateTimeTicks": 1594492879}' headers: apim-request-id: - - ac4b3e10-9791-42cc-a755-6bee25f0095d + - 5269b0e6-6db5-4c49-9746-0d3a49b4763f content-type: - application/json; charset=utf-8 date: - - Thu, 11 Jun 2020 15:40:53 GMT + - Fri, 10 Jul 2020 18:41:19 GMT location: - - https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/098da427-ae14-4261-9c5c-20a0092ea1a7 + - https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/89f31fa3-cdf5-4bd2-8a69-ac49becb01b6 strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -35,7 +34,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '197' + - '366' status: code: 201 message: Created diff --git a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_copy_model.test_copy_model_fail.yaml b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_copy_model.test_copy_model_fail.yaml index 75f605f73c32..8cbde2d25dc4 100644 --- a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_copy_model.test_copy_model_fail.yaml +++ b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_copy_model.test_copy_model_fail.yaml @@ -14,28 +14,27 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) method: POST - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models response: body: string: '' headers: apim-request-id: - - 6e48eafc-7436-48a9-9752-35c9b5dd058e + - 9f33e593-d606-40f7-804c-4f049fcb3487 content-length: - '0' date: - - Thu, 11 Jun 2020 15:41:30 GMT + - Fri, 10 Jul 2020 18:42:06 GMT location: - - https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/d2439c36-dadb-45db-ab6e-b2785a872a21 + - https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/095e9e9e-b3fb-4c9b-8d5e-afe4f01509c1 strict-transport-security: - max-age=31536000; includeSubDomains; preload x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '261' + - '246' status: code: 201 message: Created @@ -49,22 +48,21 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/d2439c36-dadb-45db-ab6e-b2785a872a21?includeKeys=true + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/095e9e9e-b3fb-4c9b-8d5e-afe4f01509c1?includeKeys=true response: body: - string: '{"modelInfo": {"modelId": "d2439c36-dadb-45db-ab6e-b2785a872a21", "status": - "creating", "createdDateTime": "2020-06-11T15:41:30Z", "lastUpdatedDateTime": - "2020-06-11T15:41:30Z"}}' + string: '{"modelInfo": {"modelId": "095e9e9e-b3fb-4c9b-8d5e-afe4f01509c1", "status": + "creating", "createdDateTime": "2020-07-10T18:42:06Z", "lastUpdatedDateTime": + "2020-07-10T18:42:06Z"}}' headers: apim-request-id: - - f330edf4-fb26-48f8-9f15-5999bd73fc24 + - 52d98433-e02e-4b11-b3f5-2d56273693a8 content-type: - application/json; charset=utf-8 date: - - Thu, 11 Jun 2020 15:41:35 GMT + - Fri, 10 Jul 2020 18:42:17 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -72,7 +70,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '231' + - '5169' status: code: 200 message: OK @@ -86,52 +84,14 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/d2439c36-dadb-45db-ab6e-b2785a872a21?includeKeys=true + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/095e9e9e-b3fb-4c9b-8d5e-afe4f01509c1?includeKeys=true response: body: - string: '{"modelInfo": {"modelId": "d2439c36-dadb-45db-ab6e-b2785a872a21", "status": - "creating", "createdDateTime": "2020-06-11T15:41:30Z", "lastUpdatedDateTime": - "2020-06-11T15:41:30Z"}}' - headers: - apim-request-id: - - 83f41e79-8594-4577-bed4-2326771c77ba - content-type: - - application/json; charset=utf-8 - date: - - Thu, 11 Jun 2020 15:41:40 GMT - strict-transport-security: - - max-age=31536000; includeSubDomains; preload - transfer-encoding: - - chunked - x-content-type-options: - - nosniff - x-envoy-upstream-service-time: - - '16' - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) - method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/d2439c36-dadb-45db-ab6e-b2785a872a21?includeKeys=true - response: - body: - string: '{"modelInfo": {"modelId": "d2439c36-dadb-45db-ab6e-b2785a872a21", "status": - "ready", "createdDateTime": "2020-06-11T15:41:30Z", "lastUpdatedDateTime": - "2020-06-11T15:41:44Z"}, "keys": {"clusters": {"0": ["Additional Notes:", + string: '{"modelInfo": {"modelId": "095e9e9e-b3fb-4c9b-8d5e-afe4f01509c1", "status": + "ready", "createdDateTime": "2020-07-10T18:42:06Z", "lastUpdatedDateTime": + "2020-07-10T18:42:16Z"}, "keys": {"clusters": {"0": ["Additional Notes:", "Address:", "Company Name:", "Company Phone:", "Dated As:", "Details", "Email:", "Hero Limited", "Name:", "Phone:", "Purchase Order", "Purchase Order #:", "Quantity", "SUBTOTAL", "Seattle, WA 93849 Phone:", "Shipped From", "Shipped @@ -144,11 +104,11 @@ interactions: 1, "errors": [], "status": "succeeded"}], "errors": []}}' headers: apim-request-id: - - 761dd319-0d38-4bad-96a7-0b3c77f779c3 + - 3812fb0f-e53a-4981-8598-55eac7673057 content-type: - application/json; charset=utf-8 date: - - Thu, 11 Jun 2020 15:41:46 GMT + - Fri, 10 Jul 2020 18:42:23 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -156,7 +116,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '82' + - '927' status: code: 200 message: OK @@ -172,23 +132,22 @@ interactions: Content-Length: - '0' User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) method: POST - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/copyAuthorization + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/copyAuthorization response: body: - string: '{"modelId": "b863d8a9-cfbe-41db-af9a-8cd3e523c78a", "accessToken": - "redacted", "expirationDateTimeTicks": 1591976506}' + string: '{"modelId": "9a019fd3-364b-4340-96d0-638a07d16263", "accessToken": + "redacted", "expirationDateTimeTicks": 1594492943}' headers: apim-request-id: - - 0da56ffb-86c4-47e2-b46d-609866ec06f0 + - b0b4ac4f-a46b-4973-98fe-ff14e5554df5 content-type: - application/json; charset=utf-8 date: - - Thu, 11 Jun 2020 15:41:46 GMT + - Fri, 10 Jul 2020 18:42:23 GMT location: - - https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/b863d8a9-cfbe-41db-af9a-8cd3e523c78a + - https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/9a019fd3-364b-4340-96d0-638a07d16263 strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -196,14 +155,14 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '68' + - '188' status: code: 201 message: Created - request: body: 'b''b\''{"targetResourceId": "resource_id", "targetResourceRegion": "eastus", - "copyAuthorization": {"modelId": "b863d8a9-cfbe-41db-af9a-8cd3e523c78a", "accessToken": - 00000000-0000-0000-0000-000000000000, "expirationDateTimeTicks": 1591976506}}\''''' + "copyAuthorization": {"modelId": "9a019fd3-364b-4340-96d0-638a07d16263", "accessToken": + 00000000-0000-0000-0000-000000000000, "expirationDateTimeTicks": 1594492943}}\''''' headers: Accept: - '*/*' @@ -216,28 +175,27 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) method: POST - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/d2439c36-dadb-45db-ab6e-b2785a872a21/copy + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/095e9e9e-b3fb-4c9b-8d5e-afe4f01509c1/copy response: body: string: '' headers: apim-request-id: - - 5885b834-d3b1-4d4d-94f1-5a2e4abdfc7d + - 9502eecd-14d5-4bd3-a6b1-2eb4bed05d40 content-length: - '0' date: - - Thu, 11 Jun 2020 15:41:47 GMT + - Fri, 10 Jul 2020 18:42:23 GMT operation-location: - - https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/d2439c36-dadb-45db-ab6e-b2785a872a21/copyresults/0d72067a-b994-4821-9cac-38a20f994b3f + - https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/095e9e9e-b3fb-4c9b-8d5e-afe4f01509c1/copyresults/a96cc40f-84f7-4c30-975d-54a1a3e8b03f strict-transport-security: - max-age=31536000; includeSubDomains; preload x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '909' + - '80' status: code: 202 message: Accepted @@ -251,97 +209,23 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) - method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/d2439c36-dadb-45db-ab6e-b2785a872a21/copyresults/0d72067a-b994-4821-9cac-38a20f994b3f - response: - body: - string: '{"status": "notStarted", "createdDateTime": "2020-06-11T15:41:47Z", - "lastUpdatedDateTime": "2020-06-11T15:41:47Z", "copyResult": {"modelId": "b863d8a9-cfbe-41db-af9a-8cd3e523c78a"}}' - headers: - apim-request-id: - - 4043473b-3ab1-4759-ba78-4a3dc9eec56a - content-type: - - application/json; charset=utf-8 - date: - - Thu, 11 Jun 2020 15:41:52 GMT - strict-transport-security: - - max-age=31536000; includeSubDomains; preload - transfer-encoding: - - chunked - x-content-type-options: - - nosniff - x-envoy-upstream-service-time: - - '10' - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) - method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/d2439c36-dadb-45db-ab6e-b2785a872a21/copyresults/0d72067a-b994-4821-9cac-38a20f994b3f - response: - body: - string: '{"status": "running", "createdDateTime": "2020-06-11T15:41:56.1269522Z", - "lastUpdatedDateTime": "2020-06-11T15:41:56.1269523Z", "copyResult": {"modelId": - "b863d8a9-cfbe-41db-af9a-8cd3e523c78a"}}' - headers: - apim-request-id: - - 56e2324a-4381-4fb0-bba0-da9729938278 - content-type: - - application/json; charset=utf-8 - date: - - Thu, 11 Jun 2020 15:41:58 GMT - strict-transport-security: - - max-age=31536000; includeSubDomains; preload - transfer-encoding: - - chunked - x-content-type-options: - - nosniff - x-envoy-upstream-service-time: - - '13' - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/d2439c36-dadb-45db-ab6e-b2785a872a21/copyresults/0d72067a-b994-4821-9cac-38a20f994b3f + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/095e9e9e-b3fb-4c9b-8d5e-afe4f01509c1/copyresults/a96cc40f-84f7-4c30-975d-54a1a3e8b03f response: body: - string: '{"status": "failed", "createdDateTime": "2020-06-11T15:42:01.2394542Z", - "lastUpdatedDateTime": "2020-06-11T15:42:01.2394545Z", "copyResult": {"modelId": - "b863d8a9-cfbe-41db-af9a-8cd3e523c78a", "errors": [{"code": "AuthorizationError", + string: '{"status": "failed", "createdDateTime": "2020-07-10T18:42:32.1161253Z", + "lastUpdatedDateTime": "2020-07-10T18:42:32.1161256Z", "copyResult": {"modelId": + "9a019fd3-364b-4340-96d0-638a07d16263", "errors": [{"code": "AuthorizationError", "message": "Could not retrieve authorization metadata. If this issue persists use a different target model to copy into."}]}}' headers: apim-request-id: - - d4429ca1-e3e1-4ded-8c8e-5d6f3293fad9 + - b0780068-beb0-45ca-9058-7fb2c3673bd1 content-type: - application/json; charset=utf-8 date: - - Thu, 11 Jun 2020 15:42:03 GMT + - Fri, 10 Jul 2020 18:42:33 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -349,7 +233,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '23' + - '5039' x-ms-cs-error-code: - AuthorizationError status: diff --git a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_copy_model.test_copy_model_successful.yaml b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_copy_model.test_copy_model_successful.yaml index 6df02ed5f634..b51f0bd0bb51 100644 --- a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_copy_model.test_copy_model_successful.yaml +++ b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_copy_model.test_copy_model_successful.yaml @@ -14,28 +14,27 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) method: POST - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models response: body: string: '' headers: apim-request-id: - - fb583bd0-864f-4b42-bfc5-f4c4303b2c6e + - daf44634-ed27-49da-aa9f-56069693bcc8 content-length: - '0' date: - - Thu, 11 Jun 2020 15:42:03 GMT + - Fri, 10 Jul 2020 18:42:35 GMT location: - - https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/2f660c4f-0d5e-4843-a07e-5237062c2c63 + - https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/a6329d07-e95c-44fc-aed9-0d9847cb7965 strict-transport-security: - max-age=31536000; includeSubDomains; preload x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '98' + - '834' status: code: 201 message: Created @@ -49,22 +48,21 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/2f660c4f-0d5e-4843-a07e-5237062c2c63?includeKeys=true + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/a6329d07-e95c-44fc-aed9-0d9847cb7965?includeKeys=true response: body: - string: '{"modelInfo": {"modelId": "2f660c4f-0d5e-4843-a07e-5237062c2c63", "status": - "creating", "createdDateTime": "2020-06-11T15:42:03Z", "lastUpdatedDateTime": - "2020-06-11T15:42:03Z"}}' + string: '{"modelInfo": {"modelId": "a6329d07-e95c-44fc-aed9-0d9847cb7965", "status": + "creating", "createdDateTime": "2020-07-10T18:42:35Z", "lastUpdatedDateTime": + "2020-07-10T18:42:35Z"}}' headers: apim-request-id: - - 7b4e0bd0-e240-4394-817a-f1b3059c71cc + - c24ce9c9-0cde-4171-a1ae-0d47fcc67620 content-type: - application/json; charset=utf-8 date: - - Thu, 11 Jun 2020 15:42:08 GMT + - Fri, 10 Jul 2020 18:42:40 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -72,7 +70,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '45' + - '197' status: code: 200 message: OK @@ -86,52 +84,14 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/2f660c4f-0d5e-4843-a07e-5237062c2c63?includeKeys=true + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/a6329d07-e95c-44fc-aed9-0d9847cb7965?includeKeys=true response: body: - string: '{"modelInfo": {"modelId": "2f660c4f-0d5e-4843-a07e-5237062c2c63", "status": - "creating", "createdDateTime": "2020-06-11T15:42:03Z", "lastUpdatedDateTime": - "2020-06-11T15:42:03Z"}}' - headers: - apim-request-id: - - ea8a3d9e-743b-41fe-84a8-c8bd23805230 - content-type: - - application/json; charset=utf-8 - date: - - Thu, 11 Jun 2020 15:42:13 GMT - strict-transport-security: - - max-age=31536000; includeSubDomains; preload - transfer-encoding: - - chunked - x-content-type-options: - - nosniff - x-envoy-upstream-service-time: - - '18' - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) - method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/2f660c4f-0d5e-4843-a07e-5237062c2c63?includeKeys=true - response: - body: - string: '{"modelInfo": {"modelId": "2f660c4f-0d5e-4843-a07e-5237062c2c63", "status": - "ready", "createdDateTime": "2020-06-11T15:42:03Z", "lastUpdatedDateTime": - "2020-06-11T15:42:19Z"}, "keys": {"clusters": {"0": ["Additional Notes:", + string: '{"modelInfo": {"modelId": "a6329d07-e95c-44fc-aed9-0d9847cb7965", "status": + "ready", "createdDateTime": "2020-07-10T18:42:35Z", "lastUpdatedDateTime": + "2020-07-10T18:42:44Z"}, "keys": {"clusters": {"0": ["Additional Notes:", "Address:", "Company Name:", "Company Phone:", "Dated As:", "Details", "Email:", "Hero Limited", "Name:", "Phone:", "Purchase Order", "Purchase Order #:", "Quantity", "SUBTOTAL", "Seattle, WA 93849 Phone:", "Shipped From", "Shipped @@ -144,11 +104,11 @@ interactions: 1, "errors": [], "status": "succeeded"}], "errors": []}}' headers: apim-request-id: - - c36d8a5e-e0cb-4f5b-85e3-f1f2aa3d2e26 + - ee650c76-e46b-4c09-90a0-bbe1413d21e7 content-type: - application/json; charset=utf-8 date: - - Thu, 11 Jun 2020 15:42:19 GMT + - Fri, 10 Jul 2020 18:42:45 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -156,7 +116,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '49' + - '217' status: code: 200 message: OK @@ -172,23 +132,22 @@ interactions: Content-Length: - '0' User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) method: POST - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/copyAuthorization + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/copyAuthorization response: body: - string: '{"modelId": "9929dbe3-e464-4565-9105-52be47a8de13", "accessToken": - "redacted", "expirationDateTimeTicks": 1591976539}' + string: '{"modelId": "8b206c1b-3975-44f9-92dd-9ca8efed488c", "accessToken": + "redacted", "expirationDateTimeTicks": 1594492965}' headers: apim-request-id: - - 796efae4-caf5-4087-a40e-c603f8dfc2b6 + - 11fe3970-a3b7-4d27-bfb5-c5cc197c3948 content-type: - application/json; charset=utf-8 date: - - Thu, 11 Jun 2020 15:42:19 GMT + - Fri, 10 Jul 2020 18:42:45 GMT location: - - https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/9929dbe3-e464-4565-9105-52be47a8de13 + - https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/8b206c1b-3975-44f9-92dd-9ca8efed488c strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -196,14 +155,14 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '56' + - '51' status: code: 201 message: Created - request: body: 'b''b\''{"targetResourceId": "resource_id", "targetResourceRegion": "centraluseuap", - "copyAuthorization": {"modelId": "9929dbe3-e464-4565-9105-52be47a8de13", "accessToken": - 00000000-0000-0000-0000-000000000000, "expirationDateTimeTicks": 1591976539}}\''''' + "copyAuthorization": {"modelId": "8b206c1b-3975-44f9-92dd-9ca8efed488c", "accessToken": + 00000000-0000-0000-0000-000000000000, "expirationDateTimeTicks": 1594492965}}\''''' headers: Accept: - '*/*' @@ -216,28 +175,27 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) method: POST - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/2f660c4f-0d5e-4843-a07e-5237062c2c63/copy + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/a6329d07-e95c-44fc-aed9-0d9847cb7965/copy response: body: string: '' headers: apim-request-id: - - d56c5e0f-10ca-47c2-9b7d-11138f33a112 + - f0f693bb-7703-45eb-a825-87dc4a7883ad content-length: - '0' date: - - Thu, 11 Jun 2020 15:42:19 GMT + - Fri, 10 Jul 2020 18:42:45 GMT operation-location: - - https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/2f660c4f-0d5e-4843-a07e-5237062c2c63/copyresults/57b640e1-6f05-41e8-b02d-bb80fd68cc2f + - https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/a6329d07-e95c-44fc-aed9-0d9847cb7965/copyresults/ac89fd4f-81a8-4fef-bf22-e17feb441e05 strict-transport-security: - max-age=31536000; includeSubDomains; preload x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '62' + - '61' status: code: 202 message: Accepted @@ -251,21 +209,55 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + method: GET + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/a6329d07-e95c-44fc-aed9-0d9847cb7965/copyresults/ac89fd4f-81a8-4fef-bf22-e17feb441e05 + response: + body: + string: '{"status": "notStarted", "createdDateTime": "2020-07-10T18:42:46Z", + "lastUpdatedDateTime": "2020-07-10T18:42:46Z", "copyResult": {"modelId": "8b206c1b-3975-44f9-92dd-9ca8efed488c"}}' + headers: + apim-request-id: + - 88ace49f-66bf-4f50-b1c6-c5ec7364d9c0 + content-type: + - application/json; charset=utf-8 + date: + - Fri, 10 Jul 2020 18:42:50 GMT + strict-transport-security: + - max-age=31536000; includeSubDomains; preload + transfer-encoding: + - chunked + x-content-type-options: + - nosniff + x-envoy-upstream-service-time: + - '15' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/2f660c4f-0d5e-4843-a07e-5237062c2c63/copyresults/57b640e1-6f05-41e8-b02d-bb80fd68cc2f + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/a6329d07-e95c-44fc-aed9-0d9847cb7965/copyresults/ac89fd4f-81a8-4fef-bf22-e17feb441e05 response: body: - string: '{"status": "notStarted", "createdDateTime": "2020-06-11T15:42:19Z", - "lastUpdatedDateTime": "2020-06-11T15:42:19Z", "copyResult": {"modelId": "9929dbe3-e464-4565-9105-52be47a8de13"}}' + string: '{"status": "notStarted", "createdDateTime": "2020-07-10T18:42:46Z", + "lastUpdatedDateTime": "2020-07-10T18:42:46Z", "copyResult": {"modelId": "8b206c1b-3975-44f9-92dd-9ca8efed488c"}}' headers: apim-request-id: - - 41d46022-7e18-4a53-8590-1ad2730f51fa + - 58d12f1d-105b-40f5-895f-204d5766b83e content-type: - application/json; charset=utf-8 date: - - Thu, 11 Jun 2020 15:42:24 GMT + - Fri, 10 Jul 2020 18:42:55 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -273,7 +265,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '8' + - '12' status: code: 200 message: OK @@ -287,21 +279,20 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/2f660c4f-0d5e-4843-a07e-5237062c2c63/copyresults/57b640e1-6f05-41e8-b02d-bb80fd68cc2f + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/a6329d07-e95c-44fc-aed9-0d9847cb7965/copyresults/ac89fd4f-81a8-4fef-bf22-e17feb441e05 response: body: - string: '{"status": "notStarted", "createdDateTime": "2020-06-11T15:42:19Z", - "lastUpdatedDateTime": "2020-06-11T15:42:19Z", "copyResult": {"modelId": "9929dbe3-e464-4565-9105-52be47a8de13"}}' + string: '{"status": "notStarted", "createdDateTime": "2020-07-10T18:42:46Z", + "lastUpdatedDateTime": "2020-07-10T18:42:46Z", "copyResult": {"modelId": "8b206c1b-3975-44f9-92dd-9ca8efed488c"}}' headers: apim-request-id: - - ee1774c0-4054-4711-a479-a32078b020d0 + - 686f0b16-f9d2-4a9a-8aa0-b2ae65edfedc content-type: - application/json; charset=utf-8 date: - - Thu, 11 Jun 2020 15:42:29 GMT + - Fri, 10 Jul 2020 18:43:01 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -309,7 +300,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '9' + - '13' status: code: 200 message: OK @@ -323,22 +314,21 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/2f660c4f-0d5e-4843-a07e-5237062c2c63/copyresults/57b640e1-6f05-41e8-b02d-bb80fd68cc2f + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/a6329d07-e95c-44fc-aed9-0d9847cb7965/copyresults/ac89fd4f-81a8-4fef-bf22-e17feb441e05 response: body: - string: '{"status": "succeeded", "createdDateTime": "2020-06-11T15:42:31.3195826Z", - "lastUpdatedDateTime": "2020-06-11T15:42:31.3195829Z", "copyResult": {"modelId": - "9929dbe3-e464-4565-9105-52be47a8de13"}}' + string: '{"status": "succeeded", "createdDateTime": "2020-07-10T18:43:02.1969188Z", + "lastUpdatedDateTime": "2020-07-10T18:43:02.1969191Z", "copyResult": {"modelId": + "8b206c1b-3975-44f9-92dd-9ca8efed488c"}}' headers: apim-request-id: - - d44648be-0cac-4045-a35c-a50d2fa280d7 + - 1473826d-b0d6-4e57-86a2-26ed0cf9912e content-type: - application/json; charset=utf-8 date: - - Thu, 11 Jun 2020 15:42:34 GMT + - Fri, 10 Jul 2020 18:43:06 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -346,7 +336,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '10' + - '13' status: code: 200 message: OK @@ -360,15 +350,14 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/9929dbe3-e464-4565-9105-52be47a8de13?includeKeys=true + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/8b206c1b-3975-44f9-92dd-9ca8efed488c?includeKeys=true response: body: - string: '{"modelInfo": {"modelId": "9929dbe3-e464-4565-9105-52be47a8de13", "status": - "ready", "createdDateTime": "2020-06-11T15:42:03Z", "lastUpdatedDateTime": - "2020-06-11T15:42:19Z"}, "keys": {"clusters": {"0": ["Additional Notes:", + string: '{"modelInfo": {"modelId": "8b206c1b-3975-44f9-92dd-9ca8efed488c", "status": + "ready", "createdDateTime": "2020-07-10T18:42:35Z", "lastUpdatedDateTime": + "2020-07-10T18:42:44Z"}, "keys": {"clusters": {"0": ["Additional Notes:", "Address:", "Company Name:", "Company Phone:", "Dated As:", "Details", "Email:", "Hero Limited", "Name:", "Phone:", "Purchase Order", "Purchase Order #:", "Quantity", "SUBTOTAL", "Seattle, WA 93849 Phone:", "Shipped From", "Shipped @@ -381,11 +370,11 @@ interactions: 1, "errors": [], "status": "succeeded"}], "errors": []}}' headers: apim-request-id: - - f1797146-f3b3-419f-888e-0ce88e0b7b83 + - ac2e135f-c68a-42ed-8e5e-71e61ea03331 content-type: - application/json; charset=utf-8 date: - - Thu, 11 Jun 2020 15:42:34 GMT + - Fri, 10 Jul 2020 18:43:06 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -393,7 +382,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '54' + - '47' status: code: 200 message: OK diff --git a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_copy_model.test_copy_model_transform.yaml b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_copy_model.test_copy_model_transform.yaml index aeafbfa52269..94df702ab29c 100644 --- a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_copy_model.test_copy_model_transform.yaml +++ b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_copy_model.test_copy_model_transform.yaml @@ -14,28 +14,27 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) method: POST - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models response: body: string: '' headers: apim-request-id: - - 67104a13-dba5-4595-99a5-4fed6d317f14 + - 95acf55c-336b-48b8-80cc-ee587b3b201a content-length: - '0' date: - - Thu, 11 Jun 2020 15:42:36 GMT + - Fri, 10 Jul 2020 18:43:07 GMT location: - - https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/80247db9-9f43-47dc-9463-fb4f0dcb12e5 + - https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/bc0ad1de-d97e-498f-8afd-74b5047956ad strict-transport-security: - max-age=31536000; includeSubDomains; preload x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '77' + - '130' status: code: 201 message: Created @@ -49,22 +48,21 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/80247db9-9f43-47dc-9463-fb4f0dcb12e5?includeKeys=true + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/bc0ad1de-d97e-498f-8afd-74b5047956ad?includeKeys=true response: body: - string: '{"modelInfo": {"modelId": "80247db9-9f43-47dc-9463-fb4f0dcb12e5", "status": - "creating", "createdDateTime": "2020-06-11T15:42:36Z", "lastUpdatedDateTime": - "2020-06-11T15:42:36Z"}}' + string: '{"modelInfo": {"modelId": "bc0ad1de-d97e-498f-8afd-74b5047956ad", "status": + "creating", "createdDateTime": "2020-07-10T18:43:07Z", "lastUpdatedDateTime": + "2020-07-10T18:43:07Z"}}' headers: apim-request-id: - - 19d9fcf4-9df1-4ec3-aed1-caa8e3478a83 + - 6222f5cb-d823-4eee-b3cf-feef97eccfa3 content-type: - application/json; charset=utf-8 date: - - Thu, 11 Jun 2020 15:42:40 GMT + - Fri, 10 Jul 2020 18:43:13 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -72,7 +70,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '18' + - '150' status: code: 200 message: OK @@ -86,22 +84,21 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/80247db9-9f43-47dc-9463-fb4f0dcb12e5?includeKeys=true + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/bc0ad1de-d97e-498f-8afd-74b5047956ad?includeKeys=true response: body: - string: '{"modelInfo": {"modelId": "80247db9-9f43-47dc-9463-fb4f0dcb12e5", "status": - "creating", "createdDateTime": "2020-06-11T15:42:36Z", "lastUpdatedDateTime": - "2020-06-11T15:42:36Z"}}' + string: '{"modelInfo": {"modelId": "bc0ad1de-d97e-498f-8afd-74b5047956ad", "status": + "creating", "createdDateTime": "2020-07-10T18:43:07Z", "lastUpdatedDateTime": + "2020-07-10T18:43:07Z"}}' headers: apim-request-id: - - 2695cc29-af27-4df9-98be-a1d585194772 + - e06ab76f-0d18-418e-b493-ee94f2c09175 content-type: - application/json; charset=utf-8 date: - - Thu, 11 Jun 2020 15:42:45 GMT + - Fri, 10 Jul 2020 18:43:17 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -109,7 +106,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '17' + - '235' status: code: 200 message: OK @@ -123,15 +120,14 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/80247db9-9f43-47dc-9463-fb4f0dcb12e5?includeKeys=true + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/bc0ad1de-d97e-498f-8afd-74b5047956ad?includeKeys=true response: body: - string: '{"modelInfo": {"modelId": "80247db9-9f43-47dc-9463-fb4f0dcb12e5", "status": - "ready", "createdDateTime": "2020-06-11T15:42:36Z", "lastUpdatedDateTime": - "2020-06-11T15:42:46Z"}, "keys": {"clusters": {"0": ["Additional Notes:", + string: '{"modelInfo": {"modelId": "bc0ad1de-d97e-498f-8afd-74b5047956ad", "status": + "ready", "createdDateTime": "2020-07-10T18:43:07Z", "lastUpdatedDateTime": + "2020-07-10T18:43:19Z"}, "keys": {"clusters": {"0": ["Additional Notes:", "Address:", "Company Name:", "Company Phone:", "Dated As:", "Details", "Email:", "Hero Limited", "Name:", "Phone:", "Purchase Order", "Purchase Order #:", "Quantity", "SUBTOTAL", "Seattle, WA 93849 Phone:", "Shipped From", "Shipped @@ -144,11 +140,11 @@ interactions: 1, "errors": [], "status": "succeeded"}], "errors": []}}' headers: apim-request-id: - - 232e1bd0-761f-46c1-a89d-7c55cbe1af6c + - 3519faf3-4594-4ec6-8b9b-e9173273313c content-type: - application/json; charset=utf-8 date: - - Thu, 11 Jun 2020 15:42:51 GMT + - Fri, 10 Jul 2020 18:43:23 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -156,7 +152,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '48' + - '164' status: code: 200 message: OK @@ -172,23 +168,22 @@ interactions: Content-Length: - '0' User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) method: POST - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/copyAuthorization + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/copyAuthorization response: body: - string: '{"modelId": "e26977e9-80b9-40de-b37b-91dd12bad1f0", "accessToken": - "redacted", "expirationDateTimeTicks": 1591976571}' + string: '{"modelId": "11b94f5d-5a46-48c8-8210-815c3b9236ee", "accessToken": + "redacted", "expirationDateTimeTicks": 1594493003}' headers: apim-request-id: - - da8ce695-b33c-4d55-9199-c3c5c9e2d2ad + - fd8afbe8-35e6-4f38-bc4b-88e27ca0eeac content-type: - application/json; charset=utf-8 date: - - Thu, 11 Jun 2020 15:42:51 GMT + - Fri, 10 Jul 2020 18:43:23 GMT location: - - https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/e26977e9-80b9-40de-b37b-91dd12bad1f0 + - https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/11b94f5d-5a46-48c8-8210-815c3b9236ee strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -196,14 +191,14 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '69' + - '176' status: code: 201 message: Created - request: body: 'b''b\''{"targetResourceId": "resource_id", "targetResourceRegion": "centraluseuap", - "copyAuthorization": {"modelId": "e26977e9-80b9-40de-b37b-91dd12bad1f0", "accessToken": - 00000000-0000-0000-0000-000000000000, "expirationDateTimeTicks": 1591976571}}\''''' + "copyAuthorization": {"modelId": "11b94f5d-5a46-48c8-8210-815c3b9236ee", "accessToken": + 00000000-0000-0000-0000-000000000000, "expirationDateTimeTicks": 1594493003}}\''''' headers: Accept: - '*/*' @@ -216,28 +211,27 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) method: POST - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/80247db9-9f43-47dc-9463-fb4f0dcb12e5/copy + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/bc0ad1de-d97e-498f-8afd-74b5047956ad/copy response: body: string: '' headers: apim-request-id: - - 2e6aa90e-320a-4082-91bf-7ae14826cdee + - c0473af5-dd90-4a5c-8820-c1e14495d762 content-length: - '0' date: - - Thu, 11 Jun 2020 15:42:51 GMT + - Fri, 10 Jul 2020 18:43:25 GMT operation-location: - - https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/80247db9-9f43-47dc-9463-fb4f0dcb12e5/copyresults/85028aa5-2b42-4a3d-aae0-1af6f292116e + - https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/bc0ad1de-d97e-498f-8afd-74b5047956ad/copyresults/633ae67a-4935-4215-90f0-b61d0af0d27f strict-transport-security: - max-age=31536000; includeSubDomains; preload x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '65' + - '1726' status: code: 202 message: Accepted @@ -251,21 +245,20 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/80247db9-9f43-47dc-9463-fb4f0dcb12e5/copyresults/85028aa5-2b42-4a3d-aae0-1af6f292116e + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/bc0ad1de-d97e-498f-8afd-74b5047956ad/copyresults/633ae67a-4935-4215-90f0-b61d0af0d27f response: body: - string: '{"status": "notStarted", "createdDateTime": "2020-06-11T15:42:51Z", - "lastUpdatedDateTime": "2020-06-11T15:42:51Z", "copyResult": {"modelId": "e26977e9-80b9-40de-b37b-91dd12bad1f0"}}' + string: '{"status": "notStarted", "createdDateTime": "2020-07-10T18:43:25Z", + "lastUpdatedDateTime": "2020-07-10T18:43:25Z", "copyResult": {"modelId": "11b94f5d-5a46-48c8-8210-815c3b9236ee"}}' headers: apim-request-id: - - a457b971-0007-4c6c-91cb-d923e0feb5b1 + - ca708013-347e-47bf-8f46-13058c56d85b content-type: - application/json; charset=utf-8 date: - - Thu, 11 Jun 2020 15:42:56 GMT + - Fri, 10 Jul 2020 18:43:30 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -273,7 +266,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '10' + - '48' status: code: 200 message: OK @@ -287,21 +280,21 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/80247db9-9f43-47dc-9463-fb4f0dcb12e5/copyresults/85028aa5-2b42-4a3d-aae0-1af6f292116e + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/bc0ad1de-d97e-498f-8afd-74b5047956ad/copyresults/633ae67a-4935-4215-90f0-b61d0af0d27f response: body: - string: '{"status": "notStarted", "createdDateTime": "2020-06-11T15:42:51Z", - "lastUpdatedDateTime": "2020-06-11T15:42:51Z", "copyResult": {"modelId": "e26977e9-80b9-40de-b37b-91dd12bad1f0"}}' + string: '{"status": "running", "createdDateTime": "2020-07-10T18:43:35.2196634Z", + "lastUpdatedDateTime": "2020-07-10T18:43:35.2196635Z", "copyResult": {"modelId": + "11b94f5d-5a46-48c8-8210-815c3b9236ee"}}' headers: apim-request-id: - - 8dafd0d0-ddfc-4fbb-9a11-5b932d85c892 + - 324dfd8b-012c-447e-bb9d-24554d494de9 content-type: - application/json; charset=utf-8 date: - - Thu, 11 Jun 2020 15:43:02 GMT + - Fri, 10 Jul 2020 18:43:37 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -309,7 +302,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '10' + - '782' status: code: 200 message: OK @@ -323,22 +316,21 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/80247db9-9f43-47dc-9463-fb4f0dcb12e5/copyresults/85028aa5-2b42-4a3d-aae0-1af6f292116e + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/bc0ad1de-d97e-498f-8afd-74b5047956ad/copyresults/633ae67a-4935-4215-90f0-b61d0af0d27f response: body: - string: '{"status": "succeeded", "createdDateTime": "2020-06-11T15:43:04.7983752Z", - "lastUpdatedDateTime": "2020-06-11T15:43:04.7983755Z", "copyResult": {"modelId": - "e26977e9-80b9-40de-b37b-91dd12bad1f0"}}' + string: '{"status": "succeeded", "createdDateTime": "2020-07-10T18:43:38.2857868Z", + "lastUpdatedDateTime": "2020-07-10T18:43:38.2857871Z", "copyResult": {"modelId": + "11b94f5d-5a46-48c8-8210-815c3b9236ee"}}' headers: apim-request-id: - - 7b2c3195-5c0c-46a2-9f23-0749f4756748 + - 3f50c053-c11d-41e3-8b67-1f1ac2b0a002 content-type: - application/json; charset=utf-8 date: - - Thu, 11 Jun 2020 15:43:06 GMT + - Fri, 10 Jul 2020 18:43:41 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -346,7 +338,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '10' + - '13' status: code: 200 message: OK diff --git a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_copy_model_async.test_copy_authorization.yaml b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_copy_model_async.test_copy_authorization.yaml index 54d2bd8000d6..f7400ba652aa 100644 --- a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_copy_model_async.test_copy_authorization.yaml +++ b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_copy_model_async.test_copy_authorization.yaml @@ -5,25 +5,24 @@ interactions: Accept: - application/json User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) method: POST - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/copyAuthorization + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/copyAuthorization response: body: - string: '{"modelId": "5858edb8-5891-46e7-b9f7-47368b513f67", "accessToken": - "redacted", "expirationDateTimeTicks": 1591976587}' + string: '{"modelId": "aa4d8281-27f9-439c-aa34-96be37f2c766", "accessToken": + "redacted", "expirationDateTimeTicks": 1594493022}' headers: - apim-request-id: 4e32278c-c7bc-428f-bc03-9624cc0cf618 + apim-request-id: e37dc7fa-e5a2-4d9f-9209-88f2f663d36d content-type: application/json; charset=utf-8 - date: Thu, 11 Jun 2020 15:43:07 GMT - location: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/5858edb8-5891-46e7-b9f7-47368b513f67 + date: Fri, 10 Jul 2020 18:43:41 GMT + location: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/aa4d8281-27f9-439c-aa34-96be37f2c766 strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '54' + x-envoy-upstream-service-time: '26' status: code: 201 message: Created - url: https://centraluseuap.api.cognitive.microsoft.com//formrecognizer/v2.0-preview/custom/models/copyAuthorization + url: https://centraluseuap.api.cognitive.microsoft.com//formrecognizer/v2.0/custom/models/copyAuthorization version: 1 diff --git a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_copy_model_async.test_copy_model_fail.yaml b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_copy_model_async.test_copy_model_fail.yaml index 3d395bd95723..b2456db61409 100644 --- a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_copy_model_async.test_copy_model_fail.yaml +++ b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_copy_model_async.test_copy_model_fail.yaml @@ -8,163 +8,84 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) method: POST - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models response: body: string: '' headers: - apim-request-id: b1833716-e41c-48ec-825b-623a334007de + apim-request-id: cb8ada02-6f06-4e95-b870-7767facf92c4 content-length: '0' - date: Thu, 11 Jun 2020 15:43:44 GMT - location: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/d5480154-4b3a-4211-8ef6-3d75275d35bd + date: Fri, 10 Jul 2020 18:44:15 GMT + location: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/a1d4e626-ba18-45f7-8241-52627b90ab37 strict-transport-security: max-age=31536000; includeSubDomains; preload x-content-type-options: nosniff - x-envoy-upstream-service-time: '42' + x-envoy-upstream-service-time: '251' status: code: 201 message: Created - url: https://centraluseuap.api.cognitive.microsoft.com//formrecognizer/v2.0-preview/custom/models + url: https://centraluseuap.api.cognitive.microsoft.com//formrecognizer/v2.0/custom/models - request: body: null headers: User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/d5480154-4b3a-4211-8ef6-3d75275d35bd?includeKeys=true + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/a1d4e626-ba18-45f7-8241-52627b90ab37?includeKeys=true response: body: - string: '{"modelInfo": {"modelId": "d5480154-4b3a-4211-8ef6-3d75275d35bd", "status": - "creating", "createdDateTime": "2020-06-11T15:43:44Z", "lastUpdatedDateTime": - "2020-06-11T15:43:44Z"}}' + string: '{"modelInfo": {"modelId": "a1d4e626-ba18-45f7-8241-52627b90ab37", "status": + "creating", "createdDateTime": "2020-07-10T18:44:16Z", "lastUpdatedDateTime": + "2020-07-10T18:44:16Z"}}' headers: - apim-request-id: 24712b90-cee4-4ef2-b3ef-df5e03227221 + apim-request-id: d7006e41-56a0-439d-8f33-5a0fcd26d380 content-type: application/json; charset=utf-8 - date: Thu, 11 Jun 2020 15:43:50 GMT + date: Fri, 10 Jul 2020 18:44:21 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '64' + x-envoy-upstream-service-time: '163' status: code: 200 message: OK - url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/d5480154-4b3a-4211-8ef6-3d75275d35bd?includeKeys=true + url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/a1d4e626-ba18-45f7-8241-52627b90ab37?includeKeys=true - request: body: null headers: User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/d5480154-4b3a-4211-8ef6-3d75275d35bd?includeKeys=true + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/a1d4e626-ba18-45f7-8241-52627b90ab37?includeKeys=true response: body: - string: '{"modelInfo": {"modelId": "d5480154-4b3a-4211-8ef6-3d75275d35bd", "status": - "creating", "createdDateTime": "2020-06-11T15:43:44Z", "lastUpdatedDateTime": - "2020-06-11T15:43:44Z"}}' + string: '{"modelInfo": {"modelId": "a1d4e626-ba18-45f7-8241-52627b90ab37", "status": + "creating", "createdDateTime": "2020-07-10T18:44:16Z", "lastUpdatedDateTime": + "2020-07-10T18:44:16Z"}}' headers: - apim-request-id: 4ea6110b-5096-4b7d-8f90-e95c624b83f4 + apim-request-id: 990f37fe-d385-4f8f-96a2-469bd229d88b content-type: application/json; charset=utf-8 - date: Thu, 11 Jun 2020 15:43:54 GMT + date: Fri, 10 Jul 2020 18:44:26 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '21' + x-envoy-upstream-service-time: '51' status: code: 200 message: OK - url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/d5480154-4b3a-4211-8ef6-3d75275d35bd?includeKeys=true + url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/a1d4e626-ba18-45f7-8241-52627b90ab37?includeKeys=true - request: body: null headers: User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/d5480154-4b3a-4211-8ef6-3d75275d35bd?includeKeys=true + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/a1d4e626-ba18-45f7-8241-52627b90ab37?includeKeys=true response: body: - string: '{"modelInfo": {"modelId": "d5480154-4b3a-4211-8ef6-3d75275d35bd", "status": - "creating", "createdDateTime": "2020-06-11T15:43:44Z", "lastUpdatedDateTime": - "2020-06-11T15:43:44Z"}}' - headers: - apim-request-id: 80d9db42-9193-41f0-a1c1-76485146c0e8 - content-type: application/json; charset=utf-8 - date: Thu, 11 Jun 2020 15:43:59 GMT - strict-transport-security: max-age=31536000; includeSubDomains; preload - transfer-encoding: chunked - x-content-type-options: nosniff - x-envoy-upstream-service-time: '47' - status: - code: 200 - message: OK - url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/d5480154-4b3a-4211-8ef6-3d75275d35bd?includeKeys=true -- request: - body: null - headers: - User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) - method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/d5480154-4b3a-4211-8ef6-3d75275d35bd?includeKeys=true - response: - body: - string: '{"modelInfo": {"modelId": "d5480154-4b3a-4211-8ef6-3d75275d35bd", "status": - "creating", "createdDateTime": "2020-06-11T15:43:44Z", "lastUpdatedDateTime": - "2020-06-11T15:43:44Z"}}' - headers: - apim-request-id: 3cf6e9d3-6e6e-4cc5-8bb1-833e4776e24c - content-type: application/json; charset=utf-8 - date: Thu, 11 Jun 2020 15:44:04 GMT - strict-transport-security: max-age=31536000; includeSubDomains; preload - transfer-encoding: chunked - x-content-type-options: nosniff - x-envoy-upstream-service-time: '17' - status: - code: 200 - message: OK - url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/d5480154-4b3a-4211-8ef6-3d75275d35bd?includeKeys=true -- request: - body: null - headers: - User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) - method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/d5480154-4b3a-4211-8ef6-3d75275d35bd?includeKeys=true - response: - body: - string: '{"modelInfo": {"modelId": "d5480154-4b3a-4211-8ef6-3d75275d35bd", "status": - "creating", "createdDateTime": "2020-06-11T15:43:44Z", "lastUpdatedDateTime": - "2020-06-11T15:43:44Z"}}' - headers: - apim-request-id: 898d6b61-7890-458f-93af-886e15ba1dbb - content-type: application/json; charset=utf-8 - date: Thu, 11 Jun 2020 15:44:10 GMT - strict-transport-security: max-age=31536000; includeSubDomains; preload - transfer-encoding: chunked - x-content-type-options: nosniff - x-envoy-upstream-service-time: '18' - status: - code: 200 - message: OK - url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/d5480154-4b3a-4211-8ef6-3d75275d35bd?includeKeys=true -- request: - body: null - headers: - User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) - method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/d5480154-4b3a-4211-8ef6-3d75275d35bd?includeKeys=true - response: - body: - string: '{"modelInfo": {"modelId": "d5480154-4b3a-4211-8ef6-3d75275d35bd", "status": - "ready", "createdDateTime": "2020-06-11T15:43:44Z", "lastUpdatedDateTime": - "2020-06-11T15:43:57Z"}, "keys": {"clusters": {"0": ["Additional Notes:", + string: '{"modelInfo": {"modelId": "a1d4e626-ba18-45f7-8241-52627b90ab37", "status": + "ready", "createdDateTime": "2020-07-10T18:44:16Z", "lastUpdatedDateTime": + "2020-07-10T18:44:26Z"}, "keys": {"clusters": {"0": ["Additional Notes:", "Address:", "Company Name:", "Company Phone:", "Dated As:", "Details", "Email:", "Hero Limited", "Name:", "Phone:", "Purchase Order", "Purchase Order #:", "Quantity", "SUBTOTAL", "Seattle, WA 93849 Phone:", "Shipped From", "Shipped @@ -176,113 +97,86 @@ interactions: 1, "errors": [], "status": "succeeded"}, {"documentName": "Form_5.jpg", "pages": 1, "errors": [], "status": "succeeded"}], "errors": []}}' headers: - apim-request-id: c27e8e17-2ab0-4964-8fac-31ae9f4473c3 + apim-request-id: 033d7b54-f7d5-40e2-b64a-6a4a12745a2d content-type: application/json; charset=utf-8 - date: Thu, 11 Jun 2020 15:44:15 GMT + date: Fri, 10 Jul 2020 18:44:31 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '43' + x-envoy-upstream-service-time: '17' status: code: 200 message: OK - url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/d5480154-4b3a-4211-8ef6-3d75275d35bd?includeKeys=true + url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/a1d4e626-ba18-45f7-8241-52627b90ab37?includeKeys=true - request: body: null headers: Accept: - application/json User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) method: POST - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/copyAuthorization + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/copyAuthorization response: body: - string: '{"modelId": "32deb51b-d225-403e-ad74-4dcc091338ad", "accessToken": - "redacted", "expirationDateTimeTicks": 1591976655}' + string: '{"modelId": "368dc3e3-e790-4c35-8ed0-e930eb83c095", "accessToken": + "redacted", "expirationDateTimeTicks": 1594493071}' headers: - apim-request-id: 4fd894f7-b870-4810-b8fd-a84aa59da86f + apim-request-id: 68736396-eb8d-4008-9f0b-be2f406ac124 content-type: application/json; charset=utf-8 - date: Thu, 11 Jun 2020 15:44:15 GMT - location: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/32deb51b-d225-403e-ad74-4dcc091338ad + date: Fri, 10 Jul 2020 18:44:31 GMT + location: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/368dc3e3-e790-4c35-8ed0-e930eb83c095 strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '21' + x-envoy-upstream-service-time: '29' status: code: 201 message: Created - url: https://centraluseuap.api.cognitive.microsoft.com//formrecognizer/v2.0-preview/custom/models/copyAuthorization + url: https://centraluseuap.api.cognitive.microsoft.com//formrecognizer/v2.0/custom/models/copyAuthorization - request: body: 'b''b\''{"targetResourceId": "resource_id", "targetResourceRegion": "eastus", - "copyAuthorization": {"modelId": "32deb51b-d225-403e-ad74-4dcc091338ad", "accessToken": - 00000000-0000-0000-0000-000000000000, "expirationDateTimeTicks": 1591976655}}\''''' + "copyAuthorization": {"modelId": "368dc3e3-e790-4c35-8ed0-e930eb83c095", "accessToken": + 00000000-0000-0000-0000-000000000000, "expirationDateTimeTicks": 1594493071}}\''''' headers: Content-Length: - '440' Content-Type: - application/json User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) method: POST - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/d5480154-4b3a-4211-8ef6-3d75275d35bd/copy + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/a1d4e626-ba18-45f7-8241-52627b90ab37/copy response: body: string: '' headers: - apim-request-id: c8662447-1ca6-49cb-a436-e61f5131e269 + apim-request-id: 436a5ef3-37fe-4d11-a106-3c2f580176fc content-length: '0' - date: Thu, 11 Jun 2020 15:44:15 GMT - operation-location: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/d5480154-4b3a-4211-8ef6-3d75275d35bd/copyresults/7ac947ad-992f-47cb-a4cd-b6a019c132fe + date: Fri, 10 Jul 2020 18:44:31 GMT + operation-location: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/a1d4e626-ba18-45f7-8241-52627b90ab37/copyresults/85bf159e-651f-4b13-8ec0-48e38d653c48 strict-transport-security: max-age=31536000; includeSubDomains; preload x-content-type-options: nosniff - x-envoy-upstream-service-time: '64' + x-envoy-upstream-service-time: '31' status: code: 202 message: Accepted - url: https://centraluseuap.api.cognitive.microsoft.com//formrecognizer/v2.0-preview/custom/models/d5480154-4b3a-4211-8ef6-3d75275d35bd/copy -- request: - body: null - headers: - User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) - method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/d5480154-4b3a-4211-8ef6-3d75275d35bd/copyresults/7ac947ad-992f-47cb-a4cd-b6a019c132fe - response: - body: - string: '{"status": "notStarted", "createdDateTime": "2020-06-11T15:44:16Z", - "lastUpdatedDateTime": "2020-06-11T15:44:16Z", "copyResult": {"modelId": "32deb51b-d225-403e-ad74-4dcc091338ad"}}' - headers: - apim-request-id: d2ac658f-2afd-4ce8-877e-c8a161259def - content-type: application/json; charset=utf-8 - date: Thu, 11 Jun 2020 15:44:20 GMT - strict-transport-security: max-age=31536000; includeSubDomains; preload - transfer-encoding: chunked - x-content-type-options: nosniff - x-envoy-upstream-service-time: '13' - status: - code: 200 - message: OK - url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/d5480154-4b3a-4211-8ef6-3d75275d35bd/copyresults/7ac947ad-992f-47cb-a4cd-b6a019c132fe + url: https://centraluseuap.api.cognitive.microsoft.com//formrecognizer/v2.0/custom/models/a1d4e626-ba18-45f7-8241-52627b90ab37/copy - request: body: null headers: User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/d5480154-4b3a-4211-8ef6-3d75275d35bd/copyresults/7ac947ad-992f-47cb-a4cd-b6a019c132fe + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/a1d4e626-ba18-45f7-8241-52627b90ab37/copyresults/85bf159e-651f-4b13-8ec0-48e38d653c48 response: body: - string: '{"status": "notStarted", "createdDateTime": "2020-06-11T15:44:16Z", - "lastUpdatedDateTime": "2020-06-11T15:44:16Z", "copyResult": {"modelId": "32deb51b-d225-403e-ad74-4dcc091338ad"}}' + string: '{"status": "notStarted", "createdDateTime": "2020-07-10T18:44:32Z", + "lastUpdatedDateTime": "2020-07-10T18:44:32Z", "copyResult": {"modelId": "368dc3e3-e790-4c35-8ed0-e930eb83c095"}}' headers: - apim-request-id: 91f78008-6941-4c43-b694-92d65d6b73d5 + apim-request-id: dc24be99-ebe4-4536-aedb-366d73badc31 content-type: application/json; charset=utf-8 - date: Thu, 11 Jun 2020 15:44:26 GMT + date: Fri, 10 Jul 2020 18:44:37 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff @@ -290,57 +184,32 @@ interactions: status: code: 200 message: OK - url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/d5480154-4b3a-4211-8ef6-3d75275d35bd/copyresults/7ac947ad-992f-47cb-a4cd-b6a019c132fe -- request: - body: null - headers: - User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) - method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/d5480154-4b3a-4211-8ef6-3d75275d35bd/copyresults/7ac947ad-992f-47cb-a4cd-b6a019c132fe - response: - body: - string: '{"status": "notStarted", "createdDateTime": "2020-06-11T15:44:16Z", - "lastUpdatedDateTime": "2020-06-11T15:44:16Z", "copyResult": {"modelId": "32deb51b-d225-403e-ad74-4dcc091338ad"}}' - headers: - apim-request-id: 1d14d25e-3fb9-4023-b88e-9127dd195c17 - content-type: application/json; charset=utf-8 - date: Thu, 11 Jun 2020 15:44:30 GMT - strict-transport-security: max-age=31536000; includeSubDomains; preload - transfer-encoding: chunked - x-content-type-options: nosniff - x-envoy-upstream-service-time: '11' - status: - code: 200 - message: OK - url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/d5480154-4b3a-4211-8ef6-3d75275d35bd/copyresults/7ac947ad-992f-47cb-a4cd-b6a019c132fe + url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/a1d4e626-ba18-45f7-8241-52627b90ab37/copyresults/85bf159e-651f-4b13-8ec0-48e38d653c48 - request: body: null headers: User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/d5480154-4b3a-4211-8ef6-3d75275d35bd/copyresults/7ac947ad-992f-47cb-a4cd-b6a019c132fe + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/a1d4e626-ba18-45f7-8241-52627b90ab37/copyresults/85bf159e-651f-4b13-8ec0-48e38d653c48 response: body: - string: '{"status": "failed", "createdDateTime": "2020-06-11T15:44:35.3540669Z", - "lastUpdatedDateTime": "2020-06-11T15:44:35.3540672Z", "copyResult": {"modelId": - "32deb51b-d225-403e-ad74-4dcc091338ad", "errors": [{"code": "AuthorizationError", + string: '{"status": "failed", "createdDateTime": "2020-07-10T18:44:38.4604736Z", + "lastUpdatedDateTime": "2020-07-10T18:44:38.4604739Z", "copyResult": {"modelId": + "368dc3e3-e790-4c35-8ed0-e930eb83c095", "errors": [{"code": "AuthorizationError", "message": "Could not retrieve authorization metadata. If this issue persists use a different target model to copy into."}]}}' headers: - apim-request-id: 85724236-2819-43fa-aafc-313afa16c03c + apim-request-id: 37f59d0b-23cc-40c2-b0fe-99b4cee0e59e content-type: application/json; charset=utf-8 - date: Thu, 11 Jun 2020 15:44:36 GMT + date: Fri, 10 Jul 2020 18:44:42 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '17' + x-envoy-upstream-service-time: '11' x-ms-cs-error-code: AuthorizationError status: code: 200 message: OK - url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/d5480154-4b3a-4211-8ef6-3d75275d35bd/copyresults/7ac947ad-992f-47cb-a4cd-b6a019c132fe + url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/a1d4e626-ba18-45f7-8241-52627b90ab37/copyresults/85bf159e-651f-4b13-8ec0-48e38d653c48 version: 1 diff --git a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_copy_model_async.test_copy_model_successful.yaml b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_copy_model_async.test_copy_model_successful.yaml index 6473b002a92d..7fd4c4d5ab79 100644 --- a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_copy_model_async.test_copy_model_successful.yaml +++ b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_copy_model_async.test_copy_model_successful.yaml @@ -8,88 +8,84 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) method: POST - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models response: body: string: '' headers: - apim-request-id: cf6decf6-7569-4d09-82ba-85a752996e6a + apim-request-id: 06435be2-1329-4aab-b2b7-7dbe63e2e041 content-length: '0' - date: Thu, 11 Jun 2020 15:41:27 GMT - location: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/1db66d68-a835-4576-b0a7-9d7af5f3ac60 + date: Fri, 10 Jul 2020 18:44:42 GMT + location: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/cfccdc29-a189-4470-bd1f-8bc31a58b1df strict-transport-security: max-age=31536000; includeSubDomains; preload x-content-type-options: nosniff - x-envoy-upstream-service-time: '176' + x-envoy-upstream-service-time: '39' status: code: 201 message: Created - url: https://centraluseuap.api.cognitive.microsoft.com//formrecognizer/v2.0-preview/custom/models + url: https://centraluseuap.api.cognitive.microsoft.com//formrecognizer/v2.0/custom/models - request: body: null headers: User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/1db66d68-a835-4576-b0a7-9d7af5f3ac60?includeKeys=true + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/cfccdc29-a189-4470-bd1f-8bc31a58b1df?includeKeys=true response: body: - string: '{"modelInfo": {"modelId": "1db66d68-a835-4576-b0a7-9d7af5f3ac60", "status": - "creating", "createdDateTime": "2020-06-11T15:41:27Z", "lastUpdatedDateTime": - "2020-06-11T15:41:27Z"}}' + string: '{"modelInfo": {"modelId": "cfccdc29-a189-4470-bd1f-8bc31a58b1df", "status": + "creating", "createdDateTime": "2020-07-10T18:44:42Z", "lastUpdatedDateTime": + "2020-07-10T18:44:42Z"}}' headers: - apim-request-id: 3607855b-92e2-4367-81e0-4270df359c49 + apim-request-id: 90b558e2-1f31-4e9d-b89a-a000351de8de content-type: application/json; charset=utf-8 - date: Thu, 11 Jun 2020 15:41:32 GMT + date: Fri, 10 Jul 2020 18:44:47 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '835' + x-envoy-upstream-service-time: '15' status: code: 200 message: OK - url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/1db66d68-a835-4576-b0a7-9d7af5f3ac60?includeKeys=true + url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/cfccdc29-a189-4470-bd1f-8bc31a58b1df?includeKeys=true - request: body: null headers: User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/1db66d68-a835-4576-b0a7-9d7af5f3ac60?includeKeys=true + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/cfccdc29-a189-4470-bd1f-8bc31a58b1df?includeKeys=true response: body: - string: '{"modelInfo": {"modelId": "1db66d68-a835-4576-b0a7-9d7af5f3ac60", "status": - "creating", "createdDateTime": "2020-06-11T15:41:27Z", "lastUpdatedDateTime": - "2020-06-11T15:41:27Z"}}' + string: '{"modelInfo": {"modelId": "cfccdc29-a189-4470-bd1f-8bc31a58b1df", "status": + "creating", "createdDateTime": "2020-07-10T18:44:42Z", "lastUpdatedDateTime": + "2020-07-10T18:44:42Z"}}' headers: - apim-request-id: 6c59e003-a4c3-43c5-9d2e-15a7e65f7f2d + apim-request-id: a87ed7b6-6075-4bba-999a-32b078d7d091 content-type: application/json; charset=utf-8 - date: Thu, 11 Jun 2020 15:41:37 GMT + date: Fri, 10 Jul 2020 18:44:52 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '142' + x-envoy-upstream-service-time: '49' status: code: 200 message: OK - url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/1db66d68-a835-4576-b0a7-9d7af5f3ac60?includeKeys=true + url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/cfccdc29-a189-4470-bd1f-8bc31a58b1df?includeKeys=true - request: body: null headers: User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/1db66d68-a835-4576-b0a7-9d7af5f3ac60?includeKeys=true + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/cfccdc29-a189-4470-bd1f-8bc31a58b1df?includeKeys=true response: body: - string: '{"modelInfo": {"modelId": "1db66d68-a835-4576-b0a7-9d7af5f3ac60", "status": - "ready", "createdDateTime": "2020-06-11T15:41:27Z", "lastUpdatedDateTime": - "2020-06-11T15:41:40Z"}, "keys": {"clusters": {"0": ["Additional Notes:", + string: '{"modelInfo": {"modelId": "cfccdc29-a189-4470-bd1f-8bc31a58b1df", "status": + "ready", "createdDateTime": "2020-07-10T18:44:42Z", "lastUpdatedDateTime": + "2020-07-10T18:44:53Z"}, "keys": {"clusters": {"0": ["Additional Notes:", "Address:", "Company Name:", "Company Phone:", "Dated As:", "Details", "Email:", "Hero Limited", "Name:", "Phone:", "Purchase Order", "Purchase Order #:", "Quantity", "SUBTOTAL", "Seattle, WA 93849 Phone:", "Shipped From", "Shipped @@ -101,161 +97,132 @@ interactions: 1, "errors": [], "status": "succeeded"}, {"documentName": "Form_5.jpg", "pages": 1, "errors": [], "status": "succeeded"}], "errors": []}}' headers: - apim-request-id: 53cb2531-f8a6-4635-8b95-4711ecdbafb7 + apim-request-id: e0415357-08e3-4979-b7a0-8df50324d966 content-type: application/json; charset=utf-8 - date: Thu, 11 Jun 2020 15:41:43 GMT + date: Fri, 10 Jul 2020 18:44:58 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '17' + x-envoy-upstream-service-time: '52' status: code: 200 message: OK - url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/1db66d68-a835-4576-b0a7-9d7af5f3ac60?includeKeys=true + url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/cfccdc29-a189-4470-bd1f-8bc31a58b1df?includeKeys=true - request: body: null headers: Accept: - application/json User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) method: POST - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/copyAuthorization + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/copyAuthorization response: body: - string: '{"modelId": "568d0f74-05b1-4165-9b45-eed9eec9aeb0", "accessToken": - "redacted", "expirationDateTimeTicks": 1591976503}' + string: '{"modelId": "b77cd47f-bc9e-4a64-bc90-928de19461c5", "accessToken": + "redacted", "expirationDateTimeTicks": 1594493098}' headers: - apim-request-id: 42bba8d9-4598-4ab8-835c-51e5327caf37 + apim-request-id: 721ad26d-2e6b-41aa-b1d8-84a641822665 content-type: application/json; charset=utf-8 - date: Thu, 11 Jun 2020 15:41:43 GMT - location: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/568d0f74-05b1-4165-9b45-eed9eec9aeb0 + date: Fri, 10 Jul 2020 18:44:58 GMT + location: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/b77cd47f-bc9e-4a64-bc90-928de19461c5 strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '58' + x-envoy-upstream-service-time: '55' status: code: 201 message: Created - url: https://centraluseuap.api.cognitive.microsoft.com//formrecognizer/v2.0-preview/custom/models/copyAuthorization + url: https://centraluseuap.api.cognitive.microsoft.com//formrecognizer/v2.0/custom/models/copyAuthorization - request: body: 'b''b\''{"targetResourceId": "resource_id", "targetResourceRegion": "centraluseuap", - "copyAuthorization": {"modelId": "568d0f74-05b1-4165-9b45-eed9eec9aeb0", "accessToken": - 00000000-0000-0000-0000-000000000000, "expirationDateTimeTicks": 1591976503}}\''''' + "copyAuthorization": {"modelId": "b77cd47f-bc9e-4a64-bc90-928de19461c5", "accessToken": + 00000000-0000-0000-0000-000000000000, "expirationDateTimeTicks": 1594493098}}\''''' headers: Content-Length: - '447' Content-Type: - application/json User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) method: POST - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/1db66d68-a835-4576-b0a7-9d7af5f3ac60/copy + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/cfccdc29-a189-4470-bd1f-8bc31a58b1df/copy response: body: string: '' headers: - apim-request-id: f1540e25-5975-4930-a709-870b77e4195d + apim-request-id: 087be649-1926-441e-b2e8-4f6bc7a48772 content-length: '0' - date: Thu, 11 Jun 2020 15:41:43 GMT - operation-location: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/1db66d68-a835-4576-b0a7-9d7af5f3ac60/copyresults/492f2cf5-f724-45a4-8068-9f20a00d325a + date: Fri, 10 Jul 2020 18:44:58 GMT + operation-location: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/cfccdc29-a189-4470-bd1f-8bc31a58b1df/copyresults/9c693e86-eaec-41b2-abff-482ef397cf58 strict-transport-security: max-age=31536000; includeSubDomains; preload x-content-type-options: nosniff - x-envoy-upstream-service-time: '67' + x-envoy-upstream-service-time: '197' status: code: 202 message: Accepted - url: https://centraluseuap.api.cognitive.microsoft.com//formrecognizer/v2.0-preview/custom/models/1db66d68-a835-4576-b0a7-9d7af5f3ac60/copy + url: https://centraluseuap.api.cognitive.microsoft.com//formrecognizer/v2.0/custom/models/cfccdc29-a189-4470-bd1f-8bc31a58b1df/copy - request: body: null headers: User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/1db66d68-a835-4576-b0a7-9d7af5f3ac60/copyresults/492f2cf5-f724-45a4-8068-9f20a00d325a + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/cfccdc29-a189-4470-bd1f-8bc31a58b1df/copyresults/9c693e86-eaec-41b2-abff-482ef397cf58 response: body: - string: '{"status": "notStarted", "createdDateTime": "2020-06-11T15:41:44Z", - "lastUpdatedDateTime": "2020-06-11T15:41:44Z", "copyResult": {"modelId": "568d0f74-05b1-4165-9b45-eed9eec9aeb0"}}' + string: '{"status": "notStarted", "createdDateTime": "2020-07-10T18:44:58Z", + "lastUpdatedDateTime": "2020-07-10T18:44:58Z", "copyResult": {"modelId": "b77cd47f-bc9e-4a64-bc90-928de19461c5"}}' headers: - apim-request-id: 18c1bf13-5bc0-4bd9-9177-002e76c75536 + apim-request-id: b2148cb5-04ca-4fb7-ad2d-28052abc9108 content-type: application/json; charset=utf-8 - date: Thu, 11 Jun 2020 15:41:48 GMT + date: Fri, 10 Jul 2020 18:45:03 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '13' + x-envoy-upstream-service-time: '12' status: code: 200 message: OK - url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/1db66d68-a835-4576-b0a7-9d7af5f3ac60/copyresults/492f2cf5-f724-45a4-8068-9f20a00d325a + url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/cfccdc29-a189-4470-bd1f-8bc31a58b1df/copyresults/9c693e86-eaec-41b2-abff-482ef397cf58 - request: body: null headers: User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/1db66d68-a835-4576-b0a7-9d7af5f3ac60/copyresults/492f2cf5-f724-45a4-8068-9f20a00d325a + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/cfccdc29-a189-4470-bd1f-8bc31a58b1df/copyresults/9c693e86-eaec-41b2-abff-482ef397cf58 response: body: - string: '{"status": "notStarted", "createdDateTime": "2020-06-11T15:41:44Z", - "lastUpdatedDateTime": "2020-06-11T15:41:44Z", "copyResult": {"modelId": "568d0f74-05b1-4165-9b45-eed9eec9aeb0"}}' + string: '{"status": "succeeded", "createdDateTime": "2020-07-10T18:45:08.5389575Z", + "lastUpdatedDateTime": "2020-07-10T18:45:08.5389579Z", "copyResult": {"modelId": + "b77cd47f-bc9e-4a64-bc90-928de19461c5"}}' headers: - apim-request-id: 932ccb99-1a6b-4855-b94f-27f6d2f5c7b7 + apim-request-id: 9d20126e-ac8e-4f2d-8b26-4e3b036d2f3e content-type: application/json; charset=utf-8 - date: Thu, 11 Jun 2020 15:41:55 GMT + date: Fri, 10 Jul 2020 18:45:08 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '987' + x-envoy-upstream-service-time: '10' status: code: 200 message: OK - url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/1db66d68-a835-4576-b0a7-9d7af5f3ac60/copyresults/492f2cf5-f724-45a4-8068-9f20a00d325a -- request: - body: null - headers: - User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) - method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/1db66d68-a835-4576-b0a7-9d7af5f3ac60/copyresults/492f2cf5-f724-45a4-8068-9f20a00d325a - response: - body: - string: '{"status": "succeeded", "createdDateTime": "2020-06-11T15:41:56.1128979Z", - "lastUpdatedDateTime": "2020-06-11T15:41:56.1128982Z", "copyResult": {"modelId": - "568d0f74-05b1-4165-9b45-eed9eec9aeb0"}}' - headers: - apim-request-id: 590afbcf-9cf6-4dc1-9916-c9b0fcc802b6 - content-type: application/json; charset=utf-8 - date: Thu, 11 Jun 2020 15:42:00 GMT - strict-transport-security: max-age=31536000; includeSubDomains; preload - transfer-encoding: chunked - x-content-type-options: nosniff - x-envoy-upstream-service-time: '11' - status: - code: 200 - message: OK - url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/1db66d68-a835-4576-b0a7-9d7af5f3ac60/copyresults/492f2cf5-f724-45a4-8068-9f20a00d325a + url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/cfccdc29-a189-4470-bd1f-8bc31a58b1df/copyresults/9c693e86-eaec-41b2-abff-482ef397cf58 - request: body: null headers: Accept: - application/json User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/568d0f74-05b1-4165-9b45-eed9eec9aeb0?includeKeys=true + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/b77cd47f-bc9e-4a64-bc90-928de19461c5?includeKeys=true response: body: - string: '{"modelInfo": {"modelId": "568d0f74-05b1-4165-9b45-eed9eec9aeb0", "status": - "ready", "createdDateTime": "2020-06-11T15:41:27Z", "lastUpdatedDateTime": - "2020-06-11T15:41:40Z"}, "keys": {"clusters": {"0": ["Additional Notes:", + string: '{"modelInfo": {"modelId": "b77cd47f-bc9e-4a64-bc90-928de19461c5", "status": + "ready", "createdDateTime": "2020-07-10T18:44:42Z", "lastUpdatedDateTime": + "2020-07-10T18:44:53Z"}, "keys": {"clusters": {"0": ["Additional Notes:", "Address:", "Company Name:", "Company Phone:", "Dated As:", "Details", "Email:", "Hero Limited", "Name:", "Phone:", "Purchase Order", "Purchase Order #:", "Quantity", "SUBTOTAL", "Seattle, WA 93849 Phone:", "Shipped From", "Shipped @@ -267,15 +234,15 @@ interactions: 1, "errors": [], "status": "succeeded"}, {"documentName": "Form_5.jpg", "pages": 1, "errors": [], "status": "succeeded"}], "errors": []}}' headers: - apim-request-id: 899e7088-80c4-4842-a476-f2857f03f51b + apim-request-id: 0bbfc592-9665-4a0b-97c2-fbef80c7a48f content-type: application/json; charset=utf-8 - date: Thu, 11 Jun 2020 15:42:02 GMT + date: Fri, 10 Jul 2020 18:45:08 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '2381' + x-envoy-upstream-service-time: '18' status: code: 200 message: OK - url: https://centraluseuap.api.cognitive.microsoft.com//formrecognizer/v2.0-preview/custom/models/568d0f74-05b1-4165-9b45-eed9eec9aeb0?includeKeys=true + url: https://centraluseuap.api.cognitive.microsoft.com//formrecognizer/v2.0/custom/models/b77cd47f-bc9e-4a64-bc90-928de19461c5?includeKeys=true version: 1 diff --git a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_copy_model_async.test_copy_model_transform.yaml b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_copy_model_async.test_copy_model_transform.yaml index b2184e559ff6..ba4d69c24c89 100644 --- a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_copy_model_async.test_copy_model_transform.yaml +++ b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_copy_model_async.test_copy_model_transform.yaml @@ -8,113 +8,60 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) method: POST - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models response: body: string: '' headers: - apim-request-id: d7547a59-55ac-4d46-930c-50f3c17acccf + apim-request-id: ac31a063-5bf8-4f11-806a-d2a4df9ca109 content-length: '0' - date: Thu, 11 Jun 2020 15:42:03 GMT - location: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/a81575ae-1e9f-4622-95df-2fd6e9fbacf2 + date: Fri, 10 Jul 2020 18:45:08 GMT + location: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/ca944d89-3922-444e-a26f-624593d4cb70 strict-transport-security: max-age=31536000; includeSubDomains; preload x-content-type-options: nosniff - x-envoy-upstream-service-time: '70' + x-envoy-upstream-service-time: '57' status: code: 201 message: Created - url: https://centraluseuap.api.cognitive.microsoft.com//formrecognizer/v2.0-preview/custom/models + url: https://centraluseuap.api.cognitive.microsoft.com//formrecognizer/v2.0/custom/models - request: body: null headers: User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/a81575ae-1e9f-4622-95df-2fd6e9fbacf2?includeKeys=true + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/ca944d89-3922-444e-a26f-624593d4cb70?includeKeys=true response: body: - string: '{"modelInfo": {"modelId": "a81575ae-1e9f-4622-95df-2fd6e9fbacf2", "status": - "creating", "createdDateTime": "2020-06-11T15:42:03Z", "lastUpdatedDateTime": - "2020-06-11T15:42:03Z"}}' + string: '{"modelInfo": {"modelId": "ca944d89-3922-444e-a26f-624593d4cb70", "status": + "creating", "createdDateTime": "2020-07-10T18:45:09Z", "lastUpdatedDateTime": + "2020-07-10T18:45:09Z"}}' headers: - apim-request-id: ad887ab0-6ba0-49c7-942b-94101298a0f9 + apim-request-id: 30e3ddba-4979-4a22-b267-56d31025b90c content-type: application/json; charset=utf-8 - date: Thu, 11 Jun 2020 15:42:08 GMT + date: Fri, 10 Jul 2020 18:45:14 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '19' + x-envoy-upstream-service-time: '15' status: code: 200 message: OK - url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/a81575ae-1e9f-4622-95df-2fd6e9fbacf2?includeKeys=true + url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/ca944d89-3922-444e-a26f-624593d4cb70?includeKeys=true - request: body: null headers: User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/a81575ae-1e9f-4622-95df-2fd6e9fbacf2?includeKeys=true + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/ca944d89-3922-444e-a26f-624593d4cb70?includeKeys=true response: body: - string: '{"modelInfo": {"modelId": "a81575ae-1e9f-4622-95df-2fd6e9fbacf2", "status": - "creating", "createdDateTime": "2020-06-11T15:42:03Z", "lastUpdatedDateTime": - "2020-06-11T15:42:03Z"}}' - headers: - apim-request-id: 65b51ccc-0a3e-4604-8294-b6a104316f68 - content-type: application/json; charset=utf-8 - date: Thu, 11 Jun 2020 15:42:13 GMT - strict-transport-security: max-age=31536000; includeSubDomains; preload - transfer-encoding: chunked - x-content-type-options: nosniff - x-envoy-upstream-service-time: '16' - status: - code: 200 - message: OK - url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/a81575ae-1e9f-4622-95df-2fd6e9fbacf2?includeKeys=true -- request: - body: null - headers: - User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) - method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/a81575ae-1e9f-4622-95df-2fd6e9fbacf2?includeKeys=true - response: - body: - string: '{"modelInfo": {"modelId": "a81575ae-1e9f-4622-95df-2fd6e9fbacf2", "status": - "creating", "createdDateTime": "2020-06-11T15:42:03Z", "lastUpdatedDateTime": - "2020-06-11T15:42:03Z"}}' - headers: - apim-request-id: bfc2ec36-e43d-46da-9b6c-8d30eb0b2487 - content-type: application/json; charset=utf-8 - date: Thu, 11 Jun 2020 15:42:19 GMT - strict-transport-security: max-age=31536000; includeSubDomains; preload - transfer-encoding: chunked - x-content-type-options: nosniff - x-envoy-upstream-service-time: '990' - status: - code: 200 - message: OK - url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/a81575ae-1e9f-4622-95df-2fd6e9fbacf2?includeKeys=true -- request: - body: null - headers: - User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) - method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/a81575ae-1e9f-4622-95df-2fd6e9fbacf2?includeKeys=true - response: - body: - string: '{"modelInfo": {"modelId": "a81575ae-1e9f-4622-95df-2fd6e9fbacf2", "status": - "ready", "createdDateTime": "2020-06-11T15:42:03Z", "lastUpdatedDateTime": - "2020-06-11T15:42:19Z"}, "keys": {"clusters": {"0": ["Additional Notes:", + string: '{"modelInfo": {"modelId": "ca944d89-3922-444e-a26f-624593d4cb70", "status": + "ready", "createdDateTime": "2020-07-10T18:45:09Z", "lastUpdatedDateTime": + "2020-07-10T18:45:19Z"}, "keys": {"clusters": {"0": ["Additional Notes:", "Address:", "Company Name:", "Company Phone:", "Dated As:", "Details", "Email:", "Hero Limited", "Name:", "Phone:", "Purchase Order", "Purchase Order #:", "Quantity", "SUBTOTAL", "Seattle, WA 93849 Phone:", "Shipped From", "Shipped @@ -126,89 +73,86 @@ interactions: 1, "errors": [], "status": "succeeded"}, {"documentName": "Form_5.jpg", "pages": 1, "errors": [], "status": "succeeded"}], "errors": []}}' headers: - apim-request-id: 245c3516-906c-41ce-b1be-668d2b0a6851 + apim-request-id: c4d48a5e-03e6-4688-b885-37af8194ec5e content-type: application/json; charset=utf-8 - date: Thu, 11 Jun 2020 15:42:24 GMT + date: Fri, 10 Jul 2020 18:45:19 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '47' + x-envoy-upstream-service-time: '16' status: code: 200 message: OK - url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/a81575ae-1e9f-4622-95df-2fd6e9fbacf2?includeKeys=true + url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/ca944d89-3922-444e-a26f-624593d4cb70?includeKeys=true - request: body: null headers: Accept: - application/json User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) method: POST - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/copyAuthorization + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/copyAuthorization response: body: - string: '{"modelId": "cc78c414-dff7-4576-be60-97b2f7edd30d", "accessToken": - "redacted", "expirationDateTimeTicks": 1591976545}' + string: '{"modelId": "6a65b203-2fa5-42ae-9977-8f9f71acfaea", "accessToken": + "redacted", "expirationDateTimeTicks": 1594493119}' headers: - apim-request-id: c3f127f0-4297-4167-af48-ef26dcbee099 + apim-request-id: 5a963284-520e-4ad1-a6cd-9ef0092a1597 content-type: application/json; charset=utf-8 - date: Thu, 11 Jun 2020 15:42:24 GMT - location: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/cc78c414-dff7-4576-be60-97b2f7edd30d + date: Fri, 10 Jul 2020 18:45:19 GMT + location: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/6a65b203-2fa5-42ae-9977-8f9f71acfaea strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '79' + x-envoy-upstream-service-time: '24' status: code: 201 message: Created - url: https://centraluseuap.api.cognitive.microsoft.com//formrecognizer/v2.0-preview/custom/models/copyAuthorization + url: https://centraluseuap.api.cognitive.microsoft.com//formrecognizer/v2.0/custom/models/copyAuthorization - request: body: 'b''b\''{"targetResourceId": "resource_id", "targetResourceRegion": "centraluseuap", - "copyAuthorization": {"modelId": "cc78c414-dff7-4576-be60-97b2f7edd30d", "accessToken": - 00000000-0000-0000-0000-000000000000, "expirationDateTimeTicks": 1591976545}}\''''' + "copyAuthorization": {"modelId": "6a65b203-2fa5-42ae-9977-8f9f71acfaea", "accessToken": + 00000000-0000-0000-0000-000000000000, "expirationDateTimeTicks": 1594493119}}\''''' headers: Content-Length: - '447' Content-Type: - application/json User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) method: POST - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/a81575ae-1e9f-4622-95df-2fd6e9fbacf2/copy + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/ca944d89-3922-444e-a26f-624593d4cb70/copy response: body: string: '' headers: - apim-request-id: 96c1e624-928d-4217-a6a1-8d3699d4e155 + apim-request-id: 5e89121f-56d7-49cd-960a-51640859ee2f content-length: '0' - date: Thu, 11 Jun 2020 15:42:24 GMT - operation-location: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/a81575ae-1e9f-4622-95df-2fd6e9fbacf2/copyresults/c79d0ebc-dc4a-4389-a92b-a7f9db632842 + date: Fri, 10 Jul 2020 18:45:20 GMT + operation-location: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/ca944d89-3922-444e-a26f-624593d4cb70/copyresults/5efb3738-585d-4a94-8889-e94edc4e2bb5 strict-transport-security: max-age=31536000; includeSubDomains; preload x-content-type-options: nosniff - x-envoy-upstream-service-time: '109' + x-envoy-upstream-service-time: '1444' status: code: 202 message: Accepted - url: https://centraluseuap.api.cognitive.microsoft.com//formrecognizer/v2.0-preview/custom/models/a81575ae-1e9f-4622-95df-2fd6e9fbacf2/copy + url: https://centraluseuap.api.cognitive.microsoft.com//formrecognizer/v2.0/custom/models/ca944d89-3922-444e-a26f-624593d4cb70/copy - request: body: null headers: User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/a81575ae-1e9f-4622-95df-2fd6e9fbacf2/copyresults/c79d0ebc-dc4a-4389-a92b-a7f9db632842 + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/ca944d89-3922-444e-a26f-624593d4cb70/copyresults/5efb3738-585d-4a94-8889-e94edc4e2bb5 response: body: - string: '{"status": "notStarted", "createdDateTime": "2020-06-11T15:42:25Z", - "lastUpdatedDateTime": "2020-06-11T15:42:25Z", "copyResult": {"modelId": "cc78c414-dff7-4576-be60-97b2f7edd30d"}}' + string: '{"status": "notStarted", "createdDateTime": "2020-07-10T18:45:20Z", + "lastUpdatedDateTime": "2020-07-10T18:45:20Z", "copyResult": {"modelId": "6a65b203-2fa5-42ae-9977-8f9f71acfaea"}}' headers: - apim-request-id: 889f35c0-6296-42f4-9951-ecf6c013a81a + apim-request-id: 16bac132-3089-42d0-b7ca-f68d9c33dff4 content-type: application/json; charset=utf-8 - date: Thu, 11 Jun 2020 15:42:30 GMT + date: Fri, 10 Jul 2020 18:45:26 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff @@ -216,30 +160,75 @@ interactions: status: code: 200 message: OK - url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/a81575ae-1e9f-4622-95df-2fd6e9fbacf2/copyresults/c79d0ebc-dc4a-4389-a92b-a7f9db632842 + url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/ca944d89-3922-444e-a26f-624593d4cb70/copyresults/5efb3738-585d-4a94-8889-e94edc4e2bb5 - request: body: null headers: User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/a81575ae-1e9f-4622-95df-2fd6e9fbacf2/copyresults/c79d0ebc-dc4a-4389-a92b-a7f9db632842 + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/ca944d89-3922-444e-a26f-624593d4cb70/copyresults/5efb3738-585d-4a94-8889-e94edc4e2bb5 response: body: - string: '{"status": "succeeded", "createdDateTime": "2020-06-11T15:42:31.4341575Z", - "lastUpdatedDateTime": "2020-06-11T15:42:31.4341578Z", "copyResult": {"modelId": - "cc78c414-dff7-4576-be60-97b2f7edd30d"}}' + string: '{"status": "notStarted", "createdDateTime": "2020-07-10T18:45:20Z", + "lastUpdatedDateTime": "2020-07-10T18:45:20Z", "copyResult": {"modelId": "6a65b203-2fa5-42ae-9977-8f9f71acfaea"}}' headers: - apim-request-id: 1d3e180c-cec4-4de5-b217-d6c1a7b9938a + apim-request-id: 561386ed-3d8e-4573-a90f-fb386c900d3d content-type: application/json; charset=utf-8 - date: Thu, 11 Jun 2020 15:42:35 GMT + date: Fri, 10 Jul 2020 18:45:31 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '13' + x-envoy-upstream-service-time: '10' + status: + code: 200 + message: OK + url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/ca944d89-3922-444e-a26f-624593d4cb70/copyresults/5efb3738-585d-4a94-8889-e94edc4e2bb5 +- request: + body: null + headers: + User-Agent: + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + method: GET + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/ca944d89-3922-444e-a26f-624593d4cb70/copyresults/5efb3738-585d-4a94-8889-e94edc4e2bb5 + response: + body: + string: '{"status": "notStarted", "createdDateTime": "2020-07-10T18:45:20Z", + "lastUpdatedDateTime": "2020-07-10T18:45:20Z", "copyResult": {"modelId": "6a65b203-2fa5-42ae-9977-8f9f71acfaea"}}' + headers: + apim-request-id: 56f94153-18db-48ce-b15e-7871c6694aa8 + content-type: application/json; charset=utf-8 + date: Fri, 10 Jul 2020 18:45:36 GMT + strict-transport-security: max-age=31536000; includeSubDomains; preload + transfer-encoding: chunked + x-content-type-options: nosniff + x-envoy-upstream-service-time: '11' + status: + code: 200 + message: OK + url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/ca944d89-3922-444e-a26f-624593d4cb70/copyresults/5efb3738-585d-4a94-8889-e94edc4e2bb5 +- request: + body: null + headers: + User-Agent: + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + method: GET + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/ca944d89-3922-444e-a26f-624593d4cb70/copyresults/5efb3738-585d-4a94-8889-e94edc4e2bb5 + response: + body: + string: '{"status": "succeeded", "createdDateTime": "2020-07-10T18:45:38.6223767Z", + "lastUpdatedDateTime": "2020-07-10T18:45:38.6223769Z", "copyResult": {"modelId": + "6a65b203-2fa5-42ae-9977-8f9f71acfaea"}}' + headers: + apim-request-id: b72c0640-bd5d-4e95-b970-c63f004f829e + content-type: application/json; charset=utf-8 + date: Fri, 10 Jul 2020 18:45:41 GMT + strict-transport-security: max-age=31536000; includeSubDomains; preload + transfer-encoding: chunked + x-content-type-options: nosniff + x-envoy-upstream-service-time: '9' status: code: 200 message: OK - url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/a81575ae-1e9f-4622-95df-2fd6e9fbacf2/copyresults/c79d0ebc-dc4a-4389-a92b-a7f9db632842 + url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/ca944d89-3922-444e-a26f-624593d4cb70/copyresults/5efb3738-585d-4a94-8889-e94edc4e2bb5 version: 1 diff --git a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_custom_forms.test_authentication_bad_key.yaml b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_custom_forms.test_authentication_bad_key.yaml index 53aade171d17..9ffa05f64e0f 100644 --- a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_custom_forms.test_authentication_bad_key.yaml +++ b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_custom_forms.test_authentication_bad_key.yaml @@ -13,21 +13,30 @@ interactions: Content-Type: - image/jpeg User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) method: POST - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/xx/analyze?includeTextDetails=false + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/xx/analyze?includeTextDetails=false response: body: string: '{"error": {"code": "401", "message": "Access denied due to invalid subscription key or wrong API endpoint. Make sure to provide a valid key for an active subscription and use a correct regional API endpoint for your resource."}}' headers: + apim-request-id: + - 2f76ee2a-5f45-4dc3-ba8f-712ce7818a0e content-length: - - '224' + - '225' + content-type: + - application/json date: - - Thu, 11 Jun 2020 15:42:35 GMT + - Fri, 10 Jul 2020 18:45:42 GMT + strict-transport-security: + - max-age=31536000; includeSubDomains; preload + www-authenticate: + - AzureApiManagementKey realm="https://centraluseuap.api.cognitive.microsoft.com/formrecognizer",name="Ocp-Apim-Subscription-Key",type="header" + x-content-type-options: + - nosniff status: code: 401 - message: PermissionDenied + message: Access Denied version: 1 diff --git a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_custom_forms.test_custom_form_damaged_file.yaml b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_custom_forms.test_custom_form_damaged_file.yaml index 137849f38f22..c66cc368646e 100644 --- a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_custom_forms.test_custom_form_damaged_file.yaml +++ b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_custom_forms.test_custom_form_damaged_file.yaml @@ -14,28 +14,27 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) method: POST - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models response: body: string: '' headers: apim-request-id: - - 4dca65dd-7679-4c15-9d22-68e40f7a341b + - 0434ba73-f8bb-4aee-aad7-7d2c59662f4f content-length: - '0' date: - - Thu, 11 Jun 2020 15:41:12 GMT + - Fri, 10 Jul 2020 18:46:17 GMT location: - - https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/462f9b1d-fb7a-4955-93ef-4a1f20ef8091 + - https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/c64f76a9-d947-4825-ad57-4636927d9e5d strict-transport-security: - max-age=31536000; includeSubDomains; preload x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '247' + - '69' status: code: 201 message: Created @@ -49,22 +48,21 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/462f9b1d-fb7a-4955-93ef-4a1f20ef8091?includeKeys=true + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/c64f76a9-d947-4825-ad57-4636927d9e5d?includeKeys=true response: body: - string: '{"modelInfo": {"modelId": "462f9b1d-fb7a-4955-93ef-4a1f20ef8091", "status": - "creating", "createdDateTime": "2020-06-11T15:41:12Z", "lastUpdatedDateTime": - "2020-06-11T15:41:12Z"}}' + string: '{"modelInfo": {"modelId": "c64f76a9-d947-4825-ad57-4636927d9e5d", "status": + "creating", "createdDateTime": "2020-07-10T18:46:18Z", "lastUpdatedDateTime": + "2020-07-10T18:46:18Z"}}' headers: apim-request-id: - - d7b821cf-840f-455e-aab6-a13added2b5c + - 1d1c9e7e-68ed-4ff9-83b9-f9157fd15375 content-type: - application/json; charset=utf-8 date: - - Thu, 11 Jun 2020 15:41:17 GMT + - Fri, 10 Jul 2020 18:46:22 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -72,7 +70,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '76' + - '51' status: code: 200 message: OK @@ -86,22 +84,21 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/462f9b1d-fb7a-4955-93ef-4a1f20ef8091?includeKeys=true + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/c64f76a9-d947-4825-ad57-4636927d9e5d?includeKeys=true response: body: - string: '{"modelInfo": {"modelId": "462f9b1d-fb7a-4955-93ef-4a1f20ef8091", "status": - "creating", "createdDateTime": "2020-06-11T15:41:12Z", "lastUpdatedDateTime": - "2020-06-11T15:41:12Z"}}' + string: '{"modelInfo": {"modelId": "c64f76a9-d947-4825-ad57-4636927d9e5d", "status": + "creating", "createdDateTime": "2020-07-10T18:46:18Z", "lastUpdatedDateTime": + "2020-07-10T18:46:18Z"}}' headers: apim-request-id: - - 40e5064a-0ff2-4fd6-8c96-5b52f40009e9 + - 73be471f-5204-400a-90d7-f741e320337c content-type: - application/json; charset=utf-8 date: - - Thu, 11 Jun 2020 15:41:23 GMT + - Fri, 10 Jul 2020 18:46:28 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -109,7 +106,115 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '51' + - '19' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + method: GET + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/c64f76a9-d947-4825-ad57-4636927d9e5d?includeKeys=true + response: + body: + string: '{"modelInfo": {"modelId": "c64f76a9-d947-4825-ad57-4636927d9e5d", "status": + "creating", "createdDateTime": "2020-07-10T18:46:18Z", "lastUpdatedDateTime": + "2020-07-10T18:46:18Z"}}' + headers: + apim-request-id: + - b476325b-ebad-46de-a950-3a39fba9972a + content-type: + - application/json; charset=utf-8 + date: + - Fri, 10 Jul 2020 18:46:33 GMT + strict-transport-security: + - max-age=31536000; includeSubDomains; preload + transfer-encoding: + - chunked + x-content-type-options: + - nosniff + x-envoy-upstream-service-time: + - '19' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + method: GET + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/c64f76a9-d947-4825-ad57-4636927d9e5d?includeKeys=true + response: + body: + string: '{"modelInfo": {"modelId": "c64f76a9-d947-4825-ad57-4636927d9e5d", "status": + "creating", "createdDateTime": "2020-07-10T18:46:18Z", "lastUpdatedDateTime": + "2020-07-10T18:46:18Z"}}' + headers: + apim-request-id: + - e8705275-f01f-4583-b2e1-5b02c62314b3 + content-type: + - application/json; charset=utf-8 + date: + - Fri, 10 Jul 2020 18:46:38 GMT + strict-transport-security: + - max-age=31536000; includeSubDomains; preload + transfer-encoding: + - chunked + x-content-type-options: + - nosniff + x-envoy-upstream-service-time: + - '50' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + method: GET + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/c64f76a9-d947-4825-ad57-4636927d9e5d?includeKeys=true + response: + body: + string: '{"modelInfo": {"modelId": "c64f76a9-d947-4825-ad57-4636927d9e5d", "status": + "creating", "createdDateTime": "2020-07-10T18:46:18Z", "lastUpdatedDateTime": + "2020-07-10T18:46:18Z"}}' + headers: + apim-request-id: + - b93efeae-6ff1-4b2e-a14e-b9c4d8bbc886 + content-type: + - application/json; charset=utf-8 + date: + - Fri, 10 Jul 2020 18:46:43 GMT + strict-transport-security: + - max-age=31536000; includeSubDomains; preload + transfer-encoding: + - chunked + x-content-type-options: + - nosniff + x-envoy-upstream-service-time: + - '48' status: code: 200 message: OK @@ -123,22 +228,21 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/462f9b1d-fb7a-4955-93ef-4a1f20ef8091?includeKeys=true + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/c64f76a9-d947-4825-ad57-4636927d9e5d?includeKeys=true response: body: - string: '{"modelInfo": {"modelId": "462f9b1d-fb7a-4955-93ef-4a1f20ef8091", "status": - "creating", "createdDateTime": "2020-06-11T15:41:12Z", "lastUpdatedDateTime": - "2020-06-11T15:41:12Z"}}' + string: '{"modelInfo": {"modelId": "c64f76a9-d947-4825-ad57-4636927d9e5d", "status": + "creating", "createdDateTime": "2020-07-10T18:46:18Z", "lastUpdatedDateTime": + "2020-07-10T18:46:18Z"}}' headers: apim-request-id: - - 83621417-d892-4340-adb0-39f47c2bf59b + - 5ba7e2f0-80b2-4a22-899b-6899a1039f04 content-type: - application/json; charset=utf-8 date: - - Thu, 11 Jun 2020 15:41:28 GMT + - Fri, 10 Jul 2020 18:46:49 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -146,7 +250,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '53' + - '19' status: code: 200 message: OK @@ -160,15 +264,14 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/462f9b1d-fb7a-4955-93ef-4a1f20ef8091?includeKeys=true + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/c64f76a9-d947-4825-ad57-4636927d9e5d?includeKeys=true response: body: - string: '{"modelInfo": {"modelId": "462f9b1d-fb7a-4955-93ef-4a1f20ef8091", "status": - "ready", "createdDateTime": "2020-06-11T15:41:12Z", "lastUpdatedDateTime": - "2020-06-11T15:41:33Z"}, "keys": {"clusters": {"0": ["Additional Notes:", + string: '{"modelInfo": {"modelId": "c64f76a9-d947-4825-ad57-4636927d9e5d", "status": + "ready", "createdDateTime": "2020-07-10T18:46:18Z", "lastUpdatedDateTime": + "2020-07-10T18:46:51Z"}, "keys": {"clusters": {"0": ["Additional Notes:", "Address:", "Company Name:", "Company Phone:", "Dated As:", "Details", "Email:", "Hero Limited", "Name:", "Phone:", "Purchase Order", "Purchase Order #:", "Quantity", "SUBTOTAL", "Seattle, WA 93849 Phone:", "Shipped From", "Shipped @@ -181,11 +284,11 @@ interactions: 1, "errors": [], "status": "succeeded"}], "errors": []}}' headers: apim-request-id: - - 4e01f9bd-08d5-4333-9141-547534c3722e + - 2c39391d-cb91-4907-a8d9-d1242d3f29bf content-type: - application/json; charset=utf-8 date: - - Thu, 11 Jun 2020 15:41:33 GMT + - Fri, 10 Jul 2020 18:46:54 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -193,7 +296,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '77' + - '17' status: code: 200 message: OK @@ -211,28 +314,27 @@ interactions: Content-Type: - application/pdf User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) method: POST - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/462f9b1d-fb7a-4955-93ef-4a1f20ef8091/analyze?includeTextDetails=false + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/c64f76a9-d947-4825-ad57-4636927d9e5d/analyze?includeTextDetails=false response: body: string: '' headers: apim-request-id: - - 122664f9-3c3c-4acc-8a2b-ae61e8aad6c2 + - 3835f527-578b-4898-baa4-a0caea668a4d content-length: - '0' date: - - Thu, 11 Jun 2020 15:41:33 GMT + - Fri, 10 Jul 2020 18:46:54 GMT operation-location: - - https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/462f9b1d-fb7a-4955-93ef-4a1f20ef8091/analyzeresults/e6c57f6e-3db0-469e-92ca-83a5ae075ccc + - https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/c64f76a9-d947-4825-ad57-4636927d9e5d/analyzeresults/1b95d6ab-4000-4702-909f-fe607e78bdd4 strict-transport-security: - max-age=31536000; includeSubDomains; preload x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '326' + - '47' status: code: 202 message: Accepted @@ -246,31 +348,30 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/462f9b1d-fb7a-4955-93ef-4a1f20ef8091/analyzeresults/e6c57f6e-3db0-469e-92ca-83a5ae075ccc + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/c64f76a9-d947-4825-ad57-4636927d9e5d/analyzeresults/1b95d6ab-4000-4702-909f-fe607e78bdd4 response: body: - string: '{"status": "failed", "createdDateTime": "2020-06-11T15:41:34Z", "lastUpdatedDateTime": - "2020-06-11T15:41:36Z", "analyzeResult": {"version": "2.0.0", "readResults": + string: '{"status": "failed", "createdDateTime": "2020-07-10T18:46:54Z", "lastUpdatedDateTime": + "2020-07-10T18:46:56Z", "analyzeResult": {"version": "2.0.0", "readResults": [], "pageResults": [], "documentResults": [], "errors": [{"code": "2005", "message": "Unable to read file."}]}}' headers: apim-request-id: - - fec6f833-8104-4509-b37d-110efc50d6d1 + - 58b0d45b-79d6-4fe9-b157-da648e800df9 content-length: - '275' content-type: - application/json; charset=utf-8 date: - - Thu, 11 Jun 2020 15:41:38 GMT + - Fri, 10 Jul 2020 18:46:58 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '67' + - '20' x-ms-cs-error-code: - '2005' status: diff --git a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_custom_forms.test_custom_form_labeled.yaml b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_custom_forms.test_custom_form_labeled.yaml index ded05bc6e035..3fb2c877aa7c 100644 --- a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_custom_forms.test_custom_form_labeled.yaml +++ b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_custom_forms.test_custom_form_labeled.yaml @@ -14,28 +14,27 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) method: POST - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models response: body: string: '' headers: apim-request-id: - - d11adc05-ef60-4799-bf69-4a3ec150c688 + - 48487ef8-fcf2-4ddf-9abf-63089ba7f15e content-length: - '0' date: - - Thu, 11 Jun 2020 15:41:39 GMT + - Fri, 10 Jul 2020 18:42:09 GMT location: - - https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/0833aee6-9c8f-4822-8e45-a174c2c0c3a8 + - https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/67f42e15-4d6e-4a01-b92d-a0cb9b0414cf strict-transport-security: - max-age=31536000; includeSubDomains; preload x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '95' + - '431' status: code: 201 message: Created @@ -49,15 +48,14 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/0833aee6-9c8f-4822-8e45-a174c2c0c3a8?includeKeys=true + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/67f42e15-4d6e-4a01-b92d-a0cb9b0414cf?includeKeys=true response: body: - string: '{"modelInfo": {"modelId": "0833aee6-9c8f-4822-8e45-a174c2c0c3a8", "status": - "ready", "createdDateTime": "2020-06-11T15:41:40Z", "lastUpdatedDateTime": - "2020-06-11T15:41:42Z"}, "trainResult": {"averageModelAccuracy": 0.973, "trainingDocuments": + string: '{"modelInfo": {"modelId": "67f42e15-4d6e-4a01-b92d-a0cb9b0414cf", "status": + "ready", "createdDateTime": "2020-07-10T18:42:10Z", "lastUpdatedDateTime": + "2020-07-10T18:42:13Z"}, "trainResult": {"averageModelAccuracy": 0.973, "trainingDocuments": [{"documentName": "Form_1.jpg", "pages": 1, "status": "succeeded"}, {"documentName": "Form_2.jpg", "pages": 1, "status": "succeeded"}, {"documentName": "Form_3.jpg", "pages": 1, "status": "succeeded"}, {"documentName": "Form_4.jpg", "pages": @@ -74,11 +72,11 @@ interactions: "errors": []}}' headers: apim-request-id: - - 2719ed10-6005-49c8-b6b9-daec819d6ace + - f81040b7-2151-4edb-b833-ef34d2f3f039 content-type: - application/json; charset=utf-8 date: - - Thu, 11 Jun 2020 15:41:45 GMT + - Fri, 10 Jul 2020 18:42:15 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -8513,28 +8511,27 @@ interactions: Content-Type: - image/jpeg User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) method: POST - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/0833aee6-9c8f-4822-8e45-a174c2c0c3a8/analyze?includeTextDetails=false + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/67f42e15-4d6e-4a01-b92d-a0cb9b0414cf/analyze?includeTextDetails=false response: body: string: '' headers: apim-request-id: - - 496a78e6-b1e9-4fe1-98a6-88e71c40ceac + - bf28b862-eec2-40ed-be86-068bc50e08fe content-length: - '0' date: - - Thu, 11 Jun 2020 15:41:47 GMT + - Fri, 10 Jul 2020 18:42:15 GMT operation-location: - - https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/0833aee6-9c8f-4822-8e45-a174c2c0c3a8/analyzeresults/c96e7a43-619a-43ee-b0ed-a936bc4306d9 + - https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/67f42e15-4d6e-4a01-b92d-a0cb9b0414cf/analyzeresults/c4c089d5-46d1-4c7a-be0e-dd26b584aee7 strict-transport-security: - max-age=31536000; includeSubDomains; preload x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '1143' + - '128' status: code: 202 message: Accepted @@ -8548,50 +8545,13 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/0833aee6-9c8f-4822-8e45-a174c2c0c3a8/analyzeresults/c96e7a43-619a-43ee-b0ed-a936bc4306d9 + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/67f42e15-4d6e-4a01-b92d-a0cb9b0414cf/analyzeresults/c4c089d5-46d1-4c7a-be0e-dd26b584aee7 response: body: - string: '{"status": "notStarted", "createdDateTime": "2020-06-11T15:41:46Z", - "lastUpdatedDateTime": "2020-06-11T15:41:51Z"}' - headers: - apim-request-id: - - 38cb333c-9439-4571-bd98-b200a0fb3b89 - content-length: - - '109' - content-type: - - application/json; charset=utf-8 - date: - - Thu, 11 Jun 2020 15:41:52 GMT - strict-transport-security: - - max-age=31536000; includeSubDomains; preload - x-content-type-options: - - nosniff - x-envoy-upstream-service-time: - - '49' - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) - method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/0833aee6-9c8f-4822-8e45-a174c2c0c3a8/analyzeresults/c96e7a43-619a-43ee-b0ed-a936bc4306d9 - response: - body: - string: '{"status": "succeeded", "createdDateTime": "2020-06-11T15:41:46Z", - "lastUpdatedDateTime": "2020-06-11T15:41:55Z", "analyzeResult": {"version": + string: '{"status": "succeeded", "createdDateTime": "2020-07-10T18:42:16Z", + "lastUpdatedDateTime": "2020-07-10T18:42:21Z", "analyzeResult": {"version": "2.0.0", "readResults": [{"page": 1, "language": "en", "angle": 0, "width": 1700, "height": 2200, "unit": "pixel"}], "pageResults": [{"page": 1, "tables": [{"rows": 4, "columns": 3, "cells": [{"rowIndex": 1, "columnIndex": 1, "text": @@ -8636,59 +8596,60 @@ interactions: 2, "text": "5,00", "boundingBox": [1072, 1216, 1309, 1216, 1309, 1260, 1072, 1260]}, {"rowIndex": 4, "columnIndex": 3, "text": "100.00", "boundingBox": [1309, 1216, 1544, 1216, 1544, 1260, 1309, 1260]}]}]}], "documentResults": - [{"docType": "custom:form", "pageRange": [1, 1], "fields": {"Quantity": {"type": - "number", "text": "20", "page": 1, "boundingBox": [861.0, 1089.0, 895.0, 1089.0, - 895.0, 1120.0, 861.0, 1120.0], "confidence": 1.0}, "PhoneNumber": {"type": - "string", "valueString": "555-348-6512", "text": "555-348-6512", "page": 1, - "boundingBox": [367.0, 351.0, 529.0, 351.0, 529.0, 378.0, 367.0, 378.0], "confidence": - 1.0}, "Tax": {"type": "string", "valueString": "$4.00", "text": "$4.00", "page": - 1, "boundingBox": [1461.0, 1614.0, 1530.0, 1614.0, 1530.0, 1642.0, 1461.0, - 1642.0], "confidence": 1.0}, "Email": {"type": "string", "valueString": "accounts@herolimited.com", - "text": "accounts@herolimited.com", "page": 1, "boundingBox": [166.0, 480.0, - 475.0, 480.0, 475.0, 503.0, 166.0, 503.0], "confidence": 1.0}, "PurchaseOrderNumber": - {"type": "string", "valueString": "948284", "text": "948284", "page": 1, "boundingBox": - [1282.0, 461.0, 1377.0, 461.0, 1377.0, 489.0, 1282.0, 489.0], "confidence": - 1.0}, "Signature": {"type": "string", "valueString": "Bernie Sanders", "text": - "Bernie Sanders", "page": 1, "boundingBox": [482.0, 1670.0, 764.0, 1670.0, - 764.0, 1709.0, 482.0, 1709.0], "confidence": 1.0}, "Merchant": {"type": "string", - "valueString": "Hero Limited", "text": "Hero Limited", "page": 1, "boundingBox": - [621.0, 202.0, 1075.0, 202.0, 1075.0, 266.0, 621.0, 266.0], "confidence": - 1.0}, "CompanyName": {"type": "string", "valueString": "Higgly Wiggly Books", - "text": "Higgly Wiggly Books", "page": 1, "boundingBox": [378.0, 646.0, 629.0, - 646.0, 629.0, 682.0, 378.0, 682.0], "confidence": 1.0}, "CompanyPhoneNumber": + [{"docType": "custom:form", "pageRange": [1, 1], "fields": {"DatedAs": {"type": + "string", "valueString": "12/20/2020", "text": "12/20/2020", "page": 1, "boundingBox": + [1168.0, 420.0, 1317.0, 420.0, 1317.0, 450.0, 1168.0, 450.0], "confidence": + 1.0}, "Total": {"type": "string", "valueString": "$144.00", "text": "$144.00", + "page": 1, "boundingBox": [1429.0, 1669.0, 1530.0, 1669.0, 1530.0, 1697.0, + 1429.0, 1697.0], "confidence": 1.0}, "Website": {"type": "string", "valueString": + "www.herolimited.com", "text": "www.herolimited.com", "page": 1, "boundingBox": + [274.0, 393.0, 529.0, 393.0, 529.0, 419.0, 274.0, 419.0], "confidence": 1.0}, + "PurchaseOrderNumber": {"type": "string", "valueString": "948284", "text": + "948284", "page": 1, "boundingBox": [1282.0, 461.0, 1377.0, 461.0, 1377.0, + 489.0, 1282.0, 489.0], "confidence": 1.0}, "Tax": {"type": "string", "valueString": + "$4.00", "text": "$4.00", "page": 1, "boundingBox": [1461.0, 1614.0, 1530.0, + 1614.0, 1530.0, 1642.0, 1461.0, 1642.0], "confidence": 1.0}, "VendorName": + {"type": "string", "valueString": "Hillary Swank", "text": "Hillary Swank", + "page": 1, "boundingBox": [351.0, 609.0, 518.0, 609.0, 518.0, 641.0, 351.0, + 641.0], "confidence": 1.0}, "Quantity": {"type": "number", "text": "20", "page": + 1, "boundingBox": [861.0, 1089.0, 895.0, 1089.0, 895.0, 1120.0, 861.0, 1120.0], + "confidence": 1.0}, "Signature": {"type": "string", "valueString": "Bernie + Sanders", "text": "Bernie Sanders", "page": 1, "boundingBox": [482.0, 1670.0, + 764.0, 1670.0, 764.0, 1709.0, 482.0, 1709.0], "confidence": 1.0}, "CompanyName": + {"type": "string", "valueString": "Higgly Wiggly Books", "text": "Higgly Wiggly + Books", "page": 1, "boundingBox": [378.0, 646.0, 629.0, 646.0, 629.0, 682.0, + 378.0, 682.0], "confidence": 1.0}, "Subtotal": {"type": "string", "valueString": + "$140.00", "text": "$140.00", "page": 1, "boundingBox": [1429.0, 1570.0, 1530.0, + 1570.0, 1530.0, 1599.0, 1429.0, 1599.0], "confidence": 1.0}, "Email": {"type": + "string", "valueString": "accounts@herolimited.com", "text": "accounts@herolimited.com", + "page": 1, "boundingBox": [166.0, 480.0, 475.0, 480.0, 475.0, 503.0, 166.0, + 503.0], "confidence": 1.0}, "Merchant": {"type": "string", "valueString": + "Hero Limited", "text": "Hero Limited", "page": 1, "boundingBox": [621.0, + 202.0, 1075.0, 202.0, 1075.0, 266.0, 621.0, 266.0], "confidence": 1.0}, "CompanyPhoneNumber": {"type": "string", "valueString": "938-294-2949", "text": "938-294-2949", "page": 1, "boundingBox": [713.0, 722.0, 884.0, 722.0, 884.0, 750.0, 713.0, - 750.0], "confidence": 1.0}, "VendorName": {"type": "string", "valueString": - "Hillary Swank", "text": "Hillary Swank", "page": 1, "boundingBox": [351.0, - 609.0, 518.0, 609.0, 518.0, 641.0, 351.0, 641.0], "confidence": 1.0}, "Total": - {"type": "string", "valueString": "$144.00", "text": "$144.00", "page": 1, - "boundingBox": [1429.0, 1669.0, 1530.0, 1669.0, 1530.0, 1697.0, 1429.0, 1697.0], - "confidence": 1.0}, "DatedAs": {"type": "string", "valueString": "12/20/2020", - "text": "12/20/2020", "page": 1, "boundingBox": [1168.0, 420.0, 1317.0, 420.0, - 1317.0, 450.0, 1168.0, 450.0], "confidence": 1.0}, "CompanyAddress": {"type": - "string", "valueString": "938 NE Burner Road Boulder City, CO 92848", "text": - "938 NE Burner Road Boulder City, CO 92848", "page": 1, "boundingBox": [277.0, - 685.0, 568.0, 685.0, 568.0, 754.0, 277.0, 754.0], "confidence": 1.0}, "Subtotal": - {"type": "string", "valueString": "$140.00", "text": "$140.00", "page": 1, - "boundingBox": [1429.0, 1570.0, 1530.0, 1570.0, 1530.0, 1599.0, 1429.0, 1599.0], - "confidence": 1.0}, "Website": {"type": "string", "valueString": "www.herolimited.com", - "text": "www.herolimited.com", "page": 1, "boundingBox": [274.0, 393.0, 529.0, - 393.0, 529.0, 419.0, 274.0, 419.0], "confidence": 1.0}}}], "errors": []}}' + 750.0], "confidence": 1.0}, "CompanyAddress": {"type": "string", "valueString": + "938 NE Burner Road Boulder City, CO 92848", "text": "938 NE Burner Road Boulder + City, CO 92848", "page": 1, "boundingBox": [277.0, 685.0, 568.0, 685.0, 568.0, + 754.0, 277.0, 754.0], "confidence": 1.0}, "PhoneNumber": {"type": "string", + "valueString": "555-348-6512", "text": "555-348-6512", "page": 1, "boundingBox": + [367.0, 351.0, 529.0, 351.0, 529.0, 378.0, 367.0, 378.0], "confidence": 1.0}}}], + "errors": []}}' headers: apim-request-id: - - 27015c58-a7cc-4dd5-80f6-1e6733b39672 + - b69c45fe-4ac6-43a5-8332-98a1b3c899ef content-length: - '5839' content-type: - application/json; charset=utf-8 date: - - Thu, 11 Jun 2020 15:41:58 GMT + - Fri, 10 Jul 2020 18:42:21 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '49' + - '50' status: code: 200 message: OK diff --git a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_custom_forms.test_custom_form_labeled_blank_page.yaml b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_custom_forms.test_custom_form_labeled_blank_page.yaml index 05f20aa46418..9aaf3c99e58c 100644 --- a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_custom_forms.test_custom_form_labeled_blank_page.yaml +++ b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_custom_forms.test_custom_form_labeled_blank_page.yaml @@ -14,28 +14,27 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) method: POST - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models response: body: string: '' headers: apim-request-id: - - 8d2d7ac5-68e1-44af-aad1-ce5ea6bdec0e + - 89faca35-cace-435c-85dc-3182369b743e content-length: - '0' date: - - Mon, 15 Jun 2020 19:53:06 GMT + - Fri, 10 Jul 2020 18:42:21 GMT location: - - https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/9a939b7b-6f9a-4413-8745-69bcaafed0d7 + - https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/3433e426-015e-421a-b794-58fe389a707b strict-transport-security: - max-age=31536000; includeSubDomains; preload x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '415' + - '189' status: code: 201 message: Created @@ -49,22 +48,21 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/9a939b7b-6f9a-4413-8745-69bcaafed0d7?includeKeys=true + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/3433e426-015e-421a-b794-58fe389a707b?includeKeys=true response: body: - string: '{"modelInfo": {"modelId": "9a939b7b-6f9a-4413-8745-69bcaafed0d7", "status": - "creating", "createdDateTime": "2020-06-15T19:53:07Z", "lastUpdatedDateTime": - "2020-06-15T19:53:07Z"}}' + string: '{"modelInfo": {"modelId": "3433e426-015e-421a-b794-58fe389a707b", "status": + "creating", "createdDateTime": "2020-07-10T18:42:22Z", "lastUpdatedDateTime": + "2020-07-10T18:42:22Z"}}' headers: apim-request-id: - - f01f0630-df69-4192-b522-052a44fa7142 + - 7f5d97f3-ad30-411f-8191-6594dbb7422c content-type: - application/json; charset=utf-8 date: - - Mon, 15 Jun 2020 19:53:12 GMT + - Fri, 10 Jul 2020 18:42:26 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -72,7 +70,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '167' + - '156' status: code: 200 message: OK @@ -86,15 +84,14 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/9a939b7b-6f9a-4413-8745-69bcaafed0d7?includeKeys=true + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/3433e426-015e-421a-b794-58fe389a707b?includeKeys=true response: body: - string: '{"modelInfo": {"modelId": "9a939b7b-6f9a-4413-8745-69bcaafed0d7", "status": - "ready", "createdDateTime": "2020-06-15T19:53:07Z", "lastUpdatedDateTime": - "2020-06-15T19:53:12Z"}, "trainResult": {"averageModelAccuracy": 0.973, "trainingDocuments": + string: '{"modelInfo": {"modelId": "3433e426-015e-421a-b794-58fe389a707b", "status": + "ready", "createdDateTime": "2020-07-10T18:42:22Z", "lastUpdatedDateTime": + "2020-07-10T18:42:30Z"}, "trainResult": {"averageModelAccuracy": 0.973, "trainingDocuments": [{"documentName": "Form_1.jpg", "pages": 1, "status": "succeeded"}, {"documentName": "Form_2.jpg", "pages": 1, "status": "succeeded"}, {"documentName": "Form_3.jpg", "pages": 1, "status": "succeeded"}, {"documentName": "Form_4.jpg", "pages": @@ -111,11 +108,11 @@ interactions: "errors": []}}' headers: apim-request-id: - - dd0b1d09-7a4d-4691-8b78-08f9fa8914e4 + - da2a1cb7-3316-4f8a-aa42-374dfc2ecad0 content-type: - application/json; charset=utf-8 date: - - Mon, 15 Jun 2020 19:53:17 GMT + - Fri, 10 Jul 2020 18:42:33 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -123,467 +120,463 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '60' + - '213' status: code: 200 message: OK - request: - body: !!python/object/new:_io.BytesIO - state: !!python/tuple - - !!binary | - JVBERi0xLjcNCiW1tbW1DQoxIDAgb2JqDQo8PC9UeXBlL0NhdGFsb2cvUGFnZXMgMiAwIFIvTGFu - Zyhlbi1VUykgL1N0cnVjdFRyZWVSb290IDEwIDAgUi9NYXJrSW5mbzw8L01hcmtlZCB0cnVlPj4v - TWV0YWRhdGEgMjAgMCBSL1ZpZXdlclByZWZlcmVuY2VzIDIxIDAgUj4+DQplbmRvYmoNCjIgMCBv - YmoNCjw8L1R5cGUvUGFnZXMvQ291bnQgMS9LaWRzWyAzIDAgUl0gPj4NCmVuZG9iag0KMyAwIG9i - ag0KPDwvVHlwZS9QYWdlL1BhcmVudCAyIDAgUi9SZXNvdXJjZXM8PC9Gb250PDwvRjEgNSAwIFI+ - Pi9FeHRHU3RhdGU8PC9HUzcgNyAwI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NjYyMDE8 - L3htcE1NOkRvY3VtZW50SUQ+PHhtcE1NOkluc3RhbmNlSUQ+dXVpZDo4RjI5Q0E4Qy1FRThCLTQ3 - NTktQkM5Qi1BMDhFRkVFNjYyMDE8L3htcE1NOkluc3RhbmNlSUQ+PC9yZGY6RGVzY3JpcHRpb24+ - CiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAg - ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAg - ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAg - ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAg - ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAg - ICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAg - ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAg - ICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAg - ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAg - ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAg - ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAg - ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAg - ICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAg - ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAg - ICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAg - ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAg - ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAg - ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAg - ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAg - ICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAg - ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAg - ICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAg - ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAg - ICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAg - ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAg - ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAg - ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAg - ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAg - ICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAg - ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAg - ICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAg - ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAg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vbj4KPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJv + dXQ9IiIgIHhtbG5zOnhtcE1NPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvbW0vIj4KPHht + cE1NOkRvY3VtZW50SUQ+dXVpZDo4RjI5Q0E4Qy1FRThCLTQ3NTktQkM5Qi1BMDhFRkVFNjYyMDE8 + L3htcE1NOkRvY3VtZW50SUQ+PHhtcE1NOkluc3RhbmNlSUQ+dXVpZDo4RjI5Q0E4Qy1FRThCLTQ3 + NTktQkM5Qi1BMDhFRkVFNjYyMDE8L3htcE1NOkluc3RhbmNlSUQ+PC9yZGY6RGVzY3JpcHRpb24+ + CiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAg + ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAg + ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAg + ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAg + ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAg + ICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAg + ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAg + ICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAg + ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAg + ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAg + ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAg + ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAg + ICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAg + ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAg + ICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAg + ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAg + ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAg + ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAg + ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAg + ICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAg + ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAg + ICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAg + ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAg + ICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAg + ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAg + ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAg + ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAg + ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAg + ICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAg + ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAg + ICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAg + ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAg + ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAg + ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAg + ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAg + ICAgICAgICAgICAgICAgICAgICAgICAgIAo8L3JkZjpSREY+PC94OnhtcG1ldGE+PD94cGFja2V0 + IGVuZD0idyI/Pg0KZW5kc3RyZWFtDQplbmRvYmoNCjIxIDAgb2JqDQo8PC9EaXNwbGF5RG9jVGl0 + bGUgdHJ1ZT4+DQplbmRvYmoNCjIyIDAgb2JqDQo8PC9UeXBlL1hSZWYvU2l6ZSAyMi9XWyAxIDQg + Ml0gL1Jvb3QgMSAwIFIvSW5mbyA5IDAgUi9JRFs8OENDQTI5OEY4QkVFNTk0N0JDOUJBMDhFRkVF + NjYyMDE+PDhDQ0EyOThGOEJFRTU5NDdCQzlCQTA4RUZFRTY2MjAxPl0gL0ZpbHRlci9GbGF0ZURl + Y29kZS9MZW5ndGggODM+Pg0Kc3RyZWFtDQp4nC3LsQFAQAyF4ZfcHbW1KJUKnTHYxgR6k1Ba48R7 + UuQrkh+IqdVid8DHLm5iD/GDpInkXmwibs7cRRJZFGHi/2yiKyfzdhALGVcyX8ALyoALUA0KZW5k + c3RyZWFtDQplbmRvYmoNCnhyZWYNCjAgMjMNCjAwMDAwMDAwMTAgNjU1MzUgZg0KMDAwMDAwMDAx + NyAwMDAwMCBuDQowMDAwMDAwMTY2IDAwMDAwIG4NCjAwMDAwMD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-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) method: POST - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/9a939b7b-6f9a-4413-8745-69bcaafed0d7/analyze?includeTextDetails=false + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/3433e426-015e-421a-b794-58fe389a707b/analyze?includeTextDetails=false response: body: string: '' headers: apim-request-id: - - 9e3777e8-7b0d-4fdd-a4ac-c7ef3dd6dd83 + - c1b0b63a-6fbd-4571-bfa3-c0eb314e0250 content-length: - '0' date: - - Mon, 15 Jun 2020 19:53:18 GMT + - Fri, 10 Jul 2020 18:42:33 GMT operation-location: - - https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/9a939b7b-6f9a-4413-8745-69bcaafed0d7/analyzeresults/5afeabb8-4ebd-4cc2-9166-435a79e3b495 + - https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/3433e426-015e-421a-b794-58fe389a707b/analyzeresults/114ee9b4-0ffd-487d-8460-c7374bc1eddf strict-transport-security: - max-age=31536000; includeSubDomains; preload x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '141' + - '344' status: code: 202 message: Accepted @@ -631,14 +623,13 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/9a939b7b-6f9a-4413-8745-69bcaafed0d7/analyzeresults/5afeabb8-4ebd-4cc2-9166-435a79e3b495 + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/3433e426-015e-421a-b794-58fe389a707b/analyzeresults/114ee9b4-0ffd-487d-8460-c7374bc1eddf response: body: - string: '{"status": "succeeded", "createdDateTime": "2020-06-15T19:53:18Z", - "lastUpdatedDateTime": "2020-06-15T19:53:22Z", "analyzeResult": {"version": + string: '{"status": "succeeded", "createdDateTime": "2020-07-10T18:42:33Z", + "lastUpdatedDateTime": "2020-07-10T18:42:37Z", "analyzeResult": {"version": "2.0.0", "readResults": [{"page": 1, "language": "en", "angle": 0, "width": 8.4967, "height": 10.9967, "unit": "inch"}], "pageResults": [{"page": 1, "tables": []}], "documentResults": [{"docType": "custom:form", "pageRange": [1, 1], @@ -649,19 +640,19 @@ interactions: "errors": []}}' headers: apim-request-id: - - 594ec1ca-bb97-482b-bcc6-d8d155420ba9 + - b77706de-7972-4d74-93d4-8713e62ddbc3 content-length: - '632' content-type: - application/json; charset=utf-8 date: - - Mon, 15 Jun 2020 19:53:24 GMT + - Fri, 10 Jul 2020 18:42:38 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '225' + - '1055' status: code: 200 message: OK diff --git a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_custom_forms.test_custom_form_labeled_transform.yaml b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_custom_forms.test_custom_form_labeled_transform.yaml index 6c2b034669cb..44b36049304b 100644 --- a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_custom_forms.test_custom_form_labeled_transform.yaml +++ b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_custom_forms.test_custom_form_labeled_transform.yaml @@ -14,28 +14,27 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) method: POST - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models response: body: string: '' headers: apim-request-id: - - 5937cef6-dc4f-42ef-9dea-b7c3ea11659e + - 4a393869-cb7a-480f-a2c1-64ac3ec087dc content-length: - '0' date: - - Thu, 11 Jun 2020 15:41:58 GMT + - Fri, 10 Jul 2020 18:42:40 GMT location: - - https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/808653a8-b4fd-47ae-ae23-573150c8cfad + - https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/98be755b-7bb2-49bc-addb-82ba80fc3007 strict-transport-security: - max-age=31536000; includeSubDomains; preload x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '73' + - '96' status: code: 201 message: Created @@ -49,15 +48,14 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/808653a8-b4fd-47ae-ae23-573150c8cfad?includeKeys=true + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/98be755b-7bb2-49bc-addb-82ba80fc3007?includeKeys=true response: body: - string: '{"modelInfo": {"modelId": "808653a8-b4fd-47ae-ae23-573150c8cfad", "status": - "ready", "createdDateTime": "2020-06-11T15:41:58Z", "lastUpdatedDateTime": - "2020-06-11T15:42:01Z"}, "trainResult": {"averageModelAccuracy": 0.973, "trainingDocuments": + string: '{"modelInfo": {"modelId": "98be755b-7bb2-49bc-addb-82ba80fc3007", "status": + "ready", "createdDateTime": "2020-07-10T18:42:40Z", "lastUpdatedDateTime": + "2020-07-10T18:42:43Z"}, "trainResult": {"averageModelAccuracy": 0.973, "trainingDocuments": [{"documentName": "Form_1.jpg", "pages": 1, "status": "succeeded"}, {"documentName": "Form_2.jpg", "pages": 1, "status": "succeeded"}, {"documentName": "Form_3.jpg", "pages": 1, "status": "succeeded"}, {"documentName": "Form_4.jpg", "pages": @@ -74,11 +72,11 @@ interactions: "errors": []}}' headers: apim-request-id: - - e00f851a-4ed6-4c36-87f1-7667e0634a18 + - 51039e0b-205b-4590-b651-2761c96422ae content-type: - application/json; charset=utf-8 date: - - Thu, 11 Jun 2020 15:42:03 GMT + - Fri, 10 Jul 2020 18:42:44 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -86,7 +84,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '53' + - '48' status: code: 200 message: OK @@ -8513,28 +8511,27 @@ interactions: Content-Type: - image/jpeg User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) method: POST - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/808653a8-b4fd-47ae-ae23-573150c8cfad/analyze?includeTextDetails=true + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/98be755b-7bb2-49bc-addb-82ba80fc3007/analyze?includeTextDetails=true response: body: string: '' headers: apim-request-id: - - d4611094-88a3-4a73-a8ad-6f1cabdc3ef7 + - 9052ef3e-e2cc-4ceb-b5b5-9f44361c5637 content-length: - '0' date: - - Thu, 11 Jun 2020 15:42:06 GMT + - Fri, 10 Jul 2020 18:42:46 GMT operation-location: - - https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/808653a8-b4fd-47ae-ae23-573150c8cfad/analyzeresults/d5acdda9-76a5-4752-865d-4e5808826a51 + - https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/98be755b-7bb2-49bc-addb-82ba80fc3007/analyzeresults/10a6fedf-b37d-4a93-9fee-ebf907ae6b83 strict-transport-security: - max-age=31536000; includeSubDomains; preload x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '1902' + - '176' status: code: 202 message: Accepted @@ -8548,29 +8545,28 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/808653a8-b4fd-47ae-ae23-573150c8cfad/analyzeresults/d5acdda9-76a5-4752-865d-4e5808826a51 + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/98be755b-7bb2-49bc-addb-82ba80fc3007/analyzeresults/10a6fedf-b37d-4a93-9fee-ebf907ae6b83 response: body: - string: '{"status": "notStarted", "createdDateTime": "2020-06-11T15:42:06Z", - "lastUpdatedDateTime": "2020-06-11T15:42:08Z"}' + string: '{"status": "notStarted", "createdDateTime": "2020-07-10T18:42:46Z", + "lastUpdatedDateTime": "2020-07-10T18:42:47Z"}' headers: apim-request-id: - - be27e632-a6ef-474c-a47f-2c64e4c5c6c8 + - 46f54a84-af97-449b-b46c-a6654369f676 content-length: - '109' content-type: - application/json; charset=utf-8 date: - - Thu, 11 Jun 2020 15:42:11 GMT + - Fri, 10 Jul 2020 18:42:52 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '50' + - '52' status: code: 200 message: OK @@ -8584,14 +8580,13 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/808653a8-b4fd-47ae-ae23-573150c8cfad/analyzeresults/d5acdda9-76a5-4752-865d-4e5808826a51 + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/98be755b-7bb2-49bc-addb-82ba80fc3007/analyzeresults/10a6fedf-b37d-4a93-9fee-ebf907ae6b83 response: body: - string: '{"status": "succeeded", "createdDateTime": "2020-06-11T15:42:06Z", - "lastUpdatedDateTime": "2020-06-11T15:42:12Z", "analyzeResult": {"version": + string: '{"status": "succeeded", "createdDateTime": "2020-07-10T18:42:46Z", + "lastUpdatedDateTime": "2020-07-10T18:42:56Z", "analyzeResult": {"version": "2.0.0", "readResults": [{"page": 1, "language": "en", "angle": 0, "width": 1700, "height": 2200, "unit": "pixel", "lines": [{"boundingBox": [137, 140, 351, 140, 351, 167, 137, 166], "text": "Purchase Order", "words": [{"boundingBox": @@ -8896,45 +8891,22 @@ interactions: {"rowIndex": 4, "columnIndex": 3, "text": "100.00", "boundingBox": [1309, 1216, 1544, 1216, 1544, 1260, 1309, 1260], "elements": ["#/readResults/0/lines/40/words/0"]}]}]}], "documentResults": [{"docType": "custom:form", "pageRange": [1, 1], "fields": - {"Quantity": {"type": "number", "text": "20", "page": 1, "boundingBox": [861.0, - 1089.0, 895.0, 1089.0, 895.0, 1120.0, 861.0, 1120.0], "confidence": 1.0, "elements": - ["#/analyzeResult/readResults/0/lines/26/words/0"]}, "PhoneNumber": {"type": - "string", "valueString": "555-348-6512", "text": "555-348-6512", "page": 1, - "boundingBox": [367.0, 351.0, 529.0, 351.0, 529.0, 378.0, 367.0, 378.0], "confidence": - 1.0, "elements": ["#/analyzeResult/readResults/0/lines/2/words/2"]}, "Tax": - {"type": "string", "valueString": "$4.00", "text": "$4.00", "page": 1, "boundingBox": - [1461.0, 1614.0, 1530.0, 1614.0, 1530.0, 1642.0, 1461.0, 1642.0], "confidence": - 1.0, "elements": ["#/analyzeResult/readResults/0/lines/44/words/0"]}, "Email": - {"type": "string", "valueString": "accounts@herolimited.com", "text": "accounts@herolimited.com", + {"Subtotal": {"type": "string", "valueString": "$140.00", "text": "$140.00", + "page": 1, "boundingBox": [1429.0, 1570.0, 1530.0, 1570.0, 1530.0, 1599.0, + 1429.0, 1599.0], "confidence": 1.0, "elements": ["#/analyzeResult/readResults/0/lines/42/words/0"]}, + "VendorName": {"type": "string", "valueString": "Hillary Swank", "text": "Hillary + Swank", "page": 1, "boundingBox": [351.0, 609.0, 518.0, 609.0, 518.0, 641.0, + 351.0, 641.0], "confidence": 1.0, "elements": ["#/analyzeResult/readResults/0/lines/10/words/2", + "#/analyzeResult/readResults/0/lines/10/words/3"]}, "Email": {"type": "string", + "valueString": "accounts@herolimited.com", "text": "accounts@herolimited.com", "page": 1, "boundingBox": [166.0, 480.0, 475.0, 480.0, 475.0, 503.0, 166.0, 503.0], "confidence": 1.0, "elements": ["#/analyzeResult/readResults/0/lines/7/words/0"]}, - "PurchaseOrderNumber": {"type": "string", "valueString": "948284", "text": - "948284", "page": 1, "boundingBox": [1282.0, 461.0, 1377.0, 461.0, 1377.0, - 489.0, 1282.0, 489.0], "confidence": 1.0, "elements": ["#/analyzeResult/readResults/0/lines/8/words/3"]}, - "Signature": {"type": "string", "valueString": "Bernie Sanders", "text": "Bernie - Sanders", "page": 1, "boundingBox": [482.0, 1670.0, 764.0, 1670.0, 764.0, - 1709.0, 482.0, 1709.0], "confidence": 1.0, "elements": ["#/analyzeResult/readResults/0/lines/45/words/0", - "#/analyzeResult/readResults/0/lines/45/words/1"]}, "Merchant": {"type": "string", - "valueString": "Hero Limited", "text": "Hero Limited", "page": 1, "boundingBox": - [621.0, 202.0, 1075.0, 202.0, 1075.0, 266.0, 621.0, 266.0], "confidence": - 1.0, "elements": ["#/analyzeResult/readResults/0/lines/1/words/0", "#/analyzeResult/readResults/0/lines/1/words/1"]}, - "CompanyName": {"type": "string", "valueString": "Higgly Wiggly Books", "text": - "Higgly Wiggly Books", "page": 1, "boundingBox": [378.0, 646.0, 629.0, 646.0, - 629.0, 682.0, 378.0, 682.0], "confidence": 1.0, "elements": ["#/analyzeResult/readResults/0/lines/11/words/2", - "#/analyzeResult/readResults/0/lines/11/words/3", "#/analyzeResult/readResults/0/lines/11/words/4"]}, "CompanyPhoneNumber": {"type": "string", "valueString": "938-294-2949", "text": "938-294-2949", "page": 1, "boundingBox": [713.0, 722.0, 884.0, 722.0, 884.0, 750.0, 713.0, 750.0], "confidence": 1.0, "elements": ["#/analyzeResult/readResults/0/lines/14/words/1"]}, - "VendorName": {"type": "string", "valueString": "Hillary Swank", "text": "Hillary - Swank", "page": 1, "boundingBox": [351.0, 609.0, 518.0, 609.0, 518.0, 641.0, - 351.0, 641.0], "confidence": 1.0, "elements": ["#/analyzeResult/readResults/0/lines/10/words/2", - "#/analyzeResult/readResults/0/lines/10/words/3"]}, "Total": {"type": "string", - "valueString": "$144.00", "text": "$144.00", "page": 1, "boundingBox": [1429.0, - 1669.0, 1530.0, 1669.0, 1530.0, 1697.0, 1429.0, 1697.0], "confidence": 1.0, - "elements": ["#/analyzeResult/readResults/0/lines/47/words/0"]}, "DatedAs": - {"type": "string", "valueString": "12/20/2020", "text": "12/20/2020", "page": - 1, "boundingBox": [1168.0, 420.0, 1317.0, 420.0, 1317.0, 450.0, 1168.0, 450.0], - "confidence": 1.0, "elements": ["#/analyzeResult/readResults/0/lines/6/words/2"]}, + "DatedAs": {"type": "string", "valueString": "12/20/2020", "text": "12/20/2020", + "page": 1, "boundingBox": [1168.0, 420.0, 1317.0, 420.0, 1317.0, 450.0, 1168.0, + 450.0], "confidence": 1.0, "elements": ["#/analyzeResult/readResults/0/lines/6/words/2"]}, "CompanyAddress": {"type": "string", "valueString": "938 NE Burner Road Boulder City, CO 92848", "text": "938 NE Burner Road Boulder City, CO 92848", "page": 1, "boundingBox": [277.0, 685.0, 568.0, 685.0, 568.0, 754.0, 277.0, 754.0], @@ -8942,29 +8914,52 @@ interactions: "#/analyzeResult/readResults/0/lines/12/words/2", "#/analyzeResult/readResults/0/lines/12/words/3", "#/analyzeResult/readResults/0/lines/12/words/4", "#/analyzeResult/readResults/0/lines/13/words/0", "#/analyzeResult/readResults/0/lines/13/words/1", "#/analyzeResult/readResults/0/lines/13/words/2", - "#/analyzeResult/readResults/0/lines/13/words/3"]}, "Subtotal": {"type": "string", - "valueString": "$140.00", "text": "$140.00", "page": 1, "boundingBox": [1429.0, - 1570.0, 1530.0, 1570.0, 1530.0, 1599.0, 1429.0, 1599.0], "confidence": 1.0, - "elements": ["#/analyzeResult/readResults/0/lines/42/words/0"]}, "Website": - {"type": "string", "valueString": "www.herolimited.com", "text": "www.herolimited.com", - "page": 1, "boundingBox": [274.0, 393.0, 529.0, 393.0, 529.0, 419.0, 274.0, - 419.0], "confidence": 1.0, "elements": ["#/analyzeResult/readResults/0/lines/4/words/1"]}}}], + "#/analyzeResult/readResults/0/lines/13/words/3"]}, "Website": {"type": "string", + "valueString": "www.herolimited.com", "text": "www.herolimited.com", "page": + 1, "boundingBox": [274.0, 393.0, 529.0, 393.0, 529.0, 419.0, 274.0, 419.0], + "confidence": 1.0, "elements": ["#/analyzeResult/readResults/0/lines/4/words/1"]}, + "Total": {"type": "string", "valueString": "$144.00", "text": "$144.00", "page": + 1, "boundingBox": [1429.0, 1669.0, 1530.0, 1669.0, 1530.0, 1697.0, 1429.0, + 1697.0], "confidence": 1.0, "elements": ["#/analyzeResult/readResults/0/lines/47/words/0"]}, + "PhoneNumber": {"type": "string", "valueString": "555-348-6512", "text": "555-348-6512", + "page": 1, "boundingBox": [367.0, 351.0, 529.0, 351.0, 529.0, 378.0, 367.0, + 378.0], "confidence": 1.0, "elements": ["#/analyzeResult/readResults/0/lines/2/words/2"]}, + "Signature": {"type": "string", "valueString": "Bernie Sanders", "text": "Bernie + Sanders", "page": 1, "boundingBox": [482.0, 1670.0, 764.0, 1670.0, 764.0, + 1709.0, 482.0, 1709.0], "confidence": 1.0, "elements": ["#/analyzeResult/readResults/0/lines/45/words/0", + "#/analyzeResult/readResults/0/lines/45/words/1"]}, "CompanyName": {"type": + "string", "valueString": "Higgly Wiggly Books", "text": "Higgly Wiggly Books", + "page": 1, "boundingBox": [378.0, 646.0, 629.0, 646.0, 629.0, 682.0, 378.0, + 682.0], "confidence": 1.0, "elements": ["#/analyzeResult/readResults/0/lines/11/words/2", + "#/analyzeResult/readResults/0/lines/11/words/3", "#/analyzeResult/readResults/0/lines/11/words/4"]}, + "Merchant": {"type": "string", "valueString": "Hero Limited", "text": "Hero + Limited", "page": 1, "boundingBox": [621.0, 202.0, 1075.0, 202.0, 1075.0, + 266.0, 621.0, 266.0], "confidence": 1.0, "elements": ["#/analyzeResult/readResults/0/lines/1/words/0", + "#/analyzeResult/readResults/0/lines/1/words/1"]}, "Quantity": {"type": "number", + "text": "20", "page": 1, "boundingBox": [861.0, 1089.0, 895.0, 1089.0, 895.0, + 1120.0, 861.0, 1120.0], "confidence": 1.0, "elements": ["#/analyzeResult/readResults/0/lines/26/words/0"]}, + "PurchaseOrderNumber": {"type": "string", "valueString": "948284", "text": + "948284", "page": 1, "boundingBox": [1282.0, 461.0, 1377.0, 461.0, 1377.0, + 489.0, 1282.0, 489.0], "confidence": 1.0, "elements": ["#/analyzeResult/readResults/0/lines/8/words/3"]}, + "Tax": {"type": "string", "valueString": "$4.00", "text": "$4.00", "page": + 1, "boundingBox": [1461.0, 1614.0, 1530.0, 1614.0, 1530.0, 1642.0, 1461.0, + 1642.0], "confidence": 1.0, "elements": ["#/analyzeResult/readResults/0/lines/44/words/0"]}}}], "errors": []}}' headers: apim-request-id: - - 1a24110b-f827-4c14-82ad-09de3c169169 + - 0a74a555-893c-47de-9f84-b5cd4009a871 content-length: - '25282' content-type: - application/json; charset=utf-8 date: - - Thu, 11 Jun 2020 15:42:18 GMT + - Fri, 10 Jul 2020 18:42:57 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '1051' + - '23' status: code: 200 message: OK diff --git a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_custom_forms.test_custom_form_multipage_labeled.yaml b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_custom_forms.test_custom_form_multipage_labeled.yaml index 062fbde97510..aa1927b411fe 100644 --- a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_custom_forms.test_custom_form_multipage_labeled.yaml +++ b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_custom_forms.test_custom_form_multipage_labeled.yaml @@ -14,28 +14,27 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) method: POST - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models response: body: string: '' headers: apim-request-id: - - ef971c4e-f2fe-4ee0-bcb9-1e5cc26b35dd + - afc5acc7-f13d-4801-8a8f-1def94bf716e content-length: - '0' date: - - Thu, 11 Jun 2020 15:42:18 GMT + - Fri, 10 Jul 2020 18:42:57 GMT location: - - https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/41f3b12b-fdfa-4d08-a3da-9c36101cc1a8 + - https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/e8f38257-82e1-4044-959c-6025c55088a5 strict-transport-security: - max-age=31536000; includeSubDomains; preload x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '36' + - '186' status: code: 201 message: Created @@ -49,15 +48,14 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/41f3b12b-fdfa-4d08-a3da-9c36101cc1a8?includeKeys=true + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/e8f38257-82e1-4044-959c-6025c55088a5?includeKeys=true response: body: - string: '{"modelInfo": {"modelId": "41f3b12b-fdfa-4d08-a3da-9c36101cc1a8", "status": - "ready", "createdDateTime": "2020-06-11T15:42:18Z", "lastUpdatedDateTime": - "2020-06-11T15:42:21Z"}, "trainResult": {"averageModelAccuracy": 0.889, "trainingDocuments": + string: '{"modelInfo": {"modelId": "e8f38257-82e1-4044-959c-6025c55088a5", "status": + "ready", "createdDateTime": "2020-07-10T18:42:58Z", "lastUpdatedDateTime": + "2020-07-10T18:42:59Z"}, "trainResult": {"averageModelAccuracy": 0.889, "trainingDocuments": [{"documentName": "multipage_invoice1.pdf", "pages": 3, "status": "succeeded"}, {"documentName": "multipage_invoice2.pdf", "pages": 3, "status": "succeeded"}, {"documentName": "multipage_invoice3.pdf", "pages": 3, "status": "succeeded"}, @@ -76,11 +74,11 @@ interactions: 1.0}, {"fieldName": "Total2", "accuracy": 1.0}], "errors": []}}' headers: apim-request-id: - - 920784b5-b9c3-4669-aba0-2daa595dd135 + - 9976e2c7-2e9f-4626-b92f-7f95ff860604 content-type: - application/json; charset=utf-8 date: - - Thu, 11 Jun 2020 15:42:23 GMT + - Fri, 10 Jul 2020 18:43:03 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -88,7 +86,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '17' + - '52' status: code: 200 message: OK @@ -2018,28 +2016,27 @@ interactions: Content-Type: - application/pdf User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) method: POST - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/41f3b12b-fdfa-4d08-a3da-9c36101cc1a8/analyze?includeTextDetails=false + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/e8f38257-82e1-4044-959c-6025c55088a5/analyze?includeTextDetails=false response: body: string: '' headers: apim-request-id: - - fe1db712-12f3-420d-9663-8bc04dc74e0a + - a4cfaa5b-ee3a-4afe-afdf-863667c126b3 content-length: - '0' date: - - Thu, 11 Jun 2020 15:42:24 GMT + - Fri, 10 Jul 2020 18:43:04 GMT operation-location: - - https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/41f3b12b-fdfa-4d08-a3da-9c36101cc1a8/analyzeresults/e9bd7b7b-dabe-4688-9e29-e7ff23b13c80 + - https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/e8f38257-82e1-4044-959c-6025c55088a5/analyzeresults/9719bdaf-608c-4591-91b1-502769afd253 strict-transport-security: - max-age=31536000; includeSubDomains; preload x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '144' + - '982' status: code: 202 message: Accepted @@ -2053,29 +2050,98 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + method: GET + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/e8f38257-82e1-4044-959c-6025c55088a5/analyzeresults/9719bdaf-608c-4591-91b1-502769afd253 + response: + body: + string: '{"status": "notStarted", "createdDateTime": "2020-07-10T18:43:03Z", + "lastUpdatedDateTime": "2020-07-10T18:43:03Z"}' + headers: + apim-request-id: + - 24744cf4-8624-487b-af99-58cf96f6e8a5 + content-length: + - '109' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 10 Jul 2020 18:43:09 GMT + strict-transport-security: + - max-age=31536000; includeSubDomains; preload + x-content-type-options: + - nosniff + x-envoy-upstream-service-time: + - '47' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + method: GET + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/e8f38257-82e1-4044-959c-6025c55088a5/analyzeresults/9719bdaf-608c-4591-91b1-502769afd253 + response: + body: + string: '{"status": "notStarted", "createdDateTime": "2020-07-10T18:43:03Z", + "lastUpdatedDateTime": "2020-07-10T18:43:13Z"}' + headers: + apim-request-id: + - 6bc9d4ed-2321-4c8a-9957-cd1b892e4359 + content-length: + - '109' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 10 Jul 2020 18:43:17 GMT + strict-transport-security: + - max-age=31536000; includeSubDomains; preload + x-content-type-options: + - nosniff + x-envoy-upstream-service-time: + - '2438' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/41f3b12b-fdfa-4d08-a3da-9c36101cc1a8/analyzeresults/e9bd7b7b-dabe-4688-9e29-e7ff23b13c80 + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/e8f38257-82e1-4044-959c-6025c55088a5/analyzeresults/9719bdaf-608c-4591-91b1-502769afd253 response: body: - string: '{"status": "notStarted", "createdDateTime": "2020-06-11T15:42:24Z", - "lastUpdatedDateTime": "2020-06-11T15:42:28Z"}' + string: '{"status": "notStarted", "createdDateTime": "2020-07-10T18:43:03Z", + "lastUpdatedDateTime": "2020-07-10T18:43:13Z"}' headers: apim-request-id: - - f9374874-95e4-41c9-ac4b-f8ff16141b7b + - befabb4b-3c72-438d-aace-9de146c9bc00 content-length: - '109' content-type: - application/json; charset=utf-8 date: - - Thu, 11 Jun 2020 15:42:29 GMT + - Fri, 10 Jul 2020 18:43:22 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '49' + - '50' status: code: 200 message: OK @@ -2089,14 +2155,13 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/41f3b12b-fdfa-4d08-a3da-9c36101cc1a8/analyzeresults/e9bd7b7b-dabe-4688-9e29-e7ff23b13c80 + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/e8f38257-82e1-4044-959c-6025c55088a5/analyzeresults/9719bdaf-608c-4591-91b1-502769afd253 response: body: - string: '{"status": "succeeded", "createdDateTime": "2020-06-11T15:42:24Z", - "lastUpdatedDateTime": "2020-06-11T15:42:32Z", "analyzeResult": {"version": + string: '{"status": "succeeded", "createdDateTime": "2020-07-10T18:43:03Z", + "lastUpdatedDateTime": "2020-07-10T18:43:22Z", "analyzeResult": {"version": "2.0.0", "readResults": [{"page": 1, "language": "en", "angle": 0, "width": 8.5, "height": 11, "unit": "inch"}, {"page": 2, "language": "en", "angle": 0, "width": 8.4967, "height": 10.9967, "unit": "inch"}, {"page": 3, "language": @@ -2184,68 +2249,68 @@ interactions: 4.4181, 5.3353, 4.6281, 3.1681, 4.6281]}, {"rowIndex": 7, "columnIndex": 2, "text": "220.00", "boundingBox": [5.3353, 4.4181, 7.4997, 4.4181, 7.4997, 4.6281, 5.3353, 4.6281]}]}]}], "documentResults": [{"docType": "custom:form", - "pageRange": [1, 3], "fields": {"Total2": {"type": "string", "valueString": - "4300.00", "text": "4300.00", "page": 3, "boundingBox": [5.94, 5.565, 6.48, - 5.565, 6.48, 5.675, 5.94, 5.675], "confidence": 1.0}, "Tax": {"type": "string", - "valueString": "30.00", "text": "30.00", "page": 1, "boundingBox": [5.835, - 5.125, 6.2, 5.125, 6.2, 5.235, 5.835, 5.235], "confidence": 1.0}, "FirstQuantity": - {"type": "string", "valueString": "1", "text": "1", "page": 1, "boundingBox": - [3.2600000000000002, 3.21, 3.3200000000000003, 3.21, 3.3200000000000003, 3.3200000000000003, - 3.2600000000000002, 3.3200000000000003], "confidence": 1.0}, "Signature": - {"type": "string", "valueString": "Bilbo Baggins", "text": "Bilbo Baggins", - "page": 1, "boundingBox": [2.05, 6.655, 3.04, 6.655, 3.04, 6.8, 2.05, 6.8], - "confidence": 1.0}, "Merchant2": {"type": "string", "valueString": "Company", - "text": "Company", "page": 1, "boundingBox": [0.885, 1.125, 1.62, 1.125, 1.62, - 1.28, 0.885, 1.28], "confidence": 1.0}, "MerchantAddress": {"type": "string", - "valueString": "567 Main St. Redmond, WA", "text": "567 Main St. Redmond, - WA", "page": 1, "boundingBox": [0.885, 1.845, 1.855, 1.845, 1.855, 2.2, 0.885, - 2.2], "confidence": 1.0}, "Customer2": {"type": "string", "valueString": "Frodo - Baggins", "text": "Frodo Baggins", "page": 3, "boundingBox": [6.015000000000001, - 1.45, 6.95, 1.45, 6.95, 1.595, 6.015000000000001, 1.595], "confidence": 1.0}, - "MerchantPhoneNumber": {"type": "string", "valueString": "555-555-5555", "text": - "555-555-5555", "page": 1, "boundingBox": [0.885, 2.29, 1.81, 2.29, 1.81, - 2.395, 0.885, 2.395], "confidence": 1.0}, "FirstPrice": {"type": "string", + "pageRange": [1, 3], "fields": {"Signature2": {"type": "string", "valueString": + "Frodo Baggins", "text": "Frodo Baggins", "page": 3, "boundingBox": [2.07, + 6.655, 3.09, 6.655, 3.09, 6.8, 2.07, 6.8], "confidence": 0.16}, "Total2": + {"type": "string", "valueString": "4300.00", "text": "4300.00", "page": 3, + "boundingBox": [5.94, 5.565, 6.48, 5.565, 6.48, 5.675, 5.94, 5.675], "confidence": + 1.0}, "Total": {"type": "string", "valueString": "430.00", "text": "430.00", + "page": 1, "boundingBox": [5.94, 5.565, 6.4, 5.565, 6.4, 5.675, 5.94, 5.675], + "confidence": 1.0}, "FirstItem": {"type": "string", "valueString": "A", "text": + "A", "page": 1, "boundingBox": [1.085, 3.21, 1.175, 3.21, 1.175, 3.3200000000000003, + 1.085, 3.3200000000000003], "confidence": 1.0}, "FirstPrice": {"type": "string", "valueString": "10.99", "text": "10.99", "page": 1, "boundingBox": [5.425, 3.21, 5.78, 3.21, 5.78, 3.3200000000000003, 5.425, 3.3200000000000003], "confidence": - 1.0}, "CustomerName": {"type": "string", "valueString": "Bilbo Baggins", "text": + 1.0}, "Tax": {"type": "string", "valueString": "30.00", "text": "30.00", "page": + 1, "boundingBox": [5.835, 5.125, 6.2, 5.125, 6.2, 5.235, 5.835, 5.235], "confidence": + 1.0}, "MerchantAddress": {"type": "string", "valueString": "567 Main St. Redmond, + WA", "text": "567 Main St. Redmond, WA", "page": 1, "boundingBox": [0.885, + 1.845, 1.855, 1.845, 1.855, 2.2, 0.885, 2.2], "confidence": 1.0}, "Tip": {"type": + "string", "valueString": "100.00", "text": "100.00", "page": 1, "boundingBox": + [5.8100000000000005, 5.345, 6.26, 5.345, 6.26, 5.455, 5.8100000000000005, + 5.455], "confidence": 1.0}, "Signature": {"type": "string", "valueString": + "Bilbo Baggins", "text": "Bilbo Baggins", "page": 1, "boundingBox": [2.05, + 6.655, 3.04, 6.655, 3.04, 6.8, 2.05, 6.8], "confidence": 1.0}, "CustomerPhoneNumber": + {"type": "string", "valueString": "555-555-5555", "text": "555-555-5555", + "page": 1, "boundingBox": [6.01, 2.12, 6.9350000000000005, 2.12, 6.9350000000000005, + 2.225, 6.01, 2.225], "confidence": 1.0}, "MerchantPhoneNumber": {"type": "string", + "valueString": "555-555-5555", "text": "555-555-5555", "page": 1, "boundingBox": + [0.885, 2.29, 1.81, 2.29, 1.81, 2.395, 0.885, 2.395], "confidence": 1.0}, + "Merchant2": {"type": "string", "valueString": "Company", "text": "Company", + "page": 1, "boundingBox": [0.885, 1.125, 1.62, 1.125, 1.62, 1.28, 0.885, 1.28], + "confidence": 1.0}, "Subtotal": {"type": "string", "valueString": "300.00", + "text": "300.00", "page": 1, "boundingBox": [6.18, 4.905, 6.63, 4.905, 6.63, + 5.015, 6.18, 5.015], "confidence": 1.0}, "Customer2": {"type": "string", "valueString": + "Frodo Baggins", "text": "Frodo Baggins", "page": 3, "boundingBox": [6.015000000000001, + 1.45, 6.95, 1.45, 6.95, 1.595, 6.015000000000001, 1.595], "confidence": 1.0}, + "CustomerName": {"type": "string", "valueString": "Bilbo Baggins", "text": "Bilbo Baggins", "page": 1, "boundingBox": [6.015000000000001, 1.45, 6.8950000000000005, 1.45, 6.8950000000000005, 1.595, 6.015000000000001, 1.595], "confidence": - 1.0}, "Tip": {"type": "string", "valueString": "100.00", "text": "100.00", - "page": 1, "boundingBox": [5.8100000000000005, 5.345, 6.26, 5.345, 6.26, 5.455, - 5.8100000000000005, 5.455], "confidence": 1.0}, "Merchant": {"type": "string", - "valueString": "A", "text": "A", "page": 1, "boundingBox": [1.67, 1.125, 1.7750000000000001, - 1.125, 1.7750000000000001, 1.245, 1.67, 1.245], "confidence": 1.0}, "Total": - {"type": "string", "valueString": "430.00", "text": "430.00", "page": 1, "boundingBox": - [5.94, 5.565, 6.4, 5.565, 6.4, 5.675, 5.94, 5.675], "confidence": 1.0}, "FirstItem": - {"type": "string", "valueString": "A", "text": "A", "page": 1, "boundingBox": - [1.085, 3.21, 1.175, 3.21, 1.175, 3.3200000000000003, 1.085, 3.3200000000000003], - "confidence": 1.0}, "CustomerPhoneNumber": {"type": "string", "valueString": - "555-555-5555", "text": "555-555-5555", "page": 1, "boundingBox": [6.01, 2.12, - 6.9350000000000005, 2.12, 6.9350000000000005, 2.225, 6.01, 2.225], "confidence": - 1.0}, "Signature2": {"type": "string", "valueString": "Frodo Baggins", "text": - "Frodo Baggins", "page": 3, "boundingBox": [2.07, 6.655, 3.09, 6.655, 3.09, - 6.8, 2.07, 6.8], "confidence": 0.16}, "CustomerAddress": {"type": "string", + 1.0}, "FirstQuantity": {"type": "string", "valueString": "1", "text": "1", + "page": 1, "boundingBox": [3.2600000000000002, 3.21, 3.3200000000000003, 3.21, + 3.3200000000000003, 3.3200000000000003, 3.2600000000000002, 3.3200000000000003], + "confidence": 1.0}, "Merchant": {"type": "string", "valueString": "A", "text": + "A", "page": 1, "boundingBox": [1.67, 1.125, 1.7750000000000001, 1.125, 1.7750000000000001, + 1.245, 1.67, 1.245], "confidence": 1.0}, "CustomerAddress": {"type": "string", "valueString": "123 Hobbit Lane Redmond, WA", "text": "123 Hobbit Lane Redmond, WA", "page": 1, "boundingBox": [6.015000000000001, 1.67, 7.1000000000000005, 1.67, 7.1000000000000005, 2.0300000000000002, 6.015000000000001, 2.0300000000000002], - "confidence": 1.0}, "Subtotal": {"type": "string", "valueString": "300.00", - "text": "300.00", "page": 1, "boundingBox": [6.18, 4.905, 6.63, 4.905, 6.63, - 5.015, 6.18, 5.015], "confidence": 1.0}}}], "errors": []}}' + "confidence": 1.0}}}], "errors": []}}' headers: apim-request-id: - - 2189a5dc-e725-49da-98c7-093252f2b462 + - 97c31639-1eac-49fd-982e-44eb9f417af8 content-length: - '9504' content-type: - application/json; charset=utf-8 date: - - Thu, 11 Jun 2020 15:42:34 GMT + - Fri, 10 Jul 2020 18:43:27 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '52' + - '19' status: code: 200 message: OK diff --git a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_custom_forms.test_custom_form_multipage_labeled_transform.yaml b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_custom_forms.test_custom_form_multipage_labeled_transform.yaml index f18a13dbe743..c1054f06bfb8 100644 --- a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_custom_forms.test_custom_form_multipage_labeled_transform.yaml +++ b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_custom_forms.test_custom_form_multipage_labeled_transform.yaml @@ -14,28 +14,27 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) method: POST - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models response: body: string: '' headers: apim-request-id: - - 27e83179-e3a2-4147-938f-a0f0987f55b6 + - 28d0e4c5-5f48-4130-ba50-7efdae8b0392 content-length: - '0' date: - - Thu, 11 Jun 2020 15:42:35 GMT + - Fri, 10 Jul 2020 18:43:27 GMT location: - - https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/65275b78-c170-4901-8365-d9ed9f30ffa7 + - https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/00f7fbe5-a3c7-4e24-a871-9b9a6a450fc1 strict-transport-security: - max-age=31536000; includeSubDomains; preload x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '123' + - '39' status: code: 201 message: Created @@ -49,15 +48,50 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/65275b78-c170-4901-8365-d9ed9f30ffa7?includeKeys=true + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/00f7fbe5-a3c7-4e24-a871-9b9a6a450fc1?includeKeys=true response: body: - string: '{"modelInfo": {"modelId": "65275b78-c170-4901-8365-d9ed9f30ffa7", "status": - "ready", "createdDateTime": "2020-06-11T15:42:35Z", "lastUpdatedDateTime": - "2020-06-11T15:42:37Z"}, "trainResult": {"averageModelAccuracy": 0.889, "trainingDocuments": + string: '{"modelInfo": {"modelId": "00f7fbe5-a3c7-4e24-a871-9b9a6a450fc1", "status": + "creating", "createdDateTime": "2020-07-10T18:43:28Z", "lastUpdatedDateTime": + "2020-07-10T18:43:28Z"}}' + headers: + apim-request-id: + - 6e9418db-a692-4a4a-a0b6-13d5c50b1d37 + content-type: + - application/json; charset=utf-8 + date: + - Fri, 10 Jul 2020 18:43:32 GMT + strict-transport-security: + - max-age=31536000; includeSubDomains; preload + transfer-encoding: + - chunked + x-content-type-options: + - nosniff + x-envoy-upstream-service-time: + - '152' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + method: GET + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/00f7fbe5-a3c7-4e24-a871-9b9a6a450fc1?includeKeys=true + response: + body: + string: '{"modelInfo": {"modelId": "00f7fbe5-a3c7-4e24-a871-9b9a6a450fc1", "status": + "ready", "createdDateTime": "2020-07-10T18:43:28Z", "lastUpdatedDateTime": + "2020-07-10T18:43:35Z"}, "trainResult": {"averageModelAccuracy": 0.889, "trainingDocuments": [{"documentName": "multipage_invoice1.pdf", "pages": 3, "status": "succeeded"}, {"documentName": "multipage_invoice2.pdf", "pages": 3, "status": "succeeded"}, {"documentName": "multipage_invoice3.pdf", "pages": 3, "status": "succeeded"}, @@ -76,11 +110,11 @@ interactions: 1.0}, {"fieldName": "Total2", "accuracy": 1.0}], "errors": []}}' headers: apim-request-id: - - f53ed914-7cbe-4353-87dd-0bc0cd55c022 + - 583e7081-3c18-48b3-abb6-91bc37eb7a5b content-type: - application/json; charset=utf-8 date: - - Thu, 11 Jun 2020 15:42:40 GMT + - Fri, 10 Jul 2020 18:43:37 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -88,7 +122,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '16' + - '172' status: code: 200 message: OK @@ -2018,28 +2052,27 @@ interactions: Content-Type: - application/pdf User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) method: POST - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/65275b78-c170-4901-8365-d9ed9f30ffa7/analyze?includeTextDetails=true + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/00f7fbe5-a3c7-4e24-a871-9b9a6a450fc1/analyze?includeTextDetails=true response: body: string: '' headers: apim-request-id: - - 385eb85e-d06e-4be0-aae1-bfe37bbb5e72 + - 4c450e99-d339-4f7a-92aa-d5002aa8f581 content-length: - '0' date: - - Thu, 11 Jun 2020 15:42:40 GMT + - Fri, 10 Jul 2020 18:43:39 GMT operation-location: - - https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/65275b78-c170-4901-8365-d9ed9f30ffa7/analyzeresults/9feaf139-455d-4857-a657-cd9e3374290a + - https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/00f7fbe5-a3c7-4e24-a871-9b9a6a450fc1/analyzeresults/4d73b3c9-4ff2-4dd1-b8e6-9151a9619f76 strict-transport-security: - max-age=31536000; includeSubDomains; preload x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '87' + - '256' status: code: 202 message: Accepted @@ -2053,14 +2086,13 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/65275b78-c170-4901-8365-d9ed9f30ffa7/analyzeresults/9feaf139-455d-4857-a657-cd9e3374290a + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/00f7fbe5-a3c7-4e24-a871-9b9a6a450fc1/analyzeresults/4d73b3c9-4ff2-4dd1-b8e6-9151a9619f76 response: body: - string: '{"status": "succeeded", "createdDateTime": "2020-06-11T15:42:41Z", - "lastUpdatedDateTime": "2020-06-11T15:42:46Z", "analyzeResult": {"version": + string: '{"status": "succeeded", "createdDateTime": "2020-07-10T18:43:39Z", + "lastUpdatedDateTime": "2020-07-10T18:43:47Z", "analyzeResult": {"version": "2.0.0", "readResults": [{"page": 1, "language": "en", "angle": 0, "width": 8.5, "height": 11, "unit": "inch", "lines": [{"boundingBox": [0.8861, 1.1217, 2.3783, 1.1217, 2.3783, 1.2812, 0.8861, 1.2812], "text": "Company A Invoice", @@ -2441,86 +2473,87 @@ interactions: {"rowIndex": 7, "columnIndex": 2, "text": "220.00", "boundingBox": [5.3353, 4.4181, 7.4997, 4.4181, 7.4997, 4.6281, 5.3353, 4.6281], "elements": ["#/readResults/2/lines/33/words/0"]}]}]}], "documentResults": [{"docType": "custom:form", "pageRange": [1, 3], "fields": - {"Total": {"type": "string", "valueString": "430.00", "text": "430.00", "page": - 1, "boundingBox": [5.94, 5.565, 6.4, 5.565, 6.4, 5.675, 5.94, 5.675], "confidence": - 1.0, "elements": ["#/analyzeResult/readResults/0/lines/37/words/1"]}, "Signature": - {"type": "string", "valueString": "Bilbo Baggins", "text": "Bilbo Baggins", - "page": 1, "boundingBox": [2.05, 6.655, 3.04, 6.655, 3.04, 6.8, 2.05, 6.8], - "confidence": 1.0, "elements": ["#/analyzeResult/readResults/0/lines/38/words/1", - "#/analyzeResult/readResults/0/lines/38/words/2"]}, "MerchantPhoneNumber": - {"type": "string", "valueString": "555-555-5555", "text": "555-555-5555", - "page": 1, "boundingBox": [0.885, 2.29, 1.81, 2.29, 1.81, 2.395, 0.885, 2.395], - "confidence": 1.0, "elements": ["#/analyzeResult/readResults/0/lines/9/words/0"]}, - "Merchant": {"type": "string", "valueString": "A", "text": "A", "page": 1, - "boundingBox": [1.67, 1.125, 1.7750000000000001, 1.125, 1.7750000000000001, - 1.245, 1.67, 1.245], "confidence": 1.0, "elements": ["#/analyzeResult/readResults/0/lines/0/words/1"]}, - "Tax": {"type": "string", "valueString": "30.00", "text": "30.00", "page": + {"Tax": {"type": "string", "valueString": "30.00", "text": "30.00", "page": 1, "boundingBox": [5.835, 5.125, 6.2, 5.125, 6.2, 5.235, 5.835, 5.235], "confidence": - 1.0, "elements": ["#/analyzeResult/readResults/0/lines/35/words/1"]}, "CustomerAddress": - {"type": "string", "valueString": "123 Hobbit Lane Redmond, WA", "text": "123 - Hobbit Lane Redmond, WA", "page": 1, "boundingBox": [6.015000000000001, 1.67, - 7.1000000000000005, 1.67, 7.1000000000000005, 2.0300000000000002, 6.015000000000001, - 2.0300000000000002], "confidence": 1.0, "elements": ["#/analyzeResult/readResults/0/lines/4/words/0", - "#/analyzeResult/readResults/0/lines/4/words/1", "#/analyzeResult/readResults/0/lines/4/words/2", - "#/analyzeResult/readResults/0/lines/6/words/0", "#/analyzeResult/readResults/0/lines/6/words/1"]}, - "Subtotal": {"type": "string", "valueString": "300.00", "text": "300.00", - "page": 1, "boundingBox": [6.18, 4.905, 6.63, 4.905, 6.63, 5.015, 6.18, 5.015], - "confidence": 1.0, "elements": ["#/analyzeResult/readResults/0/lines/34/words/1"]}, - "CustomerPhoneNumber": {"type": "string", "valueString": "555-555-5555", "text": - "555-555-5555", "page": 1, "boundingBox": [6.01, 2.12, 6.9350000000000005, - 2.12, 6.9350000000000005, 2.225, 6.01, 2.225], "confidence": 1.0, "elements": - ["#/analyzeResult/readResults/0/lines/8/words/0"]}, "Merchant2": {"type": - "string", "valueString": "Company", "text": "Company", "page": 1, "boundingBox": - [0.885, 1.125, 1.62, 1.125, 1.62, 1.28, 0.885, 1.28], "confidence": 1.0, "elements": - ["#/analyzeResult/readResults/0/lines/0/words/0"]}, "MerchantAddress": {"type": - "string", "valueString": "567 Main St. Redmond, WA", "text": "567 Main St. - Redmond, WA", "page": 1, "boundingBox": [0.885, 1.845, 1.855, 1.845, 1.855, - 2.2, 0.885, 2.2], "confidence": 1.0, "elements": ["#/analyzeResult/readResults/0/lines/5/words/0", - "#/analyzeResult/readResults/0/lines/5/words/1", "#/analyzeResult/readResults/0/lines/5/words/2", - "#/analyzeResult/readResults/0/lines/7/words/0", "#/analyzeResult/readResults/0/lines/7/words/1"]}, - "Customer2": {"type": "string", "valueString": "Frodo Baggins", "text": "Frodo - Baggins", "page": 3, "boundingBox": [6.015000000000001, 1.45, 6.95, 1.45, - 6.95, 1.595, 6.015000000000001, 1.595], "confidence": 1.0, "elements": ["#/analyzeResult/readResults/2/lines/3/words/0", - "#/analyzeResult/readResults/2/lines/3/words/1"]}, "Tip": {"type": "string", - "valueString": "100.00", "text": "100.00", "page": 1, "boundingBox": [5.8100000000000005, - 5.345, 6.26, 5.345, 6.26, 5.455, 5.8100000000000005, 5.455], "confidence": - 1.0, "elements": ["#/analyzeResult/readResults/0/lines/36/words/1"]}, "FirstItem": - {"type": "string", "valueString": "A", "text": "A", "page": 1, "boundingBox": - [1.085, 3.21, 1.175, 3.21, 1.175, 3.3200000000000003, 1.085, 3.3200000000000003], - "confidence": 1.0, "elements": ["#/analyzeResult/readResults/0/lines/13/words/0"]}, - "CustomerName": {"type": "string", "valueString": "Bilbo Baggins", "text": - "Bilbo Baggins", "page": 1, "boundingBox": [6.015000000000001, 1.45, 6.8950000000000005, - 1.45, 6.8950000000000005, 1.595, 6.015000000000001, 1.595], "confidence": - 1.0, "elements": ["#/analyzeResult/readResults/0/lines/3/words/0", "#/analyzeResult/readResults/0/lines/3/words/1"]}, - "Total2": {"type": "string", "valueString": "4300.00", "text": "4300.00", - "page": 3, "boundingBox": [5.94, 5.565, 6.48, 5.565, 6.48, 5.675, 5.94, 5.675], - "confidence": 1.0, "elements": ["#/analyzeResult/readResults/2/lines/37/words/1"]}, + 1.0, "elements": ["#/analyzeResult/readResults/0/lines/35/words/1"]}, "CustomerPhoneNumber": + {"type": "string", "valueString": "555-555-5555", "text": "555-555-5555", + "page": 1, "boundingBox": [6.01, 2.12, 6.9350000000000005, 2.12, 6.9350000000000005, + 2.225, 6.01, 2.225], "confidence": 1.0, "elements": ["#/analyzeResult/readResults/0/lines/8/words/0"]}, "FirstQuantity": {"type": "string", "valueString": "1", "text": "1", "page": 1, "boundingBox": [3.2600000000000002, 3.21, 3.3200000000000003, 3.21, 3.3200000000000003, 3.3200000000000003, 3.2600000000000002, 3.3200000000000003], "confidence": - 1.0, "elements": ["#/analyzeResult/readResults/0/lines/14/words/0"]}, "FirstPrice": - {"type": "string", "valueString": "10.99", "text": "10.99", "page": 1, "boundingBox": + 1.0, "elements": ["#/analyzeResult/readResults/0/lines/14/words/0"]}, "Customer2": + {"type": "string", "valueString": "Frodo Baggins", "text": "Frodo Baggins", + "page": 3, "boundingBox": [6.015000000000001, 1.45, 6.95, 1.45, 6.95, 1.595, + 6.015000000000001, 1.595], "confidence": 1.0, "elements": ["#/analyzeResult/readResults/2/lines/3/words/0", + "#/analyzeResult/readResults/2/lines/3/words/1"]}, "FirstPrice": {"type": + "string", "valueString": "10.99", "text": "10.99", "page": 1, "boundingBox": [5.425, 3.21, 5.78, 3.21, 5.78, 3.3200000000000003, 5.425, 3.3200000000000003], "confidence": 1.0, "elements": ["#/analyzeResult/readResults/0/lines/15/words/0"]}, + "CustomerName": {"type": "string", "valueString": "Bilbo Baggins", "text": + "Bilbo Baggins", "page": 1, "boundingBox": [6.015000000000001, 1.45, 6.8950000000000005, + 1.45, 6.8950000000000005, 1.595, 6.015000000000001, 1.595], "confidence": + 1.0, "elements": ["#/analyzeResult/readResults/0/lines/3/words/0", "#/analyzeResult/readResults/0/lines/3/words/1"]}, + "Subtotal": {"type": "string", "valueString": "300.00", "text": "300.00", + "page": 1, "boundingBox": [6.18, 4.905, 6.63, 4.905, 6.63, 5.015, 6.18, 5.015], + "confidence": 1.0, "elements": ["#/analyzeResult/readResults/0/lines/34/words/1"]}, + "Merchant2": {"type": "string", "valueString": "Company", "text": "Company", + "page": 1, "boundingBox": [0.885, 1.125, 1.62, 1.125, 1.62, 1.28, 0.885, 1.28], + "confidence": 1.0, "elements": ["#/analyzeResult/readResults/0/lines/0/words/0"]}, "Signature2": {"type": "string", "valueString": "Frodo Baggins", "text": "Frodo Baggins", "page": 3, "boundingBox": [2.07, 6.655, 3.09, 6.655, 3.09, 6.8, 2.07, 6.8], "confidence": 0.16, "elements": ["#/analyzeResult/readResults/2/lines/38/words/1", - "#/analyzeResult/readResults/2/lines/38/words/2"]}}}], "errors": []}}' + "#/analyzeResult/readResults/2/lines/38/words/2"]}, "FirstItem": {"type": + "string", "valueString": "A", "text": "A", "page": 1, "boundingBox": [1.085, + 3.21, 1.175, 3.21, 1.175, 3.3200000000000003, 1.085, 3.3200000000000003], + "confidence": 1.0, "elements": ["#/analyzeResult/readResults/0/lines/13/words/0"]}, + "Signature": {"type": "string", "valueString": "Bilbo Baggins", "text": "Bilbo + Baggins", "page": 1, "boundingBox": [2.05, 6.655, 3.04, 6.655, 3.04, 6.8, + 2.05, 6.8], "confidence": 1.0, "elements": ["#/analyzeResult/readResults/0/lines/38/words/1", + "#/analyzeResult/readResults/0/lines/38/words/2"]}, "Tip": {"type": "string", + "valueString": "100.00", "text": "100.00", "page": 1, "boundingBox": [5.8100000000000005, + 5.345, 6.26, 5.345, 6.26, 5.455, 5.8100000000000005, 5.455], "confidence": + 1.0, "elements": ["#/analyzeResult/readResults/0/lines/36/words/1"]}, "CustomerAddress": + {"type": "string", "valueString": "123 Hobbit Lane Redmond, WA", "text": "123 + Hobbit Lane Redmond, WA", "page": 1, "boundingBox": [6.015000000000001, 1.67, + 7.1000000000000005, 1.67, 7.1000000000000005, 2.0300000000000002, 6.015000000000001, + 2.0300000000000002], "confidence": 1.0, "elements": ["#/analyzeResult/readResults/0/lines/4/words/0", + "#/analyzeResult/readResults/0/lines/4/words/1", "#/analyzeResult/readResults/0/lines/4/words/2", + "#/analyzeResult/readResults/0/lines/6/words/0", "#/analyzeResult/readResults/0/lines/6/words/1"]}, + "Merchant": {"type": "string", "valueString": "A", "text": "A", "page": 1, + "boundingBox": [1.67, 1.125, 1.7750000000000001, 1.125, 1.7750000000000001, + 1.245, 1.67, 1.245], "confidence": 1.0, "elements": ["#/analyzeResult/readResults/0/lines/0/words/1"]}, + "MerchantAddress": {"type": "string", "valueString": "567 Main St. Redmond, + WA", "text": "567 Main St. Redmond, WA", "page": 1, "boundingBox": [0.885, + 1.845, 1.855, 1.845, 1.855, 2.2, 0.885, 2.2], "confidence": 1.0, "elements": + ["#/analyzeResult/readResults/0/lines/5/words/0", "#/analyzeResult/readResults/0/lines/5/words/1", + "#/analyzeResult/readResults/0/lines/5/words/2", "#/analyzeResult/readResults/0/lines/7/words/0", + "#/analyzeResult/readResults/0/lines/7/words/1"]}, "MerchantPhoneNumber": + {"type": "string", "valueString": "555-555-5555", "text": "555-555-5555", + "page": 1, "boundingBox": [0.885, 2.29, 1.81, 2.29, 1.81, 2.395, 0.885, 2.395], + "confidence": 1.0, "elements": ["#/analyzeResult/readResults/0/lines/9/words/0"]}, + "Total": {"type": "string", "valueString": "430.00", "text": "430.00", "page": + 1, "boundingBox": [5.94, 5.565, 6.4, 5.565, 6.4, 5.675, 5.94, 5.675], "confidence": + 1.0, "elements": ["#/analyzeResult/readResults/0/lines/37/words/1"]}, "Total2": + {"type": "string", "valueString": "4300.00", "text": "4300.00", "page": 3, + "boundingBox": [5.94, 5.565, 6.48, 5.565, 6.48, 5.675, 5.94, 5.675], "confidence": + 1.0, "elements": ["#/analyzeResult/readResults/2/lines/37/words/1"]}}}], "errors": + []}}' headers: apim-request-id: - - ff609187-e41d-44f1-b21d-4e8b270a59c6 + - 05f9a31b-4136-4166-85e8-357a1cb5bc5e content-length: - '32675' content-type: - application/json; charset=utf-8 date: - - Thu, 11 Jun 2020 15:42:46 GMT + - Fri, 10 Jul 2020 18:43:50 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '56' + - '5985' status: code: 200 message: OK diff --git a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_custom_forms.test_custom_form_multipage_unlabeled.yaml b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_custom_forms.test_custom_form_multipage_unlabeled.yaml index 2d3a26382fe2..6a114fe1107e 100644 --- a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_custom_forms.test_custom_form_multipage_unlabeled.yaml +++ b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_custom_forms.test_custom_form_multipage_unlabeled.yaml @@ -14,28 +14,27 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) method: POST - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models response: body: string: '' headers: apim-request-id: - - 8bcf705b-bde7-4dc2-93dc-9bbe1ab2a95b + - 44cd59d2-dd11-48cd-bdf0-d4ba2a5b1d17 content-length: - '0' date: - - Thu, 11 Jun 2020 15:42:47 GMT + - Fri, 10 Jul 2020 18:43:51 GMT location: - - https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/096d5c28-1a50-41eb-9939-7fbcbabf4243 + - https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/30998e09-3dc8-4816-bad2-4d3318719b0c strict-transport-security: - max-age=31536000; includeSubDomains; preload x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '808' + - '1457' status: code: 201 message: Created @@ -49,22 +48,21 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/096d5c28-1a50-41eb-9939-7fbcbabf4243?includeKeys=true + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/30998e09-3dc8-4816-bad2-4d3318719b0c?includeKeys=true response: body: - string: '{"modelInfo": {"modelId": "096d5c28-1a50-41eb-9939-7fbcbabf4243", "status": - "creating", "createdDateTime": "2020-06-11T15:42:48Z", "lastUpdatedDateTime": - "2020-06-11T15:42:48Z"}}' + string: '{"modelInfo": {"modelId": "30998e09-3dc8-4816-bad2-4d3318719b0c", "status": + "creating", "createdDateTime": "2020-07-10T18:43:51Z", "lastUpdatedDateTime": + "2020-07-10T18:43:51Z"}}' headers: apim-request-id: - - 702a6a32-9114-4ed4-bbd9-cb784d338d3d + - 5cf641db-9a76-4604-a41a-ba1ec5587a3b content-type: - application/json; charset=utf-8 date: - - Thu, 11 Jun 2020 15:42:53 GMT + - Fri, 10 Jul 2020 18:44:00 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -72,7 +70,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '48' + - '3652' status: code: 200 message: OK @@ -86,22 +84,21 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/096d5c28-1a50-41eb-9939-7fbcbabf4243?includeKeys=true + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/30998e09-3dc8-4816-bad2-4d3318719b0c?includeKeys=true response: body: - string: '{"modelInfo": {"modelId": "096d5c28-1a50-41eb-9939-7fbcbabf4243", "status": - "creating", "createdDateTime": "2020-06-11T15:42:48Z", "lastUpdatedDateTime": - "2020-06-11T15:42:48Z"}}' + string: '{"modelInfo": {"modelId": "30998e09-3dc8-4816-bad2-4d3318719b0c", "status": + "creating", "createdDateTime": "2020-07-10T18:43:51Z", "lastUpdatedDateTime": + "2020-07-10T18:43:51Z"}}' headers: apim-request-id: - - 0ee7f94d-e720-4eac-a669-c81372b4abf8 + - fd5f28b3-aaf1-4b3d-b27f-1d9256f0b4ae content-type: - application/json; charset=utf-8 date: - - Thu, 11 Jun 2020 15:42:57 GMT + - Fri, 10 Jul 2020 18:44:05 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -109,7 +106,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '16' + - '59' status: code: 200 message: OK @@ -123,89 +120,14 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/096d5c28-1a50-41eb-9939-7fbcbabf4243?includeKeys=true + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/30998e09-3dc8-4816-bad2-4d3318719b0c?includeKeys=true response: body: - string: '{"modelInfo": {"modelId": "096d5c28-1a50-41eb-9939-7fbcbabf4243", "status": - "creating", "createdDateTime": "2020-06-11T15:42:48Z", "lastUpdatedDateTime": - "2020-06-11T15:42:48Z"}}' - headers: - apim-request-id: - - f8da2bc9-1a4e-404c-8431-ddef0ac55be1 - content-type: - - application/json; charset=utf-8 - date: - - Thu, 11 Jun 2020 15:43:03 GMT - strict-transport-security: - - max-age=31536000; includeSubDomains; preload - transfer-encoding: - - chunked - x-content-type-options: - - nosniff - x-envoy-upstream-service-time: - - '18' - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) - method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/096d5c28-1a50-41eb-9939-7fbcbabf4243?includeKeys=true - response: - body: - string: '{"modelInfo": {"modelId": "096d5c28-1a50-41eb-9939-7fbcbabf4243", "status": - "creating", "createdDateTime": "2020-06-11T15:42:48Z", "lastUpdatedDateTime": - "2020-06-11T15:42:48Z"}}' - headers: - apim-request-id: - - 294b1f46-cf55-42fa-ab06-dfb4c8ddd93b - content-type: - - application/json; charset=utf-8 - date: - - Thu, 11 Jun 2020 15:43:08 GMT - strict-transport-security: - - max-age=31536000; includeSubDomains; preload - transfer-encoding: - - chunked - x-content-type-options: - - nosniff - x-envoy-upstream-service-time: - - '46' - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) - method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/096d5c28-1a50-41eb-9939-7fbcbabf4243?includeKeys=true - response: - body: - string: '{"modelInfo": {"modelId": "096d5c28-1a50-41eb-9939-7fbcbabf4243", "status": - "ready", "createdDateTime": "2020-06-11T15:42:48Z", "lastUpdatedDateTime": - "2020-06-11T15:43:08Z"}, "keys": {"clusters": {"0": ["Address:", "Invoice + string: '{"modelInfo": {"modelId": "30998e09-3dc8-4816-bad2-4d3318719b0c", "status": + "ready", "createdDateTime": "2020-07-10T18:43:51Z", "lastUpdatedDateTime": + "2020-07-10T18:44:08Z"}, "keys": {"clusters": {"0": ["Address:", "Invoice For:", "Item", "Price", "Quantity", "Redmond, WA", "Signature:", "Subtotal:", "Tax:", "Tip:", "Total:"]}}, "trainResult": {"trainingDocuments": [{"documentName": "multipage_invoice1.pdf", "pages": 3, "errors": [], "status": "succeeded"}, @@ -216,11 +138,11 @@ interactions: "pages": 3, "errors": [], "status": "succeeded"}], "errors": []}}' headers: apim-request-id: - - f90c2967-e2b0-460e-907e-db23b80711f5 + - 7bd126a3-cc04-4a60-a4ec-6bf53f335148 content-type: - application/json; charset=utf-8 date: - - Thu, 11 Jun 2020 15:43:14 GMT + - Fri, 10 Jul 2020 18:44:11 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -228,7 +150,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '48' + - '50' status: code: 200 message: OK @@ -2162,28 +2084,27 @@ interactions: Content-Type: - application/pdf User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) method: POST - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/096d5c28-1a50-41eb-9939-7fbcbabf4243/analyze?includeTextDetails=false + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/30998e09-3dc8-4816-bad2-4d3318719b0c/analyze?includeTextDetails=false response: body: string: '' headers: apim-request-id: - - e6cb43db-baf3-4a80-8585-9e8e83177c74 + - 17b0e3cb-2a87-4d7a-a9aa-181269d708e1 content-length: - '0' date: - - Thu, 11 Jun 2020 15:43:16 GMT + - Fri, 10 Jul 2020 18:44:12 GMT operation-location: - - https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/096d5c28-1a50-41eb-9939-7fbcbabf4243/analyzeresults/126f865a-1f26-41ba-8e0d-191e0f166fc8 + - https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/30998e09-3dc8-4816-bad2-4d3318719b0c/analyzeresults/35de8749-1641-4adb-9c95-897df931afcf strict-transport-security: - max-age=31536000; includeSubDomains; preload x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '837' + - '174' status: code: 202 message: Accepted @@ -2197,29 +2118,28 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/096d5c28-1a50-41eb-9939-7fbcbabf4243/analyzeresults/126f865a-1f26-41ba-8e0d-191e0f166fc8 + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/30998e09-3dc8-4816-bad2-4d3318719b0c/analyzeresults/35de8749-1641-4adb-9c95-897df931afcf response: body: - string: '{"status": "running", "createdDateTime": "2020-06-11T15:43:15Z", "lastUpdatedDateTime": - "2020-06-11T15:43:17Z", "analyzeResult": null}' + string: '{"status": "running", "createdDateTime": "2020-07-10T18:44:12Z", "lastUpdatedDateTime": + "2020-07-10T18:44:13Z", "analyzeResult": null}' headers: apim-request-id: - - d523d40e-6764-46cb-b36f-1f65611fa1e4 + - 2ef2d605-b993-439b-9dee-7e7d9927dcc2 content-length: - '134' content-type: - application/json; charset=utf-8 date: - - Thu, 11 Jun 2020 15:43:21 GMT + - Fri, 10 Jul 2020 18:44:16 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '828' + - '47' status: code: 200 message: OK @@ -2233,14 +2153,13 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/096d5c28-1a50-41eb-9939-7fbcbabf4243/analyzeresults/126f865a-1f26-41ba-8e0d-191e0f166fc8 + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/30998e09-3dc8-4816-bad2-4d3318719b0c/analyzeresults/35de8749-1641-4adb-9c95-897df931afcf response: body: - string: '{"status": "succeeded", "createdDateTime": "2020-06-11T15:43:15Z", - "lastUpdatedDateTime": "2020-06-11T15:43:24Z", "analyzeResult": {"version": + string: '{"status": "succeeded", "createdDateTime": "2020-07-10T18:44:12Z", + "lastUpdatedDateTime": "2020-07-10T18:44:18Z", "analyzeResult": {"version": "2.0.0", "readResults": [{"page": 1, "angle": 0, "width": 8.5, "height": 11.0, "unit": "inch", "lines": []}, {"page": 2, "angle": 0, "width": 8.5, "height": 11.0, "unit": "inch", "lines": []}, {"page": 3, "angle": 0, "width": 8.5, @@ -2465,19 +2384,19 @@ interactions: false}]}], "clusterId": 0}], "documentResults": [], "errors": []}}' headers: apim-request-id: - - 6f45ddcd-749e-413c-8d9a-edff4cb0ed76 + - 0e16d24f-0ff4-4def-9935-616ceed14a87 content-length: - '17652' content-type: - application/json; charset=utf-8 date: - - Thu, 11 Jun 2020 15:43:32 GMT + - Fri, 10 Jul 2020 18:44:22 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '5974' + - '50' status: code: 200 message: OK diff --git a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_custom_forms.test_custom_form_multipage_unlabeled_transform.yaml b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_custom_forms.test_custom_form_multipage_unlabeled_transform.yaml index 6fe3a2aac47a..4c40052887fc 100644 --- a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_custom_forms.test_custom_form_multipage_unlabeled_transform.yaml +++ b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_custom_forms.test_custom_form_multipage_unlabeled_transform.yaml @@ -14,28 +14,27 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) method: POST - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models response: body: string: '' headers: apim-request-id: - - 37ae7cc4-e7bc-4946-af1f-c60b3c690521 + - 1d6b118c-02d7-4890-bf17-fb85fc731143 content-length: - '0' date: - - Thu, 11 Jun 2020 15:41:12 GMT + - Fri, 10 Jul 2020 18:44:22 GMT location: - - https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/eb2d994a-379d-4965-aa19-651f297efc71 + - https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/8b51591f-21ca-41f8-abe6-4febf08b1e52 strict-transport-security: - max-age=31536000; includeSubDomains; preload x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '238' + - '97' status: code: 201 message: Created @@ -49,22 +48,21 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/eb2d994a-379d-4965-aa19-651f297efc71?includeKeys=true + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/8b51591f-21ca-41f8-abe6-4febf08b1e52?includeKeys=true response: body: - string: '{"modelInfo": {"modelId": "eb2d994a-379d-4965-aa19-651f297efc71", "status": - "creating", "createdDateTime": "2020-06-11T15:41:12Z", "lastUpdatedDateTime": - "2020-06-11T15:41:12Z"}}' + string: '{"modelInfo": {"modelId": "8b51591f-21ca-41f8-abe6-4febf08b1e52", "status": + "creating", "createdDateTime": "2020-07-10T18:44:23Z", "lastUpdatedDateTime": + "2020-07-10T18:44:23Z"}}' headers: apim-request-id: - - 3d8f8993-1db1-4cd1-a29f-c301a87a074a + - 9a73c33a-a008-490a-bd28-6eab4ef50e88 content-type: - application/json; charset=utf-8 date: - - Thu, 11 Jun 2020 15:41:18 GMT + - Fri, 10 Jul 2020 18:44:27 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -72,7 +70,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '112' + - '17' status: code: 200 message: OK @@ -86,22 +84,21 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/eb2d994a-379d-4965-aa19-651f297efc71?includeKeys=true + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/8b51591f-21ca-41f8-abe6-4febf08b1e52?includeKeys=true response: body: - string: '{"modelInfo": {"modelId": "eb2d994a-379d-4965-aa19-651f297efc71", "status": - "creating", "createdDateTime": "2020-06-11T15:41:12Z", "lastUpdatedDateTime": - "2020-06-11T15:41:12Z"}}' + string: '{"modelInfo": {"modelId": "8b51591f-21ca-41f8-abe6-4febf08b1e52", "status": + "creating", "createdDateTime": "2020-07-10T18:44:23Z", "lastUpdatedDateTime": + "2020-07-10T18:44:23Z"}}' headers: apim-request-id: - - f613e194-b543-4c59-b54b-6d4c4099c1b3 + - 6f6eed8d-cc58-47ff-ba74-190f7abc4be4 content-type: - application/json; charset=utf-8 date: - - Thu, 11 Jun 2020 15:41:22 GMT + - Fri, 10 Jul 2020 18:44:32 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -109,7 +106,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '78' + - '16' status: code: 200 message: OK @@ -123,15 +120,50 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/eb2d994a-379d-4965-aa19-651f297efc71?includeKeys=true + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/8b51591f-21ca-41f8-abe6-4febf08b1e52?includeKeys=true response: body: - string: '{"modelInfo": {"modelId": "eb2d994a-379d-4965-aa19-651f297efc71", "status": - "ready", "createdDateTime": "2020-06-11T15:41:12Z", "lastUpdatedDateTime": - "2020-06-11T15:41:27Z"}, "keys": {"clusters": {"0": ["Address:", "Invoice + string: '{"modelInfo": {"modelId": "8b51591f-21ca-41f8-abe6-4febf08b1e52", "status": + "creating", "createdDateTime": "2020-07-10T18:44:23Z", "lastUpdatedDateTime": + "2020-07-10T18:44:23Z"}}' + headers: + apim-request-id: + - cf54568c-c69f-47dd-aaff-1290ad83f5e6 + content-type: + - application/json; charset=utf-8 + date: + - Fri, 10 Jul 2020 18:44:38 GMT + strict-transport-security: + - max-age=31536000; includeSubDomains; preload + transfer-encoding: + - chunked + x-content-type-options: + - nosniff + x-envoy-upstream-service-time: + - '18' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + method: GET + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/8b51591f-21ca-41f8-abe6-4febf08b1e52?includeKeys=true + response: + body: + string: '{"modelInfo": {"modelId": "8b51591f-21ca-41f8-abe6-4febf08b1e52", "status": + "ready", "createdDateTime": "2020-07-10T18:44:23Z", "lastUpdatedDateTime": + "2020-07-10T18:44:39Z"}, "keys": {"clusters": {"0": ["Address:", "Invoice For:", "Item", "Price", "Quantity", "Redmond, WA", "Signature:", "Subtotal:", "Tax:", "Tip:", "Total:"]}}, "trainResult": {"trainingDocuments": [{"documentName": "multipage_invoice1.pdf", "pages": 3, "errors": [], "status": "succeeded"}, @@ -142,11 +174,11 @@ interactions: "pages": 3, "errors": [], "status": "succeeded"}], "errors": []}}' headers: apim-request-id: - - b190f414-3dc8-43bd-9a23-4b977efbd87f + - 84f83eef-fa2d-47d2-bb74-f7b1f3e0d48c content-type: - application/json; charset=utf-8 date: - - Thu, 11 Jun 2020 15:41:28 GMT + - Fri, 10 Jul 2020 18:44:43 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -154,7 +186,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '78' + - '18' status: code: 200 message: OK @@ -2084,28 +2116,27 @@ interactions: Content-Type: - application/pdf User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) method: POST - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/eb2d994a-379d-4965-aa19-651f297efc71/analyze?includeTextDetails=true + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/8b51591f-21ca-41f8-abe6-4febf08b1e52/analyze?includeTextDetails=true response: body: string: '' headers: apim-request-id: - - 146d40a2-0271-4247-9591-fb7a66eff5d7 + - 0162ad09-51c3-4712-afce-73d320527ce3 content-length: - '0' date: - - Thu, 11 Jun 2020 15:41:29 GMT + - Fri, 10 Jul 2020 18:44:43 GMT operation-location: - - https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/eb2d994a-379d-4965-aa19-651f297efc71/analyzeresults/5ab46a18-9f43-4b04-b31a-2184e3b0c049 + - https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/8b51591f-21ca-41f8-abe6-4febf08b1e52/analyzeresults/7f309d42-81e1-47a3-8a0e-517546d52852 strict-transport-security: - max-age=31536000; includeSubDomains; preload x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '145' + - '297' status: code: 202 message: Accepted @@ -2119,29 +2150,28 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/eb2d994a-379d-4965-aa19-651f297efc71/analyzeresults/5ab46a18-9f43-4b04-b31a-2184e3b0c049 + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/8b51591f-21ca-41f8-abe6-4febf08b1e52/analyzeresults/7f309d42-81e1-47a3-8a0e-517546d52852 response: body: - string: '{"status": "running", "createdDateTime": "2020-06-11T15:41:29Z", "lastUpdatedDateTime": - "2020-06-11T15:41:30Z", "analyzeResult": null}' + string: '{"status": "running", "createdDateTime": "2020-07-10T18:44:44Z", "lastUpdatedDateTime": + "2020-07-10T18:44:45Z", "analyzeResult": null}' headers: apim-request-id: - - da4db477-3bd3-46f6-b9a9-6527a51391a5 + - 99f5176f-2c7a-4e63-ac17-c59d93410fc0 content-length: - '134' content-type: - application/json; charset=utf-8 date: - - Thu, 11 Jun 2020 15:41:34 GMT + - Fri, 10 Jul 2020 18:44:49 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '224' + - '715' status: code: 200 message: OK @@ -2155,14 +2185,13 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/eb2d994a-379d-4965-aa19-651f297efc71/analyzeresults/5ab46a18-9f43-4b04-b31a-2184e3b0c049 + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/8b51591f-21ca-41f8-abe6-4febf08b1e52/analyzeresults/7f309d42-81e1-47a3-8a0e-517546d52852 response: body: - string: '{"status": "succeeded", "createdDateTime": "2020-06-11T15:41:29Z", - "lastUpdatedDateTime": "2020-06-11T15:41:37Z", "analyzeResult": {"version": + string: '{"status": "succeeded", "createdDateTime": "2020-07-10T18:44:44Z", + "lastUpdatedDateTime": "2020-07-10T18:44:51Z", "analyzeResult": {"version": "2.0.0", "readResults": [{"page": 1, "angle": 0, "width": 8.5, "height": 11.0, "unit": "inch", "lines": [{"text": "Company A Invoice", "boundingBox": [0.8764, 1.1014, 2.3875, 1.1014, 2.3875, 1.2958, 0.8764, 1.2958], "words": [{"text": @@ -2676,19 +2705,19 @@ interactions: [], "errors": []}}' headers: apim-request-id: - - 047622e0-5751-423d-a763-d50c96aee7b9 + - a7fbd4d4-81c0-47bb-a174-00aedd732b72 content-length: - '42016' content-type: - application/json; charset=utf-8 date: - - Thu, 11 Jun 2020 15:41:39 GMT + - Fri, 10 Jul 2020 18:44:55 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '57' + - '56' status: code: 200 message: OK diff --git a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_custom_forms.test_custom_form_multipage_vendor_set_labeled_transform.yaml b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_custom_forms.test_custom_form_multipage_vendor_set_labeled_transform.yaml index f9895820194a..6623e71ae480 100644 --- a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_custom_forms.test_custom_form_multipage_vendor_set_labeled_transform.yaml +++ b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_custom_forms.test_custom_form_multipage_vendor_set_labeled_transform.yaml @@ -14,28 +14,27 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) method: POST - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models response: body: string: '' headers: apim-request-id: - - df30f2d5-2c62-40c9-a42f-6f73cef6d18e + - 540ed02a-881f-4153-8564-ed650c75f1a0 content-length: - '0' date: - - Thu, 11 Jun 2020 15:41:40 GMT + - Fri, 10 Jul 2020 18:44:56 GMT location: - - https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/0e13803c-f8e5-435b-a0af-c26f845cdf59 + - https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/dbb717aa-4021-4dc1-a621-7662115dcd67 strict-transport-security: - max-age=31536000; includeSubDomains; preload x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '67' + - '992' status: code: 201 message: Created @@ -49,52 +48,14 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/0e13803c-f8e5-435b-a0af-c26f845cdf59?includeKeys=true + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/dbb717aa-4021-4dc1-a621-7662115dcd67?includeKeys=true response: body: - string: '{"modelInfo": {"modelId": "0e13803c-f8e5-435b-a0af-c26f845cdf59", "status": - "creating", "createdDateTime": "2020-06-11T15:41:40Z", "lastUpdatedDateTime": - "2020-06-11T15:41:40Z"}}' - headers: - apim-request-id: - - 06ce948b-c69a-44c4-8f99-01cdc4bebdab - content-type: - - application/json; charset=utf-8 - date: - - Thu, 11 Jun 2020 15:41:45 GMT - strict-transport-security: - - max-age=31536000; includeSubDomains; preload - transfer-encoding: - - chunked - x-content-type-options: - - nosniff - x-envoy-upstream-service-time: - - '53' - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) - method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/0e13803c-f8e5-435b-a0af-c26f845cdf59?includeKeys=true - response: - body: - string: '{"modelInfo": {"modelId": "0e13803c-f8e5-435b-a0af-c26f845cdf59", "status": - "ready", "createdDateTime": "2020-06-11T15:41:40Z", "lastUpdatedDateTime": - "2020-06-11T15:41:47Z"}, "trainResult": {"averageModelAccuracy": 0.971, "trainingDocuments": + string: '{"modelInfo": {"modelId": "dbb717aa-4021-4dc1-a621-7662115dcd67", "status": + "ready", "createdDateTime": "2020-07-10T18:44:57Z", "lastUpdatedDateTime": + "2020-07-10T18:45:00Z"}, "trainResult": {"averageModelAccuracy": 0.971, "trainingDocuments": [{"documentName": "multi1.pdf", "pages": 2, "status": "succeeded"}, {"documentName": "multi2.pdf", "pages": 2, "status": "succeeded"}, {"documentName": "multi3.pdf", "pages": 2, "status": "succeeded"}, {"documentName": "multi4.pdf", "pages": @@ -106,11 +67,11 @@ interactions: 1.0}], "errors": []}}' headers: apim-request-id: - - afed9536-62cb-4ad3-8dac-e0c2aa13b849 + - 31461afa-9ce5-4c99-9dd2-62b87848c33b content-type: - application/json; charset=utf-8 date: - - Thu, 11 Jun 2020 15:41:51 GMT + - Fri, 10 Jul 2020 18:45:01 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -118,7 +79,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '22' + - '17' status: code: 200 message: OK @@ -12621,28 +12582,27 @@ interactions: Content-Type: - application/pdf User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) method: POST - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/0e13803c-f8e5-435b-a0af-c26f845cdf59/analyze?includeTextDetails=true + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/dbb717aa-4021-4dc1-a621-7662115dcd67/analyze?includeTextDetails=true response: body: string: '' headers: apim-request-id: - - 7f7e617e-4ca8-4691-9ebf-0a7ccb5bdeba + - b99a422c-db85-4078-bcb7-ad540ff59226 content-length: - '0' date: - - Thu, 11 Jun 2020 15:41:54 GMT + - Fri, 10 Jul 2020 18:45:04 GMT operation-location: - - https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/0e13803c-f8e5-435b-a0af-c26f845cdf59/analyzeresults/07c626ee-66d8-4764-a564-be5b915078fe + - https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/dbb717aa-4021-4dc1-a621-7662115dcd67/analyzeresults/623c90ca-2a22-45b8-978d-2cf3387c7be7 strict-transport-security: - max-age=31536000; includeSubDomains; preload x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '1020' + - '908' status: code: 202 message: Accepted @@ -12656,29 +12616,28 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/0e13803c-f8e5-435b-a0af-c26f845cdf59/analyzeresults/07c626ee-66d8-4764-a564-be5b915078fe + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/dbb717aa-4021-4dc1-a621-7662115dcd67/analyzeresults/623c90ca-2a22-45b8-978d-2cf3387c7be7 response: body: - string: '{"status": "notStarted", "createdDateTime": "2020-06-11T15:41:55Z", - "lastUpdatedDateTime": "2020-06-11T15:41:59Z"}' + string: '{"status": "notStarted", "createdDateTime": "2020-07-10T18:45:04Z", + "lastUpdatedDateTime": "2020-07-10T18:45:09Z"}' headers: apim-request-id: - - ddd0f1f2-3a61-45f4-a037-f982eedef492 + - a813745d-f618-4ccc-99b5-b9862953190e content-length: - '109' content-type: - application/json; charset=utf-8 date: - - Thu, 11 Jun 2020 15:42:06 GMT + - Fri, 10 Jul 2020 18:45:09 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '5975' + - '18' status: code: 200 message: OK @@ -12692,14 +12651,13 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/0e13803c-f8e5-435b-a0af-c26f845cdf59/analyzeresults/07c626ee-66d8-4764-a564-be5b915078fe + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/dbb717aa-4021-4dc1-a621-7662115dcd67/analyzeresults/623c90ca-2a22-45b8-978d-2cf3387c7be7 response: body: - string: '{"status": "succeeded", "createdDateTime": "2020-06-11T15:41:55Z", - "lastUpdatedDateTime": "2020-06-11T15:42:08Z", "analyzeResult": {"version": + string: '{"status": "succeeded", "createdDateTime": "2020-07-10T18:45:04Z", + "lastUpdatedDateTime": "2020-07-10T18:45:14Z", "analyzeResult": {"version": "2.0.0", "readResults": [{"page": 1, "language": "en", "angle": 0, "width": 8.5, "height": 11, "unit": "inch", "lines": [{"boundingBox": [6.1276, 1.0667, 7.4833, 1.0667, 7.4833, 1.2403, 6.1276, 1.2403], "text": "Vendor #:121", "words": @@ -13153,43 +13111,43 @@ interactions: {"rowIndex": 19, "columnIndex": 1, "text": "advertisements", "boundingBox": [2.625, 8.7083, 5.75, 8.7083, 5.75, 8.905, 2.625, 8.905], "elements": ["#/readResults/0/lines/56/words/0"]}]}]}, {"page": 2, "tables": []}], "documentResults": [{"docType": "custom:form", - "pageRange": [1, 2], "fields": {"Gold": {"type": "string", "valueString": - "$1,500", "text": "$1,500", "page": 1, "boundingBox": [5.835, 4.9, 6.285, - 4.9, 6.285, 5.045, 5.835, 5.045], "confidence": 1.0, "elements": ["#/analyzeResult/readResults/0/lines/16/words/0"]}, - "CompanyName": {"type": "string", "valueString": "Southridge Video", "text": - "Southridge Video", "page": 2, "boundingBox": [2.19, 2.77, 3.35, 2.77, 3.35, - 2.915, 2.19, 2.915], "confidence": 1.0, "elements": ["#/analyzeResult/readResults/1/lines/2/words/2", - "#/analyzeResult/readResults/1/lines/2/words/3"]}, "Contact": {"type": "string", - "valueString": "Jamie@southridgevideo.com", "text": "Jamie@southridgevideo.com", - "page": 2, "boundingBox": [1.62, 3.1, 3.575, 3.1, 3.575, 3.245, 1.62, 3.245], - "confidence": 1.0, "elements": ["#/analyzeResult/readResults/1/lines/3/words/1"]}, + "pageRange": [1, 2], "fields": {"CompanyName": {"type": "string", "valueString": + "Southridge Video", "text": "Southridge Video", "page": 2, "boundingBox": + [2.19, 2.77, 3.35, 2.77, 3.35, 2.915, 2.19, 2.915], "confidence": 1.0, "elements": + ["#/analyzeResult/readResults/1/lines/2/words/2", "#/analyzeResult/readResults/1/lines/2/words/3"]}, + "Contact": {"type": "string", "valueString": "Jamie@southridgevideo.com", + "text": "Jamie@southridgevideo.com", "page": 2, "boundingBox": [1.62, 3.1, + 3.575, 3.1, 3.575, 3.245, 1.62, 3.245], "confidence": 1.0, "elements": ["#/analyzeResult/readResults/1/lines/3/words/1"]}, "Silver": {"type": "string", "valueString": "$1,200", "text": "$1,200", "page": 1, "boundingBox": [5.835, 5.97, 6.285, 5.97, 6.285, 6.115, 5.835, 6.115], "confidence": 1.0, "elements": ["#/analyzeResult/readResults/0/lines/27/words/0"]}, "Bronze": {"type": "string", "valueString": "$1,000", "text": "$1,000", "page": 1, "boundingBox": [5.835, 6.825, 6.285, 6.825, 6.285, 6.97, 5.835, 6.97], "confidence": 1.0, "elements": ["#/analyzeResult/readResults/0/lines/37/words/0"]}, - "Full": {"type": "string", "valueString": "$600", "text": "$600", "page": - 1, "boundingBox": [5.835, 7.67, 6.16, 7.67, 6.16, 7.815, 5.835, 7.815], "confidence": - 1.0, "elements": ["#/analyzeResult/readResults/0/lines/46/words/0"]}, "Half": + "Gold": {"type": "string", "valueString": "$1,500", "text": "$1,500", "page": + 1, "boundingBox": [5.835, 4.9, 6.285, 4.9, 6.285, 5.045, 5.835, 5.045], "confidence": + 1.0, "elements": ["#/analyzeResult/readResults/0/lines/16/words/0"]}, "Half": {"type": "string", "valueString": "$350", "text": "$350", "page": 1, "boundingBox": [5.835, 8.305, 6.16, 8.305, 6.16, 8.45, 5.835, 8.45], "confidence": 1.0, "elements": - ["#/analyzeResult/readResults/0/lines/53/words/0"]}}}], "errors": []}}' + ["#/analyzeResult/readResults/0/lines/53/words/0"]}, "Full": {"type": "string", + "valueString": "$600", "text": "$600", "page": 1, "boundingBox": [5.835, 7.67, + 6.16, 7.67, 6.16, 7.815, 5.835, 7.815], "confidence": 1.0, "elements": ["#/analyzeResult/readResults/0/lines/46/words/0"]}}}], + "errors": []}}' headers: apim-request-id: - - 84aa871e-9328-40de-9fcf-ee8c6cb176c5 + - 65d156a4-9ed3-44e1-bd2f-ad8821672ad3 content-length: - '34159' content-type: - application/json; charset=utf-8 date: - - Thu, 11 Jun 2020 15:42:11 GMT + - Fri, 10 Jul 2020 18:45:14 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '59' + - '27' status: code: 200 message: OK diff --git a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_custom_forms.test_custom_form_multipage_vendor_set_unlabeled_transform.yaml b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_custom_forms.test_custom_form_multipage_vendor_set_unlabeled_transform.yaml index 5023c67ecbda..5d6036b9f4e7 100644 --- a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_custom_forms.test_custom_form_multipage_vendor_set_unlabeled_transform.yaml +++ b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_custom_forms.test_custom_form_multipage_vendor_set_unlabeled_transform.yaml @@ -14,28 +14,27 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) method: POST - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models response: body: string: '' headers: apim-request-id: - - 1edbc587-9f65-45b4-99c8-63218ef1b714 + - dacededf-b0d3-4eed-a265-9b903a7743cb content-length: - '0' date: - - Thu, 11 Jun 2020 15:42:12 GMT + - Fri, 10 Jul 2020 18:45:15 GMT location: - - https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/9ed1301a-ed98-42e0-a4b9-2a8b7080e2ed + - https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/9137242f-1f19-40e6-b9ec-59c0cb5c65bc strict-transport-security: - max-age=31536000; includeSubDomains; preload x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '777' + - '66' status: code: 201 message: Created @@ -49,22 +48,21 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/9ed1301a-ed98-42e0-a4b9-2a8b7080e2ed?includeKeys=true + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/9137242f-1f19-40e6-b9ec-59c0cb5c65bc?includeKeys=true response: body: - string: '{"modelInfo": {"modelId": "9ed1301a-ed98-42e0-a4b9-2a8b7080e2ed", "status": - "creating", "createdDateTime": "2020-06-11T15:42:12Z", "lastUpdatedDateTime": - "2020-06-11T15:42:12Z"}}' + string: '{"modelInfo": {"modelId": "9137242f-1f19-40e6-b9ec-59c0cb5c65bc", "status": + "creating", "createdDateTime": "2020-07-10T18:45:15Z", "lastUpdatedDateTime": + "2020-07-10T18:45:15Z"}}' headers: apim-request-id: - - 8282c0ec-fb9b-4bbd-b11a-0a3e90d71970 + - 6aac84cb-a7d2-4797-99ca-5af9f5ce1e3d content-type: - application/json; charset=utf-8 date: - - Thu, 11 Jun 2020 15:42:18 GMT + - Fri, 10 Jul 2020 18:45:21 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -72,7 +70,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '50' + - '19' status: code: 200 message: OK @@ -86,22 +84,21 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/9ed1301a-ed98-42e0-a4b9-2a8b7080e2ed?includeKeys=true + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/9137242f-1f19-40e6-b9ec-59c0cb5c65bc?includeKeys=true response: body: - string: '{"modelInfo": {"modelId": "9ed1301a-ed98-42e0-a4b9-2a8b7080e2ed", "status": - "creating", "createdDateTime": "2020-06-11T15:42:12Z", "lastUpdatedDateTime": - "2020-06-11T15:42:12Z"}}' + string: '{"modelInfo": {"modelId": "9137242f-1f19-40e6-b9ec-59c0cb5c65bc", "status": + "creating", "createdDateTime": "2020-07-10T18:45:15Z", "lastUpdatedDateTime": + "2020-07-10T18:45:15Z"}}' headers: apim-request-id: - - 1d6c8225-67be-4711-810c-0e5edb1d303f + - c0877810-7481-47bf-bfc2-2e54639010fd content-type: - application/json; charset=utf-8 date: - - Thu, 11 Jun 2020 15:42:23 GMT + - Fri, 10 Jul 2020 18:45:26 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -109,155 +106,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '46' - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) - method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/9ed1301a-ed98-42e0-a4b9-2a8b7080e2ed?includeKeys=true - response: - body: - string: '{"modelInfo": {"modelId": "9ed1301a-ed98-42e0-a4b9-2a8b7080e2ed", "status": - "creating", "createdDateTime": "2020-06-11T15:42:12Z", "lastUpdatedDateTime": - "2020-06-11T15:42:12Z"}}' - headers: - apim-request-id: - - a59e7af8-9bbc-4d01-87c6-aabe45aff16e - content-type: - - application/json; charset=utf-8 - date: - - Thu, 11 Jun 2020 15:42:28 GMT - strict-transport-security: - - max-age=31536000; includeSubDomains; preload - transfer-encoding: - - chunked - x-content-type-options: - - nosniff - x-envoy-upstream-service-time: - - '18' - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) - method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/9ed1301a-ed98-42e0-a4b9-2a8b7080e2ed?includeKeys=true - response: - body: - string: '{"modelInfo": {"modelId": "9ed1301a-ed98-42e0-a4b9-2a8b7080e2ed", "status": - "creating", "createdDateTime": "2020-06-11T15:42:12Z", "lastUpdatedDateTime": - "2020-06-11T15:42:12Z"}}' - headers: - apim-request-id: - - ce1aa4dd-1f95-41ea-802b-a8eb09fab1d3 - content-type: - - application/json; charset=utf-8 - date: - - Thu, 11 Jun 2020 15:42:33 GMT - strict-transport-security: - - max-age=31536000; includeSubDomains; preload - transfer-encoding: - - chunked - x-content-type-options: - - nosniff - x-envoy-upstream-service-time: - - '46' - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) - method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/9ed1301a-ed98-42e0-a4b9-2a8b7080e2ed?includeKeys=true - response: - body: - string: '{"modelInfo": {"modelId": "9ed1301a-ed98-42e0-a4b9-2a8b7080e2ed", "status": - "creating", "createdDateTime": "2020-06-11T15:42:12Z", "lastUpdatedDateTime": - "2020-06-11T15:42:12Z"}}' - headers: - apim-request-id: - - 786108c3-ca84-4400-b4e0-102b6be229a1 - content-type: - - application/json; charset=utf-8 - date: - - Thu, 11 Jun 2020 15:42:38 GMT - strict-transport-security: - - max-age=31536000; includeSubDomains; preload - transfer-encoding: - - chunked - x-content-type-options: - - nosniff - x-envoy-upstream-service-time: - - '54' - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) - method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/9ed1301a-ed98-42e0-a4b9-2a8b7080e2ed?includeKeys=true - response: - body: - string: '{"modelInfo": {"modelId": "9ed1301a-ed98-42e0-a4b9-2a8b7080e2ed", "status": - "creating", "createdDateTime": "2020-06-11T15:42:12Z", "lastUpdatedDateTime": - "2020-06-11T15:42:12Z"}}' - headers: - apim-request-id: - - 60c8c82b-1abf-4a68-92f1-f478a36bbd25 - content-type: - - application/json; charset=utf-8 - date: - - Thu, 11 Jun 2020 15:42:43 GMT - strict-transport-security: - - max-age=31536000; includeSubDomains; preload - transfer-encoding: - - chunked - x-content-type-options: - - nosniff - x-envoy-upstream-service-time: - - '16' + - '17' status: code: 200 message: OK @@ -271,15 +120,14 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/9ed1301a-ed98-42e0-a4b9-2a8b7080e2ed?includeKeys=true + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/9137242f-1f19-40e6-b9ec-59c0cb5c65bc?includeKeys=true response: body: - string: '{"modelInfo": {"modelId": "9ed1301a-ed98-42e0-a4b9-2a8b7080e2ed", "status": - "ready", "createdDateTime": "2020-06-11T15:42:12Z", "lastUpdatedDateTime": - "2020-06-11T15:42:27Z"}, "keys": {"clusters": {"0": ["Contoso Ltd. Conference + string: '{"modelInfo": {"modelId": "9137242f-1f19-40e6-b9ec-59c0cb5c65bc", "status": + "ready", "createdDateTime": "2020-07-10T18:45:15Z", "lastUpdatedDateTime": + "2020-07-10T18:45:28Z"}, "keys": {"clusters": {"0": ["Contoso Ltd. Conference will be held on May 28-29, 2020 at the Elm Conference Center in", "Included", "Maple City, Massachusetts. The conference has sold out of its 1,500 tickets, with a 400 person", "Package", "Price", "Rates:", "Vendor #:", "Vendor Registration", @@ -295,11 +143,11 @@ interactions: []}}' headers: apim-request-id: - - 2002e2d8-255d-496f-b961-1cf2f070301f + - faf233f8-8bf8-45dd-80d1-adee1521dd3c content-type: - application/json; charset=utf-8 date: - - Thu, 11 Jun 2020 15:42:49 GMT + - Fri, 10 Jul 2020 18:45:31 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -307,7 +155,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '17' + - '25' status: code: 200 message: OK @@ -12810,28 +12658,27 @@ interactions: Content-Type: - application/pdf User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) method: POST - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/9ed1301a-ed98-42e0-a4b9-2a8b7080e2ed/analyze?includeTextDetails=true + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/9137242f-1f19-40e6-b9ec-59c0cb5c65bc/analyze?includeTextDetails=true response: body: string: '' headers: apim-request-id: - - 9150c55b-edb0-4053-835f-221042a49837 + - 57c40dee-8d13-4ed4-99f1-40905615e915 content-length: - '0' date: - - Thu, 11 Jun 2020 15:42:51 GMT + - Fri, 10 Jul 2020 18:45:32 GMT operation-location: - - https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/9ed1301a-ed98-42e0-a4b9-2a8b7080e2ed/analyzeresults/cefd4e5d-a0a9-47b1-b5bd-5c4b0dfef31a + - https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/9137242f-1f19-40e6-b9ec-59c0cb5c65bc/analyzeresults/389f1fd0-829b-416c-bfb1-0d3d5fcb49c2 strict-transport-security: - max-age=31536000; includeSubDomains; preload x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '246' + - '134' status: code: 202 message: Accepted @@ -12845,281 +12692,28 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) - method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/9ed1301a-ed98-42e0-a4b9-2a8b7080e2ed/analyzeresults/cefd4e5d-a0a9-47b1-b5bd-5c4b0dfef31a - response: - body: - string: '{"status": "notStarted", "createdDateTime": "2020-06-11T15:42:51Z", - "lastUpdatedDateTime": "2020-06-11T15:42:51Z"}' - headers: - apim-request-id: - - 006b8822-d59d-40b5-8de5-6455cd768529 - content-length: - - '109' - content-type: - - application/json; charset=utf-8 - date: - - Thu, 11 Jun 2020 15:42:55 GMT - strict-transport-security: - - max-age=31536000; includeSubDomains; preload - x-content-type-options: - - nosniff - x-envoy-upstream-service-time: - - '46' - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) - method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/9ed1301a-ed98-42e0-a4b9-2a8b7080e2ed/analyzeresults/cefd4e5d-a0a9-47b1-b5bd-5c4b0dfef31a - response: - body: - string: '{"status": "notStarted", "createdDateTime": "2020-06-11T15:42:51Z", - "lastUpdatedDateTime": "2020-06-11T15:42:51Z"}' - headers: - apim-request-id: - - 61c1fd5b-da07-4b6c-a0b3-09ff8c405681 - content-length: - - '109' - content-type: - - application/json; charset=utf-8 - date: - - Thu, 11 Jun 2020 15:43:02 GMT - strict-transport-security: - - max-age=31536000; includeSubDomains; preload - x-content-type-options: - - nosniff - x-envoy-upstream-service-time: - - '840' - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) - method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/9ed1301a-ed98-42e0-a4b9-2a8b7080e2ed/analyzeresults/cefd4e5d-a0a9-47b1-b5bd-5c4b0dfef31a - response: - body: - string: '{"status": "notStarted", "createdDateTime": "2020-06-11T15:42:51Z", - "lastUpdatedDateTime": "2020-06-11T15:42:51Z"}' - headers: - apim-request-id: - - f11189ed-c99a-4522-809e-3a1e3304764a - content-length: - - '109' - content-type: - - application/json; charset=utf-8 - date: - - Thu, 11 Jun 2020 15:43:08 GMT - strict-transport-security: - - max-age=31536000; includeSubDomains; preload - x-content-type-options: - - nosniff - x-envoy-upstream-service-time: - - '792' - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) - method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/9ed1301a-ed98-42e0-a4b9-2a8b7080e2ed/analyzeresults/cefd4e5d-a0a9-47b1-b5bd-5c4b0dfef31a - response: - body: - string: '{"status": "notStarted", "createdDateTime": "2020-06-11T15:42:51Z", - "lastUpdatedDateTime": "2020-06-11T15:42:51Z"}' - headers: - apim-request-id: - - 80116cd1-487a-4558-95c3-deecf344591c - content-length: - - '109' - content-type: - - application/json; charset=utf-8 - date: - - Thu, 11 Jun 2020 15:43:12 GMT - strict-transport-security: - - max-age=31536000; includeSubDomains; preload - x-content-type-options: - - nosniff - x-envoy-upstream-service-time: - - '17' - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) - method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/9ed1301a-ed98-42e0-a4b9-2a8b7080e2ed/analyzeresults/cefd4e5d-a0a9-47b1-b5bd-5c4b0dfef31a - response: - body: - string: '{"status": "notStarted", "createdDateTime": "2020-06-11T15:42:51Z", - "lastUpdatedDateTime": "2020-06-11T15:42:51Z"}' - headers: - apim-request-id: - - 795e7329-aec9-40a4-875d-16d60c7fd655 - content-length: - - '109' - content-type: - - application/json; charset=utf-8 - date: - - Thu, 11 Jun 2020 15:43:19 GMT - strict-transport-security: - - max-age=31536000; includeSubDomains; preload - x-content-type-options: - - nosniff - x-envoy-upstream-service-time: - - '45' - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) - method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/9ed1301a-ed98-42e0-a4b9-2a8b7080e2ed/analyzeresults/cefd4e5d-a0a9-47b1-b5bd-5c4b0dfef31a - response: - body: - string: '{"status": "notStarted", "createdDateTime": "2020-06-11T15:42:51Z", - "lastUpdatedDateTime": "2020-06-11T15:42:51Z"}' - headers: - apim-request-id: - - 17c55de5-eba5-429a-b300-289c4d375732 - content-length: - - '109' - content-type: - - application/json; charset=utf-8 - date: - - Thu, 11 Jun 2020 15:43:24 GMT - strict-transport-security: - - max-age=31536000; includeSubDomains; preload - x-content-type-options: - - nosniff - x-envoy-upstream-service-time: - - '44' - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) - method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/9ed1301a-ed98-42e0-a4b9-2a8b7080e2ed/analyzeresults/cefd4e5d-a0a9-47b1-b5bd-5c4b0dfef31a - response: - body: - string: '{"status": "notStarted", "createdDateTime": "2020-06-11T15:42:51Z", - "lastUpdatedDateTime": "2020-06-11T15:42:51Z"}' - headers: - apim-request-id: - - e46c6205-4f17-421c-b232-dbc7fd2267eb - content-length: - - '109' - content-type: - - application/json; charset=utf-8 - date: - - Thu, 11 Jun 2020 15:43:29 GMT - strict-transport-security: - - max-age=31536000; includeSubDomains; preload - x-content-type-options: - - nosniff - x-envoy-upstream-service-time: - - '17' - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/9ed1301a-ed98-42e0-a4b9-2a8b7080e2ed/analyzeresults/cefd4e5d-a0a9-47b1-b5bd-5c4b0dfef31a + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/9137242f-1f19-40e6-b9ec-59c0cb5c65bc/analyzeresults/389f1fd0-829b-416c-bfb1-0d3d5fcb49c2 response: body: - string: '{"status": "running", "createdDateTime": "2020-06-11T15:42:51Z", "lastUpdatedDateTime": - "2020-06-11T15:43:32Z", "analyzeResult": null}' + string: '{"status": "running", "createdDateTime": "2020-07-10T18:45:32Z", "lastUpdatedDateTime": + "2020-07-10T18:45:33Z", "analyzeResult": null}' headers: apim-request-id: - - 17244d8a-06ad-4f6c-b4dd-7d20682b62d6 + - b496eae2-f898-4254-aefb-a573ab296349 content-length: - '134' content-type: - application/json; charset=utf-8 date: - - Thu, 11 Jun 2020 15:43:34 GMT + - Fri, 10 Jul 2020 18:45:37 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '52' + - '47' status: code: 200 message: OK @@ -13133,14 +12727,13 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/9ed1301a-ed98-42e0-a4b9-2a8b7080e2ed/analyzeresults/cefd4e5d-a0a9-47b1-b5bd-5c4b0dfef31a + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/9137242f-1f19-40e6-b9ec-59c0cb5c65bc/analyzeresults/389f1fd0-829b-416c-bfb1-0d3d5fcb49c2 response: body: - string: '{"status": "succeeded", "createdDateTime": "2020-06-11T15:42:51Z", - "lastUpdatedDateTime": "2020-06-11T15:43:36Z", "analyzeResult": {"version": + string: '{"status": "succeeded", "createdDateTime": "2020-07-10T18:45:32Z", + "lastUpdatedDateTime": "2020-07-10T18:45:37Z", "analyzeResult": {"version": "2.0.0", "readResults": [{"page": 1, "angle": 0, "width": 8.5, "height": 11.0, "unit": "inch", "lines": [{"text": "Vendor #:", "boundingBox": [6.1236, 1.0014, 7.1167, 1.0014, 7.1167, 1.3056, 6.1236, 1.3056], "words": [{"text": "Vendor", @@ -13591,19 +13184,19 @@ interactions: "errors": []}}' headers: apim-request-id: - - e2ebc588-a6d3-484e-8ca6-1c242e614e8b + - 062db645-a298-43d1-a983-4b75a93a6a50 content-length: - '36398' content-type: - application/json; charset=utf-8 date: - - Thu, 11 Jun 2020 15:43:39 GMT + - Fri, 10 Jul 2020 18:45:42 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '24' + - '26' status: code: 200 message: OK diff --git a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_custom_forms.test_custom_form_unlabeled.yaml b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_custom_forms.test_custom_form_unlabeled.yaml index c164133da810..41865f8add22 100644 --- a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_custom_forms.test_custom_form_unlabeled.yaml +++ b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_custom_forms.test_custom_form_unlabeled.yaml @@ -14,28 +14,27 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) method: POST - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models response: body: string: '' headers: apim-request-id: - - 8013af24-31e8-4f49-9508-1233e4b5f9ad + - a46e4d35-3035-4dab-b364-139e6c984764 content-length: - '0' date: - - Thu, 11 Jun 2020 15:43:40 GMT + - Fri, 10 Jul 2020 18:45:43 GMT location: - - https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/d5f3a69c-32f2-4273-bb01-6d6e39b45869 + - https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/ac5c99f9-b31b-46db-add6-5d149c844a13 strict-transport-security: - max-age=31536000; includeSubDomains; preload x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '68' + - '71' status: code: 201 message: Created @@ -49,22 +48,21 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/d5f3a69c-32f2-4273-bb01-6d6e39b45869?includeKeys=true + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/ac5c99f9-b31b-46db-add6-5d149c844a13?includeKeys=true response: body: - string: '{"modelInfo": {"modelId": "d5f3a69c-32f2-4273-bb01-6d6e39b45869", "status": - "creating", "createdDateTime": "2020-06-11T15:43:40Z", "lastUpdatedDateTime": - "2020-06-11T15:43:40Z"}}' + string: '{"modelInfo": {"modelId": "ac5c99f9-b31b-46db-add6-5d149c844a13", "status": + "creating", "createdDateTime": "2020-07-10T18:45:43Z", "lastUpdatedDateTime": + "2020-07-10T18:45:43Z"}}' headers: apim-request-id: - - 7a18b7a3-18cf-406a-9c05-f409717d64cc + - a59884b9-c6e3-494c-a23a-f3bc41ec1c34 content-type: - application/json; charset=utf-8 date: - - Thu, 11 Jun 2020 15:43:45 GMT + - Fri, 10 Jul 2020 18:45:48 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -72,7 +70,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '52' + - '49' status: code: 200 message: OK @@ -86,22 +84,21 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/d5f3a69c-32f2-4273-bb01-6d6e39b45869?includeKeys=true + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/ac5c99f9-b31b-46db-add6-5d149c844a13?includeKeys=true response: body: - string: '{"modelInfo": {"modelId": "d5f3a69c-32f2-4273-bb01-6d6e39b45869", "status": - "creating", "createdDateTime": "2020-06-11T15:43:40Z", "lastUpdatedDateTime": - "2020-06-11T15:43:40Z"}}' + string: '{"modelInfo": {"modelId": "ac5c99f9-b31b-46db-add6-5d149c844a13", "status": + "creating", "createdDateTime": "2020-07-10T18:45:43Z", "lastUpdatedDateTime": + "2020-07-10T18:45:43Z"}}' headers: apim-request-id: - - 37f13431-a5ec-463a-b689-ff07020cd9d6 + - 28eb82a7-0d10-4b3b-8e2a-4aa04971b761 content-type: - application/json; charset=utf-8 date: - - Thu, 11 Jun 2020 15:43:51 GMT + - Fri, 10 Jul 2020 18:45:54 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -109,7 +106,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '17' + - '701' status: code: 200 message: OK @@ -123,15 +120,14 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/d5f3a69c-32f2-4273-bb01-6d6e39b45869?includeKeys=true + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/ac5c99f9-b31b-46db-add6-5d149c844a13?includeKeys=true response: body: - string: '{"modelInfo": {"modelId": "d5f3a69c-32f2-4273-bb01-6d6e39b45869", "status": - "ready", "createdDateTime": "2020-06-11T15:43:40Z", "lastUpdatedDateTime": - "2020-06-11T15:43:52Z"}, "keys": {"clusters": {"0": ["Additional Notes:", + string: '{"modelInfo": {"modelId": "ac5c99f9-b31b-46db-add6-5d149c844a13", "status": + "ready", "createdDateTime": "2020-07-10T18:45:43Z", "lastUpdatedDateTime": + "2020-07-10T18:45:53Z"}, "keys": {"clusters": {"0": ["Additional Notes:", "Address:", "Company Name:", "Company Phone:", "Dated As:", "Details", "Email:", "Hero Limited", "Name:", "Phone:", "Purchase Order", "Purchase Order #:", "Quantity", "SUBTOTAL", "Seattle, WA 93849 Phone:", "Shipped From", "Shipped @@ -144,11 +140,11 @@ interactions: 1, "errors": [], "status": "succeeded"}], "errors": []}}' headers: apim-request-id: - - 1b01e1ac-def6-4bec-abd4-bcb351a23649 + - 3b1b5ae3-a8a6-4c10-9c35-83c9177675fc content-type: - application/json; charset=utf-8 date: - - Thu, 11 Jun 2020 15:43:55 GMT + - Fri, 10 Jul 2020 18:45:59 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -8587,28 +8583,27 @@ interactions: Content-Type: - image/jpeg User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) method: POST - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/d5f3a69c-32f2-4273-bb01-6d6e39b45869/analyze?includeTextDetails=false + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/ac5c99f9-b31b-46db-add6-5d149c844a13/analyze?includeTextDetails=false response: body: string: '' headers: apim-request-id: - - a5bd3e57-73ea-4aa3-a19d-866b83896fae + - ab92b967-9617-437b-b801-2aa2fe643984 content-length: - '0' date: - - Thu, 11 Jun 2020 15:43:57 GMT + - Fri, 10 Jul 2020 18:46:00 GMT operation-location: - - https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/d5f3a69c-32f2-4273-bb01-6d6e39b45869/analyzeresults/919a221d-d7df-4933-8006-85f0e2e2bf03 + - https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/ac5c99f9-b31b-46db-add6-5d149c844a13/analyzeresults/6660ec86-8ceb-4c25-866a-f58c4dcf14f7 strict-transport-security: - max-age=31536000; includeSubDomains; preload x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '93' + - '70' status: code: 202 message: Accepted @@ -8622,29 +8617,28 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/d5f3a69c-32f2-4273-bb01-6d6e39b45869/analyzeresults/919a221d-d7df-4933-8006-85f0e2e2bf03 + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/ac5c99f9-b31b-46db-add6-5d149c844a13/analyzeresults/6660ec86-8ceb-4c25-866a-f58c4dcf14f7 response: body: - string: '{"status": "running", "createdDateTime": "2020-06-11T15:43:57Z", "lastUpdatedDateTime": - "2020-06-11T15:43:59Z", "analyzeResult": null}' + string: '{"status": "running", "createdDateTime": "2020-07-10T18:46:01Z", "lastUpdatedDateTime": + "2020-07-10T18:46:03Z", "analyzeResult": null}' headers: apim-request-id: - - 072c47a1-75fb-470f-960f-a1e4bf52e21e + - 94410a81-14a2-4b97-b061-d52a2b9c202e content-length: - '134' content-type: - application/json; charset=utf-8 date: - - Thu, 11 Jun 2020 15:44:02 GMT + - Fri, 10 Jul 2020 18:46:05 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '50' + - '20' status: code: 200 message: OK @@ -8658,14 +8652,13 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/d5f3a69c-32f2-4273-bb01-6d6e39b45869/analyzeresults/919a221d-d7df-4933-8006-85f0e2e2bf03 + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/ac5c99f9-b31b-46db-add6-5d149c844a13/analyzeresults/6660ec86-8ceb-4c25-866a-f58c4dcf14f7 response: body: - string: '{"status": "succeeded", "createdDateTime": "2020-06-11T15:43:57Z", - "lastUpdatedDateTime": "2020-06-11T15:44:04Z", "analyzeResult": {"version": + string: '{"status": "succeeded", "createdDateTime": "2020-07-10T18:46:01Z", + "lastUpdatedDateTime": "2020-07-10T18:46:06Z", "analyzeResult": {"version": "2.0.0", "readResults": [{"page": 1, "angle": 0.16, "width": 1700, "height": 2200, "unit": "pixel", "lines": []}], "pageResults": [{"page": 1, "keyValuePairs": [{"key": {"text": "Hero Limited", "boundingBox": [620.0, 203.0, 1078.0, 203.0, @@ -8815,19 +8808,19 @@ interactions: false}]}], "clusterId": 0}], "documentResults": [], "errors": []}}' headers: apim-request-id: - - 39ca23de-314a-4481-be3a-2a98dbfb6928 + - e98b8319-f8ef-4272-83e9-fff173450bcf content-length: - '11800' content-type: - application/json; charset=utf-8 date: - - Thu, 11 Jun 2020 15:44:07 GMT + - Fri, 10 Jul 2020 18:46:11 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '50' + - '43' status: code: 200 message: OK diff --git a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_custom_forms.test_custom_form_unlabeled_blank_page.yaml b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_custom_forms.test_custom_form_unlabeled_blank_page.yaml index 0d33ccc49c95..de270b3ebdf6 100644 --- a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_custom_forms.test_custom_form_unlabeled_blank_page.yaml +++ b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_custom_forms.test_custom_form_unlabeled_blank_page.yaml @@ -14,28 +14,27 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) method: POST - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models response: body: string: '' headers: apim-request-id: - - a2cfb478-359d-49fe-9530-c68011a729f4 + - 74a753de-7115-455c-a11a-5eee7235e6a1 content-length: - '0' date: - - Mon, 15 Jun 2020 19:50:05 GMT + - Fri, 10 Jul 2020 18:46:11 GMT location: - - https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/5c86788f-f987-4d7f-885b-efde241d7a16 + - https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/6f4f1583-8f73-4be8-9337-ccc105f1fdff strict-transport-security: - max-age=31536000; includeSubDomains; preload x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '453' + - '39' status: code: 201 message: Created @@ -49,22 +48,21 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/5c86788f-f987-4d7f-885b-efde241d7a16?includeKeys=true + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/6f4f1583-8f73-4be8-9337-ccc105f1fdff?includeKeys=true response: body: - string: '{"modelInfo": {"modelId": "5c86788f-f987-4d7f-885b-efde241d7a16", "status": - "creating", "createdDateTime": "2020-06-15T19:50:06Z", "lastUpdatedDateTime": - "2020-06-15T19:50:06Z"}}' + string: '{"modelInfo": {"modelId": "6f4f1583-8f73-4be8-9337-ccc105f1fdff", "status": + "creating", "createdDateTime": "2020-07-10T18:46:12Z", "lastUpdatedDateTime": + "2020-07-10T18:46:12Z"}}' headers: apim-request-id: - - 8a736533-7ba1-4706-89da-06046fa5b490 + - b35b25bc-a1c6-45dc-bed2-c22b577869d6 content-type: - application/json; charset=utf-8 date: - - Mon, 15 Jun 2020 19:50:11 GMT + - Fri, 10 Jul 2020 18:46:17 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -72,7 +70,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '50' + - '54' status: code: 200 message: OK @@ -86,22 +84,21 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/5c86788f-f987-4d7f-885b-efde241d7a16?includeKeys=true + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/6f4f1583-8f73-4be8-9337-ccc105f1fdff?includeKeys=true response: body: - string: '{"modelInfo": {"modelId": "5c86788f-f987-4d7f-885b-efde241d7a16", "status": - "creating", "createdDateTime": "2020-06-15T19:50:06Z", "lastUpdatedDateTime": - "2020-06-15T19:50:06Z"}}' + string: '{"modelInfo": {"modelId": "6f4f1583-8f73-4be8-9337-ccc105f1fdff", "status": + "creating", "createdDateTime": "2020-07-10T18:46:12Z", "lastUpdatedDateTime": + "2020-07-10T18:46:12Z"}}' headers: apim-request-id: - - 72e4e444-1b22-48a2-9e8a-f4e419e61476 + - ff74bb91-a56f-4bbd-9b55-ad6601221ec6 content-type: - application/json; charset=utf-8 date: - - Mon, 15 Jun 2020 19:50:16 GMT + - Fri, 10 Jul 2020 18:46:22 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -109,7 +106,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '172' + - '20' status: code: 200 message: OK @@ -123,15 +120,14 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/5c86788f-f987-4d7f-885b-efde241d7a16?includeKeys=true + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/6f4f1583-8f73-4be8-9337-ccc105f1fdff?includeKeys=true response: body: - string: '{"modelInfo": {"modelId": "5c86788f-f987-4d7f-885b-efde241d7a16", "status": - "ready", "createdDateTime": "2020-06-15T19:50:06Z", "lastUpdatedDateTime": - "2020-06-15T19:50:17Z"}, "keys": {"clusters": {"0": ["Additional Notes:", + string: '{"modelInfo": {"modelId": "6f4f1583-8f73-4be8-9337-ccc105f1fdff", "status": + "ready", "createdDateTime": "2020-07-10T18:46:12Z", "lastUpdatedDateTime": + "2020-07-10T18:46:22Z"}, "keys": {"clusters": {"0": ["Additional Notes:", "Address:", "Company Name:", "Company Phone:", "Dated As:", "Details", "Email:", "Hero Limited", "Name:", "Phone:", "Purchase Order", "Purchase Order #:", "Quantity", "SUBTOTAL", "Seattle, WA 93849 Phone:", "Shipped From", "Shipped @@ -144,11 +140,11 @@ interactions: 1, "errors": [], "status": "succeeded"}], "errors": []}}' headers: apim-request-id: - - 9f297671-7955-4ed1-acc3-d17877d2fbdf + - 2a8a94e1-2650-4d33-9e63-2bcd1ed47616 content-type: - application/json; charset=utf-8 date: - - Mon, 15 Jun 2020 19:50:20 GMT + - Fri, 10 Jul 2020 18:46:27 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -156,467 +152,463 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '51' + - '21' status: code: 200 message: OK - request: - body: !!python/object/new:_io.BytesIO - state: !!python/tuple - - !!binary | - JVBERi0xLjcNCiW1tbW1DQoxIDAgb2JqDQo8PC9UeXBlL0NhdGFsb2cvUGFnZXMgMiAwIFIvTGFu - Zyhlbi1VUykgL1N0cnVjdFRyZWVSb290IDEwIDAgUi9NYXJrSW5mbzw8L01hcmtlZCB0cnVlPj4v - TWV0YWRhdGEgMjAgMCBSL1ZpZXdlclByZWZlcmVuY2VzIDIxIDAgUj4+DQplbmRvYmoNCjIgMCBv - YmoNCjw8L1R5cGUvUGFnZXMvQ291bnQgMS9LaWRzWyAzIDAgUl0gPj4NCmVuZG9iag0KMyAwIG9i - ag0KPDwvVHlwZS9QYWdlL1BhcmVudCAyIDAgUi9SZXNvdXJjZXM8PC9Gb250PDwvRjEgNSAwIFI+ - Pi9FeHRHU3RhdGU8PC9HUzcgNyAwIFIvR1M4IDggMCBSPj4vUHJvY1NldFsvUERGL1RleHQvSW1h - Z2VCL0ltYWdlQy9JbWFnZUldID4+L01lZGlhQm94WyAwIDAgNjEyIDc5Ml0gL0NvbnRlbnRzIDQg - MCBSL0dyb3VwPDwvVHlwZS9Hcm91cC9TL1RyYW5zcGFyZW5jeS9DUy9EZXZpY2VSR0I+Pi9UYWJz - L1MvU3RydWN0UGFyZW50cyAwPj4NCmVuZG9iag0KNCAwIG9iag0KPDwvRmlsdGVyL0ZsYXRlRGVj - b2RlL0xlbmd0aCAxMzI+Pg0Kc3RyZWFtDQp4nC2MsQrCQBBE+4X9hynV4m73iJ4HIUUuMSgEFA8s - xFJTKaj/D67iFAPDPB78HnXtx7ztIE2Dtst4MomTb5IGCFbWMQW8rkynBR5MbWHyG4Wqkw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ps - aT48L3JkZjpTZXE+PC9kYzpjcmVhdG9yPjwvcmRmOkRlc2NyaXB0aW9uPgo8cmRmOkRlc2NyaXB0 - aW9uIHJkZjphYm91dD0iIiAgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAv - Ij4KPHhtcDpDcmVhdG9yVG9vbD5NaWNyb3NvZnTCriBXb3JkIGZvciBPZmZpY2UgMzY1PC94bXA6 - Q3JlYXRvclRvb2w+PHhtcDpDcmVhdGVEYXRlPjIwMjAtMDMtMjBUMTA6NDQ6NDYtMDc6MDA8L3ht - cDpDcmVhdGVEYXRlPjx4bXA6TW9kaWZ5RGF0ZT4yMDIwLTAzLTIwVDEwOjQ0OjQ2LTA3OjAwPC94 - bXA6TW9kaWZ5RGF0ZT48L3JkZjpEZXNjcmlwdGlvbj4KPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJv - dXQ9IiIgIHhtbG5zOnhtcE1NPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvbW0vIj4KPHht - cE1NOkRvY3VtZW50SUQ+dXVpZDo4RjI5Q0E4Qy1FRThCLTQ3NTktQkM5Qi1BMDhFRkVFNjYyMDE8 - L3htcE1NOkRvY3VtZW50SUQ+PHhtcE1NOkluc3RhbmNlSUQ+dXVpZDo4RjI5Q0E4Qy1FRThCLTQ3 - NTktQkM5Qi1BMDhFRkVFNjYyMDE8L3htcE1NOkluc3RhbmNlSUQ+PC9yZGY6RGVzY3JpcHRpb24+ - CiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAg - ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAg - ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAg - ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAg - ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAg - ICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAg - ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAg - ICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAg - ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAg - ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAg - ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAg - ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAg - ICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAg - ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAg - ICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAg - ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAg - ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAg - ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAg - ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAg - ICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAg - ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAg - ICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAg - ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAg - ICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAg - ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAg - ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAg - ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAg - ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAg - ICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAg - ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAg - ICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAg - ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAg - ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAg - ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAg - ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAg - ICAgICAgICAgICAgICAgICAgICAgICAgIAo8L3JkZjpSREY+PC94OnhtcG1ldGE+PD94cGFja2V0 - IGVuZD0idyI/Pg0KZW5kc3RyZWFtDQplbmRvYmoNCjIxIDAgb2JqDQo8PC9EaXNwbGF5RG9jVGl0 - bGUgdHJ1ZT4+DQplbmRvYmoNCjIyIDAgb2JqDQo8PC9UeXBlL1hSZWYvU2l6ZSAyMi9XWyAxIDQg - Ml0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gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAg + ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAg + ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAg + ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAg + ICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAg + ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAg + ICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAg + ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAg + ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAg + ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAg + ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAg + ICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAg + ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAg + ICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAg + ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAg + ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAg + ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAg + ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAg + ICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAg + ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAg + ICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAg + ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAg + ICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAg + ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAg + ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAg + ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAg + ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAg + ICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAg + ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAg + ICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAg + ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAg + ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAg + ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAg + ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAg + ICAgICAgICAgICAgICAgICAgICAgICAgIAo8L3JkZjpSREY+PC94On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DAgbg0KMDAwMDAwMTg5NCAwMDAwMCBuDQowMDAwMDIxMzc0IDAwMDAwIG4NCjAwMDAwMjQ1 + NDEgMDAwMDAgbg0KMDAwMDAyNDU4NiAwMDAwMCBuDQp0cmFpbGVyDQo8PC9TaXplIDIzL1Jvb3Qg + MSAwIFIvSW5mbyA5IDAgUi9JRFs8OENDQTI5OEY4QkVFNTk0N0JDOUJBMDhFRkVFNjYyMDE+PDhD + Q0EyOThGOEJFRTU5NDdCQzlCQTA4RUZFRTY2MjAxPl0gPj4NCnN0YXJ0eHJlZg0KMjQ4NjgNCiUl + RU9GDQp4cmVmDQowIDANCnRyYWlsZXINCjw8L1NpemUgMjMvUm9vdCAxIDAgUi9JbmZvIDkgMCBS + L0lEWzw4Q0NBMjk4RjhCRUU1OTQ3QkM5QkEwOEVGRUU2NjIwMT48OENDQTI5OEY4QkVFNTk0N0JD + OUJBMDhFRkVFNjYyMDE+XSAvUHJldiAyNDg2OC9YUmVmU3RtIDI0NTg2Pj4NCnN0YXJ0eHJlZg0K + MjU0ODQNCiUlRU9G headers: Accept: - '*/*' @@ -629,28 +621,27 @@ interactions: Content-Type: - application/pdf User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) method: POST - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/5c86788f-f987-4d7f-885b-efde241d7a16/analyze?includeTextDetails=false + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/6f4f1583-8f73-4be8-9337-ccc105f1fdff/analyze?includeTextDetails=false response: body: string: '' headers: apim-request-id: - - 3b868d44-886c-4abd-94ea-0910c91e965b + - 46e7498a-e787-4741-bbc3-fc9eab97ff9f content-length: - '0' date: - - Mon, 15 Jun 2020 19:50:22 GMT + - Fri, 10 Jul 2020 18:46:27 GMT operation-location: - - https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/5c86788f-f987-4d7f-885b-efde241d7a16/analyzeresults/f195160b-42dc-490c-bd92-01a871c69d78 + - https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/6f4f1583-8f73-4be8-9337-ccc105f1fdff/analyzeresults/a4720e41-eec8-4247-b0b5-8b20d0bbeffe strict-transport-security: - max-age=31536000; includeSubDomains; preload x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '249' + - '86' status: code: 202 message: Accepted @@ -664,32 +655,31 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/5c86788f-f987-4d7f-885b-efde241d7a16/analyzeresults/f195160b-42dc-490c-bd92-01a871c69d78 + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/6f4f1583-8f73-4be8-9337-ccc105f1fdff/analyzeresults/a4720e41-eec8-4247-b0b5-8b20d0bbeffe response: body: - string: '{"status": "succeeded", "createdDateTime": "2020-06-15T19:50:22Z", - "lastUpdatedDateTime": "2020-06-15T19:50:27Z", "analyzeResult": {"version": + string: '{"status": "succeeded", "createdDateTime": "2020-07-10T18:46:27Z", + "lastUpdatedDateTime": "2020-07-10T18:46:32Z", "analyzeResult": {"version": "2.0.0", "readResults": [{"page": 1, "angle": 0, "width": 8.5, "height": 11.0, "unit": "inch", "lines": []}], "pageResults": [{"page": 1, "keyValuePairs": [], "tables": [], "clusterId": null}], "documentResults": [], "errors": []}}' headers: apim-request-id: - - d126a110-37eb-4fbf-85af-6fc308f9b7c6 + - 8704c87b-2995-4b63-bdf7-d6e8986e205d content-length: - '374' content-type: - application/json; charset=utf-8 date: - - Mon, 15 Jun 2020 19:50:27 GMT + - Fri, 10 Jul 2020 18:46:32 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '50' + - '21' status: code: 200 message: OK diff --git a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_custom_forms.test_custom_form_unlabeled_transform.yaml b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_custom_forms.test_custom_form_unlabeled_transform.yaml index ed6171ecd493..67cef12bf873 100644 --- a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_custom_forms.test_custom_form_unlabeled_transform.yaml +++ b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_custom_forms.test_custom_form_unlabeled_transform.yaml @@ -14,28 +14,27 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) method: POST - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models response: body: string: '' headers: apim-request-id: - - ce14bd52-de78-4144-8ae2-7d77b0ae67b6 + - c0e98b07-316f-44af-a577-b0ad561586d1 content-length: - '0' date: - - Thu, 11 Jun 2020 15:44:08 GMT + - Fri, 10 Jul 2020 18:46:32 GMT location: - - https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/c49d457d-722b-4bef-ace7-422881499071 + - https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/d7569400-70ff-4115-9dcb-5ae3b85f6c27 strict-transport-security: - max-age=31536000; includeSubDomains; preload x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '37' + - '39' status: code: 201 message: Created @@ -49,22 +48,21 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/c49d457d-722b-4bef-ace7-422881499071?includeKeys=true + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/d7569400-70ff-4115-9dcb-5ae3b85f6c27?includeKeys=true response: body: - string: '{"modelInfo": {"modelId": "c49d457d-722b-4bef-ace7-422881499071", "status": - "creating", "createdDateTime": "2020-06-11T15:44:09Z", "lastUpdatedDateTime": - "2020-06-11T15:44:09Z"}}' + string: '{"modelInfo": {"modelId": "d7569400-70ff-4115-9dcb-5ae3b85f6c27", "status": + "creating", "createdDateTime": "2020-07-10T18:46:33Z", "lastUpdatedDateTime": + "2020-07-10T18:46:33Z"}}' headers: apim-request-id: - - 5189ce81-dff3-447b-ace1-c67203b03c14 + - fe8cd7af-a38f-4af2-b0e0-1251e7553606 content-type: - application/json; charset=utf-8 date: - - Thu, 11 Jun 2020 15:44:13 GMT + - Fri, 10 Jul 2020 18:46:38 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -72,7 +70,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '48' + - '20' status: code: 200 message: OK @@ -86,52 +84,14 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/c49d457d-722b-4bef-ace7-422881499071?includeKeys=true + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/d7569400-70ff-4115-9dcb-5ae3b85f6c27?includeKeys=true response: body: - string: '{"modelInfo": {"modelId": "c49d457d-722b-4bef-ace7-422881499071", "status": - "creating", "createdDateTime": "2020-06-11T15:44:09Z", "lastUpdatedDateTime": - "2020-06-11T15:44:09Z"}}' - headers: - apim-request-id: - - 39c4d589-e3b6-4aea-a6fb-b429a41efefb - content-type: - - application/json; charset=utf-8 - date: - - Thu, 11 Jun 2020 15:44:19 GMT - strict-transport-security: - - max-age=31536000; includeSubDomains; preload - transfer-encoding: - - chunked - x-content-type-options: - - nosniff - x-envoy-upstream-service-time: - - '17' - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) - method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/c49d457d-722b-4bef-ace7-422881499071?includeKeys=true - response: - body: - string: '{"modelInfo": {"modelId": "c49d457d-722b-4bef-ace7-422881499071", "status": - "ready", "createdDateTime": "2020-06-11T15:44:09Z", "lastUpdatedDateTime": - "2020-06-11T15:44:21Z"}, "keys": {"clusters": {"0": ["Additional Notes:", + string: '{"modelInfo": {"modelId": "d7569400-70ff-4115-9dcb-5ae3b85f6c27", "status": + "ready", "createdDateTime": "2020-07-10T18:46:33Z", "lastUpdatedDateTime": + "2020-07-10T18:46:43Z"}, "keys": {"clusters": {"0": ["Additional Notes:", "Address:", "Company Name:", "Company Phone:", "Dated As:", "Details", "Email:", "Hero Limited", "Name:", "Phone:", "Purchase Order", "Purchase Order #:", "Quantity", "SUBTOTAL", "Seattle, WA 93849 Phone:", "Shipped From", "Shipped @@ -144,11 +104,11 @@ interactions: 1, "errors": [], "status": "succeeded"}], "errors": []}}' headers: apim-request-id: - - 61e3f3d7-3df1-4b36-93c4-9455483bca78 + - d0f01cab-1b1b-43c9-881c-41ec3d374869 content-type: - application/json; charset=utf-8 date: - - Thu, 11 Jun 2020 15:44:24 GMT + - Fri, 10 Jul 2020 18:46:43 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -156,7 +116,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '49' + - '25' status: code: 200 message: OK @@ -8583,28 +8543,27 @@ interactions: Content-Type: - image/jpeg User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) method: POST - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/c49d457d-722b-4bef-ace7-422881499071/analyze?includeTextDetails=true + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/d7569400-70ff-4115-9dcb-5ae3b85f6c27/analyze?includeTextDetails=true response: body: string: '' headers: apim-request-id: - - 67262c86-e2bf-4d46-b440-1c3c7bea6112 + - 9c593f2e-9e55-4dad-a7b0-b914462b35f9 content-length: - '0' date: - - Thu, 11 Jun 2020 15:44:26 GMT + - Fri, 10 Jul 2020 18:46:45 GMT operation-location: - - https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/c49d457d-722b-4bef-ace7-422881499071/analyzeresults/3151b500-7201-48d3-8667-b942f3068fda + - https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/d7569400-70ff-4115-9dcb-5ae3b85f6c27/analyzeresults/98f24849-3b7b-47c5-a2f5-92ef67e00d7e strict-transport-security: - max-age=31536000; includeSubDomains; preload x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '89' + - '91' status: code: 202 message: Accepted @@ -8618,50 +8577,13 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) - method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/c49d457d-722b-4bef-ace7-422881499071/analyzeresults/3151b500-7201-48d3-8667-b942f3068fda - response: - body: - string: '{"status": "running", "createdDateTime": "2020-06-11T15:44:26Z", "lastUpdatedDateTime": - "2020-06-11T15:44:29Z", "analyzeResult": null}' - headers: - apim-request-id: - - 69b75851-a469-4a9e-aa88-21fc5c39e288 - content-length: - - '134' - content-type: - - application/json; charset=utf-8 - date: - - Thu, 11 Jun 2020 15:44:30 GMT - strict-transport-security: - - max-age=31536000; includeSubDomains; preload - x-content-type-options: - - nosniff - x-envoy-upstream-service-time: - - '16' - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/c49d457d-722b-4bef-ace7-422881499071/analyzeresults/3151b500-7201-48d3-8667-b942f3068fda + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/d7569400-70ff-4115-9dcb-5ae3b85f6c27/analyzeresults/98f24849-3b7b-47c5-a2f5-92ef67e00d7e response: body: - string: '{"status": "succeeded", "createdDateTime": "2020-06-11T15:44:26Z", - "lastUpdatedDateTime": "2020-06-11T15:44:34Z", "analyzeResult": {"version": + string: '{"status": "succeeded", "createdDateTime": "2020-07-10T18:46:45Z", + "lastUpdatedDateTime": "2020-07-10T18:46:49Z", "analyzeResult": {"version": "2.0.0", "readResults": [{"page": 1, "angle": 0.16, "width": 1700, "height": 2200, "unit": "pixel", "lines": [{"text": "Purchase Order", "boundingBox": [141.0, 140.0, 348.0, 140.0, 348.0, 168.0, 141.0, 168.0], "words": [{"text": @@ -9114,19 +9036,19 @@ interactions: [], "errors": []}}' headers: apim-request-id: - - 3bd1ea12-1e70-498c-bfa4-04a0d336f30a + - 37df03c8-5ecc-49f7-8442-8a27d9052fb3 content-length: - '36450' content-type: - application/json; charset=utf-8 date: - - Thu, 11 Jun 2020 15:44:36 GMT + - Fri, 10 Jul 2020 18:46:50 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '26' + - '1033' status: code: 200 message: OK diff --git a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_custom_forms_async.test_authentication_bad_key.yaml b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_custom_forms_async.test_authentication_bad_key.yaml index 66bbc04ae271..1e2d2ff3263e 100644 --- a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_custom_forms_async.test_authentication_bad_key.yaml +++ b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_custom_forms_async.test_authentication_bad_key.yaml @@ -5,20 +5,24 @@ interactions: Content-Type: - image/jpeg User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) method: POST - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/xx/analyze?includeTextDetails=false + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/xx/analyze?includeTextDetails=false response: body: string: '{"error": {"code": "401", "message": "Access denied due to invalid subscription key or wrong API endpoint. Make sure to provide a valid key for an active subscription and use a correct regional API endpoint for your resource."}}' headers: - content-length: '224' - date: Thu, 11 Jun 2020 15:41:10 GMT + apim-request-id: 169506a4-49cd-4c5d-8e7c-c6842ade9914 + content-length: '225' + content-type: application/json + date: Fri, 10 Jul 2020 18:46:52 GMT + strict-transport-security: max-age=31536000; includeSubDomains; preload + www-authenticate: AzureApiManagementKey realm="https://centraluseuap.api.cognitive.microsoft.com/formrecognizer",name="Ocp-Apim-Subscription-Key",type="header" + x-content-type-options: nosniff status: code: 401 - message: PermissionDenied - url: https://centraluseuap.api.cognitive.microsoft.com//formrecognizer/v2.0-preview/custom/models/xx/analyze?includeTextDetails=false + message: Access Denied + url: https://centraluseuap.api.cognitive.microsoft.com//formrecognizer/v2.0/custom/models/xx/analyze?includeTextDetails=false version: 1 diff --git a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_custom_forms_async.test_custom_form_damaged_file.yaml b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_custom_forms_async.test_custom_form_damaged_file.yaml index 617bf209e65f..3a402a1be80e 100644 --- a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_custom_forms_async.test_custom_form_damaged_file.yaml +++ b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_custom_forms_async.test_custom_form_damaged_file.yaml @@ -8,63 +8,84 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) method: POST - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models response: body: string: '' headers: - apim-request-id: 8f03ff18-7280-48d1-9666-ea0eaa710072 + apim-request-id: 0c69e821-40d1-4790-9f5c-3958f30d3e40 content-length: '0' - date: Thu, 11 Jun 2020 15:41:44 GMT - location: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/1d71b160-3fd5-4212-8000-0a5929e51a8e + date: Fri, 10 Jul 2020 18:47:28 GMT + location: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/f4135245-a217-4d73-aafe-5b1d517012f4 strict-transport-security: max-age=31536000; includeSubDomains; preload x-content-type-options: nosniff - x-envoy-upstream-service-time: '75' + x-envoy-upstream-service-time: '69' status: code: 201 message: Created - url: https://centraluseuap.api.cognitive.microsoft.com//formrecognizer/v2.0-preview/custom/models + url: https://centraluseuap.api.cognitive.microsoft.com//formrecognizer/v2.0/custom/models - request: body: null headers: User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/1d71b160-3fd5-4212-8000-0a5929e51a8e?includeKeys=true + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/f4135245-a217-4d73-aafe-5b1d517012f4?includeKeys=true response: body: - string: '{"modelInfo": {"modelId": "1d71b160-3fd5-4212-8000-0a5929e51a8e", "status": - "creating", "createdDateTime": "2020-06-11T15:41:45Z", "lastUpdatedDateTime": - "2020-06-11T15:41:45Z"}}' + string: '{"modelInfo": {"modelId": "f4135245-a217-4d73-aafe-5b1d517012f4", "status": + "creating", "createdDateTime": "2020-07-10T18:47:29Z", "lastUpdatedDateTime": + "2020-07-10T18:47:29Z"}}' headers: - apim-request-id: c903289f-ce18-4a63-b13d-80a416d4c749 + apim-request-id: 8308487f-3cfc-4ceb-b0fb-ac5d71b6b927 content-type: application/json; charset=utf-8 - date: Thu, 11 Jun 2020 15:41:50 GMT + date: Fri, 10 Jul 2020 18:47:34 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '70' + x-envoy-upstream-service-time: '18' status: code: 200 message: OK - url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/1d71b160-3fd5-4212-8000-0a5929e51a8e?includeKeys=true + url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/f4135245-a217-4d73-aafe-5b1d517012f4?includeKeys=true - request: body: null headers: User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/1d71b160-3fd5-4212-8000-0a5929e51a8e?includeKeys=true + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/f4135245-a217-4d73-aafe-5b1d517012f4?includeKeys=true response: body: - string: '{"modelInfo": {"modelId": "1d71b160-3fd5-4212-8000-0a5929e51a8e", "status": - "ready", "createdDateTime": "2020-06-11T15:41:45Z", "lastUpdatedDateTime": - "2020-06-11T15:41:55Z"}, "keys": {"clusters": {"0": ["Additional Notes:", + string: '{"modelInfo": {"modelId": "f4135245-a217-4d73-aafe-5b1d517012f4", "status": + "creating", "createdDateTime": "2020-07-10T18:47:29Z", "lastUpdatedDateTime": + "2020-07-10T18:47:29Z"}}' + headers: + apim-request-id: 555652b0-8248-4fd0-80c3-0ee874dc338b + content-type: application/json; charset=utf-8 + date: Fri, 10 Jul 2020 18:47:40 GMT + strict-transport-security: max-age=31536000; includeSubDomains; preload + transfer-encoding: chunked + x-content-type-options: nosniff + x-envoy-upstream-service-time: '160' + status: + code: 200 + message: OK + url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/f4135245-a217-4d73-aafe-5b1d517012f4?includeKeys=true +- request: + body: null + headers: + User-Agent: + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + method: GET + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/f4135245-a217-4d73-aafe-5b1d517012f4?includeKeys=true + response: + body: + string: '{"modelInfo": {"modelId": "f4135245-a217-4d73-aafe-5b1d517012f4", "status": + "ready", "createdDateTime": "2020-07-10T18:47:29Z", "lastUpdatedDateTime": + "2020-07-10T18:47:40Z"}, "keys": {"clusters": {"0": ["Additional Notes:", "Address:", "Company Name:", "Company Phone:", "Dated As:", "Details", "Email:", "Hero Limited", "Name:", "Phone:", "Purchase Order", "Purchase Order #:", "Quantity", "SUBTOTAL", "Seattle, WA 93849 Phone:", "Shipped From", "Shipped @@ -76,67 +97,295 @@ interactions: 1, "errors": [], "status": "succeeded"}, {"documentName": "Form_5.jpg", "pages": 1, "errors": [], "status": "succeeded"}], "errors": []}}' headers: - apim-request-id: 6f9c2930-c9d9-458a-ab6a-562e04459625 + apim-request-id: 9b19ee64-4cbc-4021-b35f-c4b0489807b7 content-type: application/json; charset=utf-8 - date: Thu, 11 Jun 2020 15:41:55 GMT + date: Fri, 10 Jul 2020 18:47:45 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '52' + x-envoy-upstream-service-time: '16' status: code: 200 message: OK - url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/1d71b160-3fd5-4212-8000-0a5929e51a8e?includeKeys=true + url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/f4135245-a217-4d73-aafe-5b1d517012f4?includeKeys=true - request: body: '%PDFUUU' headers: Content-Type: - application/pdf User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) method: POST - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/1d71b160-3fd5-4212-8000-0a5929e51a8e/analyze?includeTextDetails=false + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/f4135245-a217-4d73-aafe-5b1d517012f4/analyze?includeTextDetails=false response: body: string: '' headers: - apim-request-id: 4fa70f63-fcfc-4521-aa88-74c2d96ef626 + apim-request-id: ae76a0ea-8215-40ea-8bb6-76eea8f82cb6 content-length: '0' - date: Thu, 11 Jun 2020 15:41:55 GMT - operation-location: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/1d71b160-3fd5-4212-8000-0a5929e51a8e/analyzeresults/2ba1300d-5b6a-42e6-8924-cf70b4274725 + date: Fri, 10 Jul 2020 18:47:45 GMT + operation-location: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/f4135245-a217-4d73-aafe-5b1d517012f4/analyzeresults/49e08b4e-ce78-4599-ba53-0ae55c3f6842 strict-transport-security: max-age=31536000; includeSubDomains; preload x-content-type-options: nosniff - x-envoy-upstream-service-time: '86' + x-envoy-upstream-service-time: '768' status: code: 202 message: Accepted - url: https://centraluseuap.api.cognitive.microsoft.com//formrecognizer/v2.0-preview/custom/models/1d71b160-3fd5-4212-8000-0a5929e51a8e/analyze?includeTextDetails=false + url: https://centraluseuap.api.cognitive.microsoft.com//formrecognizer/v2.0/custom/models/f4135245-a217-4d73-aafe-5b1d517012f4/analyze?includeTextDetails=false +- request: + body: null + headers: + User-Agent: + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + method: GET + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/f4135245-a217-4d73-aafe-5b1d517012f4/analyzeresults/49e08b4e-ce78-4599-ba53-0ae55c3f6842 + response: + body: + string: '{"status": "notStarted", "createdDateTime": "2020-07-10T18:47:45Z", + "lastUpdatedDateTime": "2020-07-10T18:47:45Z"}' + headers: + apim-request-id: 3be94f87-2525-41f1-97e3-dcbbb7dc1d1a + content-length: '109' + content-type: application/json; charset=utf-8 + date: Fri, 10 Jul 2020 18:47:51 GMT + strict-transport-security: max-age=31536000; includeSubDomains; preload + x-content-type-options: nosniff + x-envoy-upstream-service-time: '51' + status: + code: 200 + message: OK + url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/f4135245-a217-4d73-aafe-5b1d517012f4/analyzeresults/49e08b4e-ce78-4599-ba53-0ae55c3f6842 +- request: + body: null + headers: + User-Agent: + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + method: GET + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/f4135245-a217-4d73-aafe-5b1d517012f4/analyzeresults/49e08b4e-ce78-4599-ba53-0ae55c3f6842 + response: + body: + string: '{"status": "notStarted", "createdDateTime": "2020-07-10T18:47:45Z", + "lastUpdatedDateTime": "2020-07-10T18:47:45Z"}' + headers: + apim-request-id: 329505bd-5fc9-486b-9ce9-55bcfe9bef5d + content-length: '109' + content-type: application/json; charset=utf-8 + date: Fri, 10 Jul 2020 18:47:55 GMT + strict-transport-security: max-age=31536000; includeSubDomains; preload + x-content-type-options: nosniff + x-envoy-upstream-service-time: '16' + status: + code: 200 + message: OK + url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/f4135245-a217-4d73-aafe-5b1d517012f4/analyzeresults/49e08b4e-ce78-4599-ba53-0ae55c3f6842 +- request: + body: null + headers: + User-Agent: + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + method: GET + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/f4135245-a217-4d73-aafe-5b1d517012f4/analyzeresults/49e08b4e-ce78-4599-ba53-0ae55c3f6842 + response: + body: + string: '{"status": "notStarted", "createdDateTime": "2020-07-10T18:47:45Z", + "lastUpdatedDateTime": "2020-07-10T18:47:45Z"}' + headers: + apim-request-id: c0c4b2ba-1b20-420b-a659-a886d89451be + content-length: '109' + content-type: application/json; charset=utf-8 + date: Fri, 10 Jul 2020 18:48:01 GMT + strict-transport-security: max-age=31536000; includeSubDomains; preload + x-content-type-options: nosniff + x-envoy-upstream-service-time: '19' + status: + code: 200 + message: OK + url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/f4135245-a217-4d73-aafe-5b1d517012f4/analyzeresults/49e08b4e-ce78-4599-ba53-0ae55c3f6842 +- request: + body: null + headers: + User-Agent: + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + method: GET + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/f4135245-a217-4d73-aafe-5b1d517012f4/analyzeresults/49e08b4e-ce78-4599-ba53-0ae55c3f6842 + response: + body: + string: '{"status": "notStarted", "createdDateTime": "2020-07-10T18:47:45Z", + "lastUpdatedDateTime": "2020-07-10T18:47:45Z"}' + headers: + apim-request-id: 112f3660-3805-4cdc-ba02-3720893b5ccc + content-length: '109' + content-type: application/json; charset=utf-8 + date: Fri, 10 Jul 2020 18:48:07 GMT + strict-transport-security: max-age=31536000; includeSubDomains; preload + x-content-type-options: nosniff + x-envoy-upstream-service-time: '663' + status: + code: 200 + message: OK + url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/f4135245-a217-4d73-aafe-5b1d517012f4/analyzeresults/49e08b4e-ce78-4599-ba53-0ae55c3f6842 +- request: + body: null + headers: + User-Agent: + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + method: GET + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/f4135245-a217-4d73-aafe-5b1d517012f4/analyzeresults/49e08b4e-ce78-4599-ba53-0ae55c3f6842 + response: + body: + string: '{"status": "notStarted", "createdDateTime": "2020-07-10T18:47:45Z", + "lastUpdatedDateTime": "2020-07-10T18:47:45Z"}' + headers: + apim-request-id: c7fef9d5-7618-4454-bb89-841196d10bc2 + content-length: '109' + content-type: application/json; charset=utf-8 + date: Fri, 10 Jul 2020 18:48:11 GMT + strict-transport-security: max-age=31536000; includeSubDomains; preload + x-content-type-options: nosniff + x-envoy-upstream-service-time: '20' + status: + code: 200 + message: OK + url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/f4135245-a217-4d73-aafe-5b1d517012f4/analyzeresults/49e08b4e-ce78-4599-ba53-0ae55c3f6842 +- request: + body: null + headers: + User-Agent: + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + method: GET + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/f4135245-a217-4d73-aafe-5b1d517012f4/analyzeresults/49e08b4e-ce78-4599-ba53-0ae55c3f6842 + response: + body: + string: '{"status": "notStarted", "createdDateTime": "2020-07-10T18:47:45Z", + "lastUpdatedDateTime": "2020-07-10T18:47:45Z"}' + headers: + apim-request-id: 362cd4fc-5e12-4c17-9e83-8687ff9b45c7 + content-length: '109' + content-type: application/json; charset=utf-8 + date: Fri, 10 Jul 2020 18:48:17 GMT + strict-transport-security: max-age=31536000; includeSubDomains; preload + x-content-type-options: nosniff + x-envoy-upstream-service-time: '49' + status: + code: 200 + message: OK + url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/f4135245-a217-4d73-aafe-5b1d517012f4/analyzeresults/49e08b4e-ce78-4599-ba53-0ae55c3f6842 +- request: + body: null + headers: + User-Agent: + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + method: GET + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/f4135245-a217-4d73-aafe-5b1d517012f4/analyzeresults/49e08b4e-ce78-4599-ba53-0ae55c3f6842 + response: + body: + string: '{"status": "notStarted", "createdDateTime": "2020-07-10T18:47:45Z", + "lastUpdatedDateTime": "2020-07-10T18:47:45Z"}' + headers: + apim-request-id: 9ef3f2ce-e4c7-4d30-9aec-4086d9149231 + content-length: '109' + content-type: application/json; charset=utf-8 + date: Fri, 10 Jul 2020 18:48:22 GMT + strict-transport-security: max-age=31536000; includeSubDomains; preload + x-content-type-options: nosniff + x-envoy-upstream-service-time: '19' + status: + code: 200 + message: OK + url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/f4135245-a217-4d73-aafe-5b1d517012f4/analyzeresults/49e08b4e-ce78-4599-ba53-0ae55c3f6842 +- request: + body: null + headers: + User-Agent: + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + method: GET + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/f4135245-a217-4d73-aafe-5b1d517012f4/analyzeresults/49e08b4e-ce78-4599-ba53-0ae55c3f6842 + response: + body: + string: '{"status": "notStarted", "createdDateTime": "2020-07-10T18:47:45Z", + "lastUpdatedDateTime": "2020-07-10T18:47:45Z"}' + headers: + apim-request-id: 8e853b63-bd31-442f-bb6d-0fda7d606d81 + content-length: '109' + content-type: application/json; charset=utf-8 + date: Fri, 10 Jul 2020 18:48:27 GMT + strict-transport-security: max-age=31536000; includeSubDomains; preload + x-content-type-options: nosniff + x-envoy-upstream-service-time: '17' + status: + code: 200 + message: OK + url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/f4135245-a217-4d73-aafe-5b1d517012f4/analyzeresults/49e08b4e-ce78-4599-ba53-0ae55c3f6842 +- request: + body: null + headers: + User-Agent: + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + method: GET + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/f4135245-a217-4d73-aafe-5b1d517012f4/analyzeresults/49e08b4e-ce78-4599-ba53-0ae55c3f6842 + response: + body: + string: '{"status": "notStarted", "createdDateTime": "2020-07-10T18:47:45Z", + "lastUpdatedDateTime": "2020-07-10T18:47:45Z"}' + headers: + apim-request-id: 3c74ac52-5726-41d6-951e-a12f90c3ee1c + content-length: '109' + content-type: application/json; charset=utf-8 + date: Fri, 10 Jul 2020 18:48:32 GMT + strict-transport-security: max-age=31536000; includeSubDomains; preload + x-content-type-options: nosniff + x-envoy-upstream-service-time: '21' + status: + code: 200 + message: OK + url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/f4135245-a217-4d73-aafe-5b1d517012f4/analyzeresults/49e08b4e-ce78-4599-ba53-0ae55c3f6842 +- request: + body: null + headers: + User-Agent: + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + method: GET + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/f4135245-a217-4d73-aafe-5b1d517012f4/analyzeresults/49e08b4e-ce78-4599-ba53-0ae55c3f6842 + response: + body: + string: '{"status": "notStarted", "createdDateTime": "2020-07-10T18:47:45Z", + "lastUpdatedDateTime": "2020-07-10T18:47:45Z"}' + headers: + apim-request-id: 00538319-615c-4ea1-b621-97e36c84934a + content-length: '109' + content-type: application/json; charset=utf-8 + date: Fri, 10 Jul 2020 18:48:37 GMT + strict-transport-security: max-age=31536000; includeSubDomains; preload + x-content-type-options: nosniff + x-envoy-upstream-service-time: '20' + status: + code: 200 + message: OK + url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/f4135245-a217-4d73-aafe-5b1d517012f4/analyzeresults/49e08b4e-ce78-4599-ba53-0ae55c3f6842 - request: body: null headers: User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/1d71b160-3fd5-4212-8000-0a5929e51a8e/analyzeresults/2ba1300d-5b6a-42e6-8924-cf70b4274725 + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/f4135245-a217-4d73-aafe-5b1d517012f4/analyzeresults/49e08b4e-ce78-4599-ba53-0ae55c3f6842 response: body: - string: '{"status": "failed", "createdDateTime": "2020-06-11T15:41:56Z", "lastUpdatedDateTime": - "2020-06-11T15:41:58Z", "analyzeResult": {"version": "2.0.0", "readResults": + string: '{"status": "failed", "createdDateTime": "2020-07-10T18:47:45Z", "lastUpdatedDateTime": + "2020-07-10T18:48:40Z", "analyzeResult": {"version": "2.0.0", "readResults": [], "pageResults": [], "documentResults": [], "errors": [{"code": "2005", "message": "Unable to read file."}]}}' headers: - apim-request-id: c383308c-69fa-4f8c-8b0c-ae2d02a36483 + apim-request-id: b872c012-2e49-4be0-a314-d39043987bc9 content-length: '275' content-type: application/json; charset=utf-8 - date: Thu, 11 Jun 2020 15:42:01 GMT + date: Fri, 10 Jul 2020 18:48:44 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload x-content-type-options: nosniff - x-envoy-upstream-service-time: '56' + x-envoy-upstream-service-time: '1706' x-ms-cs-error-code: '2005' status: code: 200 message: OK - url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/1d71b160-3fd5-4212-8000-0a5929e51a8e/analyzeresults/2ba1300d-5b6a-42e6-8924-cf70b4274725 + url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/f4135245-a217-4d73-aafe-5b1d517012f4/analyzeresults/49e08b4e-ce78-4599-ba53-0ae55c3f6842 version: 1 diff --git a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_custom_forms_async.test_custom_form_labeled.yaml b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_custom_forms_async.test_custom_form_labeled.yaml index 903dd5ca279f..bff658b0bd20 100644 --- a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_custom_forms_async.test_custom_form_labeled.yaml +++ b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_custom_forms_async.test_custom_form_labeled.yaml @@ -8,38 +8,36 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) method: POST - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models response: body: string: '' headers: - apim-request-id: 3ce81228-96c0-42aa-967f-d90454ecdcde + apim-request-id: bf229dfe-aa94-4948-b083-0dd3b44569ad content-length: '0' - date: Thu, 11 Jun 2020 15:42:02 GMT - location: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/bfc1ac2f-ec2e-4320-976f-e68969b8655a + date: Fri, 10 Jul 2020 18:48:44 GMT + location: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/a971b699-69e3-4397-a985-b3d48cf3ca3d strict-transport-security: max-age=31536000; includeSubDomains; preload x-content-type-options: nosniff - x-envoy-upstream-service-time: '799' + x-envoy-upstream-service-time: '186' status: code: 201 message: Created - url: https://centraluseuap.api.cognitive.microsoft.com//formrecognizer/v2.0-preview/custom/models + url: https://centraluseuap.api.cognitive.microsoft.com//formrecognizer/v2.0/custom/models - request: body: null headers: User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/bfc1ac2f-ec2e-4320-976f-e68969b8655a?includeKeys=true + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/a971b699-69e3-4397-a985-b3d48cf3ca3d?includeKeys=true response: body: - string: '{"modelInfo": {"modelId": "bfc1ac2f-ec2e-4320-976f-e68969b8655a", "status": - "ready", "createdDateTime": "2020-06-11T15:42:02Z", "lastUpdatedDateTime": - "2020-06-11T15:42:04Z"}, "trainResult": {"averageModelAccuracy": 0.973, "trainingDocuments": + string: '{"modelInfo": {"modelId": "a971b699-69e3-4397-a985-b3d48cf3ca3d", "status": + "ready", "createdDateTime": "2020-07-10T18:48:45Z", "lastUpdatedDateTime": + "2020-07-10T18:48:48Z"}, "trainResult": {"averageModelAccuracy": 0.973, "trainingDocuments": [{"documentName": "Form_1.jpg", "pages": 1, "status": "succeeded"}, {"documentName": "Form_2.jpg", "pages": 1, "status": "succeeded"}, {"documentName": "Form_3.jpg", "pages": 1, "status": "succeeded"}, {"documentName": "Form_4.jpg", "pages": @@ -55,17 +53,17 @@ interactions: "VendorName", "accuracy": 1.0}, {"fieldName": "Website", "accuracy": 1.0}], "errors": []}}' headers: - apim-request-id: d2fa7135-e4cb-466e-a202-894a4401b043 + apim-request-id: 4963ef95-74db-49a3-a40d-27df810878e7 content-type: application/json; charset=utf-8 - date: Thu, 11 Jun 2020 15:42:07 GMT + date: Fri, 10 Jul 2020 18:48:50 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '733' + x-envoy-upstream-service-time: '20' status: code: 200 message: OK - url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/bfc1ac2f-ec2e-4320-976f-e68969b8655a?includeKeys=true + url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/a971b699-69e3-4397-a985-b3d48cf3ca3d?includeKeys=true - request: body: !!binary | /9j/4AAQSkZJRgABAQEAyADIAAD/4QBmRXhpZgAATU0AKgAAAAgABAEaAAUAAAABAAAAPgEbAAUA @@ -8481,37 +8479,58 @@ interactions: Content-Type: - image/jpeg User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) method: POST - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/bfc1ac2f-ec2e-4320-976f-e68969b8655a/analyze?includeTextDetails=false + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/a971b699-69e3-4397-a985-b3d48cf3ca3d/analyze?includeTextDetails=false response: body: string: '' headers: - apim-request-id: 87761ddc-9a93-4bf1-b659-54a578aba96a + apim-request-id: 712bb28e-d4fb-4cf8-9e64-96110e62605c content-length: '0' - date: Thu, 11 Jun 2020 15:42:09 GMT - operation-location: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/bfc1ac2f-ec2e-4320-976f-e68969b8655a/analyzeresults/d3b486ac-a444-48e3-94fd-e76b54f81861 + date: Fri, 10 Jul 2020 18:48:52 GMT + operation-location: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/a971b699-69e3-4397-a985-b3d48cf3ca3d/analyzeresults/0f1309ed-3361-4b5f-8744-caf01b71bb59 strict-transport-security: max-age=31536000; includeSubDomains; preload x-content-type-options: nosniff - x-envoy-upstream-service-time: '127' + x-envoy-upstream-service-time: '944' status: code: 202 message: Accepted - url: https://centraluseuap.api.cognitive.microsoft.com//formrecognizer/v2.0-preview/custom/models/bfc1ac2f-ec2e-4320-976f-e68969b8655a/analyze?includeTextDetails=false + url: https://centraluseuap.api.cognitive.microsoft.com//formrecognizer/v2.0/custom/models/a971b699-69e3-4397-a985-b3d48cf3ca3d/analyze?includeTextDetails=false - request: body: null headers: User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/bfc1ac2f-ec2e-4320-976f-e68969b8655a/analyzeresults/d3b486ac-a444-48e3-94fd-e76b54f81861 + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/a971b699-69e3-4397-a985-b3d48cf3ca3d/analyzeresults/0f1309ed-3361-4b5f-8744-caf01b71bb59 response: body: - string: '{"status": "succeeded", "createdDateTime": "2020-06-11T15:42:09Z", - "lastUpdatedDateTime": "2020-06-11T15:42:13Z", "analyzeResult": {"version": + string: '{"status": "notStarted", "createdDateTime": "2020-07-10T18:48:52Z", + "lastUpdatedDateTime": "2020-07-10T18:48:54Z"}' + headers: + apim-request-id: 7779d10c-3bf9-420d-abc8-6e085e5fa509 + content-length: '109' + content-type: application/json; charset=utf-8 + date: Fri, 10 Jul 2020 18:48:57 GMT + strict-transport-security: max-age=31536000; includeSubDomains; preload + x-content-type-options: nosniff + x-envoy-upstream-service-time: '50' + status: + code: 200 + message: OK + url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/a971b699-69e3-4397-a985-b3d48cf3ca3d/analyzeresults/0f1309ed-3361-4b5f-8744-caf01b71bb59 +- request: + body: null + headers: + User-Agent: + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + method: GET + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/a971b699-69e3-4397-a985-b3d48cf3ca3d/analyzeresults/0f1309ed-3361-4b5f-8744-caf01b71bb59 + response: + body: + string: '{"status": "succeeded", "createdDateTime": "2020-07-10T18:48:52Z", + "lastUpdatedDateTime": "2020-07-10T18:48:58Z", "analyzeResult": {"version": "2.0.0", "readResults": [{"page": 1, "language": "en", "angle": 0, "width": 1700, "height": 2200, "unit": "pixel"}], "pageResults": [{"page": 1, "tables": [{"rows": 4, "columns": 3, "cells": [{"rowIndex": 1, "columnIndex": 1, "text": @@ -8556,54 +8575,55 @@ interactions: 2, "text": "5,00", "boundingBox": [1072, 1216, 1309, 1216, 1309, 1260, 1072, 1260]}, {"rowIndex": 4, "columnIndex": 3, "text": "100.00", "boundingBox": [1309, 1216, 1544, 1216, 1544, 1260, 1309, 1260]}]}]}], "documentResults": - [{"docType": "custom:form", "pageRange": [1, 1], "fields": {"Quantity": {"type": + [{"docType": "custom:form", "pageRange": [1, 1], "fields": {"DatedAs": {"type": + "string", "valueString": "12/20/2020", "text": "12/20/2020", "page": 1, "boundingBox": + [1168.0, 420.0, 1317.0, 420.0, 1317.0, 450.0, 1168.0, 450.0], "confidence": + 1.0}, "Merchant": {"type": "string", "valueString": "Hero Limited", "text": + "Hero Limited", "page": 1, "boundingBox": [621.0, 202.0, 1075.0, 202.0, 1075.0, + 266.0, 621.0, 266.0], "confidence": 1.0}, "PhoneNumber": {"type": "string", + "valueString": "555-348-6512", "text": "555-348-6512", "page": 1, "boundingBox": + [367.0, 351.0, 529.0, 351.0, 529.0, 378.0, 367.0, 378.0], "confidence": 1.0}, + "CompanyAddress": {"type": "string", "valueString": "938 NE Burner Road Boulder + City, CO 92848", "text": "938 NE Burner Road Boulder City, CO 92848", "page": + 1, "boundingBox": [277.0, 685.0, 568.0, 685.0, 568.0, 754.0, 277.0, 754.0], + "confidence": 1.0}, "CompanyPhoneNumber": {"type": "string", "valueString": + "938-294-2949", "text": "938-294-2949", "page": 1, "boundingBox": [713.0, + 722.0, 884.0, 722.0, 884.0, 750.0, 713.0, 750.0], "confidence": 1.0}, "Email": + {"type": "string", "valueString": "accounts@herolimited.com", "text": "accounts@herolimited.com", + "page": 1, "boundingBox": [166.0, 480.0, 475.0, 480.0, 475.0, 503.0, 166.0, + 503.0], "confidence": 1.0}, "PurchaseOrderNumber": {"type": "string", "valueString": + "948284", "text": "948284", "page": 1, "boundingBox": [1282.0, 461.0, 1377.0, + 461.0, 1377.0, 489.0, 1282.0, 489.0], "confidence": 1.0}, "Quantity": {"type": "number", "text": "20", "page": 1, "boundingBox": [861.0, 1089.0, 895.0, 1089.0, - 895.0, 1120.0, 861.0, 1120.0], "confidence": 1.0}, "PhoneNumber": {"type": - "string", "valueString": "555-348-6512", "text": "555-348-6512", "page": 1, - "boundingBox": [367.0, 351.0, 529.0, 351.0, 529.0, 378.0, 367.0, 378.0], "confidence": - 1.0}, "Tax": {"type": "string", "valueString": "$4.00", "text": "$4.00", "page": - 1, "boundingBox": [1461.0, 1614.0, 1530.0, 1614.0, 1530.0, 1642.0, 1461.0, - 1642.0], "confidence": 1.0}, "Email": {"type": "string", "valueString": "accounts@herolimited.com", - "text": "accounts@herolimited.com", "page": 1, "boundingBox": [166.0, 480.0, - 475.0, 480.0, 475.0, 503.0, 166.0, 503.0], "confidence": 1.0}, "PurchaseOrderNumber": - {"type": "string", "valueString": "948284", "text": "948284", "page": 1, "boundingBox": - [1282.0, 461.0, 1377.0, 461.0, 1377.0, 489.0, 1282.0, 489.0], "confidence": - 1.0}, "Signature": {"type": "string", "valueString": "Bernie Sanders", "text": - "Bernie Sanders", "page": 1, "boundingBox": [482.0, 1670.0, 764.0, 1670.0, - 764.0, 1709.0, 482.0, 1709.0], "confidence": 1.0}, "Merchant": {"type": "string", - "valueString": "Hero Limited", "text": "Hero Limited", "page": 1, "boundingBox": - [621.0, 202.0, 1075.0, 202.0, 1075.0, 266.0, 621.0, 266.0], "confidence": - 1.0}, "CompanyName": {"type": "string", "valueString": "Higgly Wiggly Books", - "text": "Higgly Wiggly Books", "page": 1, "boundingBox": [378.0, 646.0, 629.0, - 646.0, 629.0, 682.0, 378.0, 682.0], "confidence": 1.0}, "CompanyPhoneNumber": - {"type": "string", "valueString": "938-294-2949", "text": "938-294-2949", - "page": 1, "boundingBox": [713.0, 722.0, 884.0, 722.0, 884.0, 750.0, 713.0, - 750.0], "confidence": 1.0}, "VendorName": {"type": "string", "valueString": - "Hillary Swank", "text": "Hillary Swank", "page": 1, "boundingBox": [351.0, - 609.0, 518.0, 609.0, 518.0, 641.0, 351.0, 641.0], "confidence": 1.0}, "Total": - {"type": "string", "valueString": "$144.00", "text": "$144.00", "page": 1, - "boundingBox": [1429.0, 1669.0, 1530.0, 1669.0, 1530.0, 1697.0, 1429.0, 1697.0], - "confidence": 1.0}, "DatedAs": {"type": "string", "valueString": "12/20/2020", - "text": "12/20/2020", "page": 1, "boundingBox": [1168.0, 420.0, 1317.0, 420.0, - 1317.0, 450.0, 1168.0, 450.0], "confidence": 1.0}, "CompanyAddress": {"type": - "string", "valueString": "938 NE Burner Road Boulder City, CO 92848", "text": - "938 NE Burner Road Boulder City, CO 92848", "page": 1, "boundingBox": [277.0, - 685.0, 568.0, 685.0, 568.0, 754.0, 277.0, 754.0], "confidence": 1.0}, "Subtotal": - {"type": "string", "valueString": "$140.00", "text": "$140.00", "page": 1, - "boundingBox": [1429.0, 1570.0, 1530.0, 1570.0, 1530.0, 1599.0, 1429.0, 1599.0], - "confidence": 1.0}, "Website": {"type": "string", "valueString": "www.herolimited.com", - "text": "www.herolimited.com", "page": 1, "boundingBox": [274.0, 393.0, 529.0, - 393.0, 529.0, 419.0, 274.0, 419.0], "confidence": 1.0}}}], "errors": []}}' + 895.0, 1120.0, 861.0, 1120.0], "confidence": 1.0}, "VendorName": {"type": + "string", "valueString": "Hillary Swank", "text": "Hillary Swank", "page": + 1, "boundingBox": [351.0, 609.0, 518.0, 609.0, 518.0, 641.0, 351.0, 641.0], + "confidence": 1.0}, "CompanyName": {"type": "string", "valueString": "Higgly + Wiggly Books", "text": "Higgly Wiggly Books", "page": 1, "boundingBox": [378.0, + 646.0, 629.0, 646.0, 629.0, 682.0, 378.0, 682.0], "confidence": 1.0}, "Website": + {"type": "string", "valueString": "www.herolimited.com", "text": "www.herolimited.com", + "page": 1, "boundingBox": [274.0, 393.0, 529.0, 393.0, 529.0, 419.0, 274.0, + 419.0], "confidence": 1.0}, "Signature": {"type": "string", "valueString": + "Bernie Sanders", "text": "Bernie Sanders", "page": 1, "boundingBox": [482.0, + 1670.0, 764.0, 1670.0, 764.0, 1709.0, 482.0, 1709.0], "confidence": 1.0}, + "Subtotal": {"type": "string", "valueString": "$140.00", "text": "$140.00", + "page": 1, "boundingBox": [1429.0, 1570.0, 1530.0, 1570.0, 1530.0, 1599.0, + 1429.0, 1599.0], "confidence": 1.0}, "Total": {"type": "string", "valueString": + "$144.00", "text": "$144.00", "page": 1, "boundingBox": [1429.0, 1669.0, 1530.0, + 1669.0, 1530.0, 1697.0, 1429.0, 1697.0], "confidence": 1.0}, "Tax": {"type": + "string", "valueString": "$4.00", "text": "$4.00", "page": 1, "boundingBox": + [1461.0, 1614.0, 1530.0, 1614.0, 1530.0, 1642.0, 1461.0, 1642.0], "confidence": + 1.0}}}], "errors": []}}' headers: - apim-request-id: 4df8c7e1-2ff9-478d-a6b7-3d8c9e1ac835 + apim-request-id: 42a844f5-b1a4-449b-be18-5da9f70432e4 content-length: '5839' content-type: application/json; charset=utf-8 - date: Thu, 11 Jun 2020 15:42:14 GMT + date: Fri, 10 Jul 2020 18:49:02 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload x-content-type-options: nosniff - x-envoy-upstream-service-time: '50' + x-envoy-upstream-service-time: '21' status: code: 200 message: OK - url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/bfc1ac2f-ec2e-4320-976f-e68969b8655a/analyzeresults/d3b486ac-a444-48e3-94fd-e76b54f81861 + url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/a971b699-69e3-4397-a985-b3d48cf3ca3d/analyzeresults/0f1309ed-3361-4b5f-8744-caf01b71bb59 version: 1 diff --git a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_custom_forms_async.test_custom_form_labeled_blank_page.yaml b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_custom_forms_async.test_custom_form_labeled_blank_page.yaml index acedd12dc83f..d8db6cc2e990 100644 --- a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_custom_forms_async.test_custom_form_labeled_blank_page.yaml +++ b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_custom_forms_async.test_custom_form_labeled_blank_page.yaml @@ -8,38 +8,60 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) method: POST - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models response: body: string: '' headers: - apim-request-id: e6cd020f-a928-473e-90a9-7ab98aecad7b + apim-request-id: 0a3cd333-decd-4dfa-9f6b-a0fc27867dbb content-length: '0' - date: Mon, 15 Jun 2020 20:12:14 GMT - location: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/2d79c90f-083a-448f-8abb-57a4b3bbfb3b + date: Fri, 10 Jul 2020 18:49:02 GMT + location: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/68df8c7a-51dc-4124-9374-b7f966788c95 strict-transport-security: max-age=31536000; includeSubDomains; preload x-content-type-options: nosniff - x-envoy-upstream-service-time: '505' + x-envoy-upstream-service-time: '40' status: code: 201 message: Created - url: https://centraluseuap.api.cognitive.microsoft.com//formrecognizer/v2.0-preview/custom/models + url: https://centraluseuap.api.cognitive.microsoft.com//formrecognizer/v2.0/custom/models - request: body: null headers: User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/2d79c90f-083a-448f-8abb-57a4b3bbfb3b?includeKeys=true + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/68df8c7a-51dc-4124-9374-b7f966788c95?includeKeys=true response: body: - string: '{"modelInfo": {"modelId": "2d79c90f-083a-448f-8abb-57a4b3bbfb3b", "status": - "ready", "createdDateTime": "2020-06-15T20:12:14Z", "lastUpdatedDateTime": - "2020-06-15T20:12:18Z"}, "trainResult": {"averageModelAccuracy": 0.973, "trainingDocuments": + string: '{"modelInfo": {"modelId": "68df8c7a-51dc-4124-9374-b7f966788c95", "status": + "creating", "createdDateTime": "2020-07-10T18:49:03Z", "lastUpdatedDateTime": + "2020-07-10T18:49:03Z"}}' + headers: + apim-request-id: f3092d2c-dd31-4ceb-9908-c30aa860474d + content-type: application/json; charset=utf-8 + date: Fri, 10 Jul 2020 18:49:07 GMT + strict-transport-security: max-age=31536000; includeSubDomains; preload + transfer-encoding: chunked + x-content-type-options: nosniff + x-envoy-upstream-service-time: '17' + status: + code: 200 + message: OK + url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/68df8c7a-51dc-4124-9374-b7f966788c95?includeKeys=true +- request: + body: null + headers: + User-Agent: + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + method: GET + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/68df8c7a-51dc-4124-9374-b7f966788c95?includeKeys=true + response: + body: + string: '{"modelInfo": {"modelId": "68df8c7a-51dc-4124-9374-b7f966788c95", "status": + "ready", "createdDateTime": "2020-07-10T18:49:03Z", "lastUpdatedDateTime": + "2020-07-10T18:49:11Z"}, "trainResult": {"averageModelAccuracy": 0.973, "trainingDocuments": [{"documentName": "Form_1.jpg", "pages": 1, "status": "succeeded"}, {"documentName": "Form_2.jpg", "pages": 1, "status": "succeeded"}, {"documentName": "Form_3.jpg", "pages": 1, "status": "succeeded"}, {"documentName": "Form_4.jpg", "pages": @@ -55,17 +77,17 @@ interactions: "VendorName", "accuracy": 1.0}, {"fieldName": "Website", "accuracy": 1.0}], "errors": []}}' headers: - apim-request-id: 20716af1-407e-45eb-b363-75c3f3fd0963 + apim-request-id: df8acdfd-dc79-4c68-871e-59a6e2bd1e8d content-type: application/json; charset=utf-8 - date: Mon, 15 Jun 2020 20:12:24 GMT + date: Fri, 10 Jul 2020 18:49:13 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '5165' + x-envoy-upstream-service-time: '48' status: code: 200 message: OK - url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/2d79c90f-083a-448f-8abb-57a4b3bbfb3b?includeKeys=true + url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/68df8c7a-51dc-4124-9374-b7f966788c95?includeKeys=true - request: body: !!binary | JVBERi0xLjcNCiW1tbW1DQoxIDAgb2JqDQo8PC9UeXBlL0NhdGFsb2cvUGFnZXMgMiAwIFIvTGFu @@ -523,37 +545,58 @@ interactions: Content-Type: - application/pdf User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) method: POST - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/2d79c90f-083a-448f-8abb-57a4b3bbfb3b/analyze?includeTextDetails=false + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/68df8c7a-51dc-4124-9374-b7f966788c95/analyze?includeTextDetails=false response: body: string: '' headers: - apim-request-id: 60476c1e-b7d5-4cf2-90aa-3fff2789c7d1 + apim-request-id: cfed12b8-e0f4-41fe-9849-80bb449ef755 content-length: '0' - date: Mon, 15 Jun 2020 20:12:25 GMT - operation-location: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/2d79c90f-083a-448f-8abb-57a4b3bbfb3b/analyzeresults/68751e3b-2624-413e-b0f8-b609a99abcc7 + date: Fri, 10 Jul 2020 18:49:14 GMT + operation-location: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/68df8c7a-51dc-4124-9374-b7f966788c95/analyzeresults/c000c408-44bb-45cd-a807-4ee0b99afa4e strict-transport-security: max-age=31536000; includeSubDomains; preload x-content-type-options: nosniff - x-envoy-upstream-service-time: '369' + x-envoy-upstream-service-time: '958' status: code: 202 message: Accepted - url: https://centraluseuap.api.cognitive.microsoft.com//formrecognizer/v2.0-preview/custom/models/2d79c90f-083a-448f-8abb-57a4b3bbfb3b/analyze?includeTextDetails=false + url: https://centraluseuap.api.cognitive.microsoft.com//formrecognizer/v2.0/custom/models/68df8c7a-51dc-4124-9374-b7f966788c95/analyze?includeTextDetails=false +- request: + body: null + headers: + User-Agent: + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + method: GET + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/68df8c7a-51dc-4124-9374-b7f966788c95/analyzeresults/c000c408-44bb-45cd-a807-4ee0b99afa4e + response: + body: + string: '{"status": "notStarted", "createdDateTime": "2020-07-10T18:49:14Z", + "lastUpdatedDateTime": "2020-07-10T18:49:17Z"}' + headers: + apim-request-id: e0f72c84-cec7-4ee1-af35-b64dc3bf9ea4 + content-length: '109' + content-type: application/json; charset=utf-8 + date: Fri, 10 Jul 2020 18:49:19 GMT + strict-transport-security: max-age=31536000; includeSubDomains; preload + x-content-type-options: nosniff + x-envoy-upstream-service-time: '56' + status: + code: 200 + message: OK + url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/68df8c7a-51dc-4124-9374-b7f966788c95/analyzeresults/c000c408-44bb-45cd-a807-4ee0b99afa4e - request: body: null headers: User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/2d79c90f-083a-448f-8abb-57a4b3bbfb3b/analyzeresults/68751e3b-2624-413e-b0f8-b609a99abcc7 + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/68df8c7a-51dc-4124-9374-b7f966788c95/analyzeresults/c000c408-44bb-45cd-a807-4ee0b99afa4e response: body: - string: '{"status": "succeeded", "createdDateTime": "2020-06-15T20:12:25Z", - "lastUpdatedDateTime": "2020-06-15T20:12:30Z", "analyzeResult": {"version": + string: '{"status": "succeeded", "createdDateTime": "2020-07-10T18:49:14Z", + "lastUpdatedDateTime": "2020-07-10T18:49:20Z", "analyzeResult": {"version": "2.0.0", "readResults": [{"page": 1, "language": "en", "angle": 0, "width": 8.4967, "height": 10.9967, "unit": "inch"}], "pageResults": [{"page": 1, "tables": []}], "documentResults": [{"docType": "custom:form", "pageRange": [1, 1], @@ -563,15 +606,15 @@ interactions: null, "Tax": null, "Total": null, "VendorName": null, "Website": null}}], "errors": []}}' headers: - apim-request-id: cf966d38-a06a-4369-a009-1accaa745507 + apim-request-id: fde38e92-e37b-4216-9c3d-0deaf194d0cc content-length: '632' content-type: application/json; charset=utf-8 - date: Mon, 15 Jun 2020 20:12:30 GMT + date: Fri, 10 Jul 2020 18:49:25 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload x-content-type-options: nosniff - x-envoy-upstream-service-time: '153' + x-envoy-upstream-service-time: '166' status: code: 200 message: OK - url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/2d79c90f-083a-448f-8abb-57a4b3bbfb3b/analyzeresults/68751e3b-2624-413e-b0f8-b609a99abcc7 + url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/68df8c7a-51dc-4124-9374-b7f966788c95/analyzeresults/c000c408-44bb-45cd-a807-4ee0b99afa4e version: 1 diff --git a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_custom_forms_async.test_custom_form_multipage_labeled.yaml b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_custom_forms_async.test_custom_form_multipage_labeled.yaml index b5ec4175368b..b9e9d515de91 100644 --- a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_custom_forms_async.test_custom_form_multipage_labeled.yaml +++ b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_custom_forms_async.test_custom_form_multipage_labeled.yaml @@ -8,38 +8,60 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) method: POST - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models response: body: string: '' headers: - apim-request-id: e0035e32-4a98-4bbe-8aa6-42a153367c42 + apim-request-id: 6debd19d-9984-4a94-bcf1-3f436c4e0437 content-length: '0' - date: Thu, 11 Jun 2020 15:41:20 GMT - location: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/498e4037-7fce-4d22-93ca-c623121f7def + date: Fri, 10 Jul 2020 18:47:00 GMT + location: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/352ce435-42d7-4ccc-b4d6-b1f516502908 strict-transport-security: max-age=31536000; includeSubDomains; preload x-content-type-options: nosniff - x-envoy-upstream-service-time: '138' + x-envoy-upstream-service-time: '118' status: code: 201 message: Created - url: https://centraluseuap.api.cognitive.microsoft.com//formrecognizer/v2.0-preview/custom/models + url: https://centraluseuap.api.cognitive.microsoft.com//formrecognizer/v2.0/custom/models - request: body: null headers: User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/498e4037-7fce-4d22-93ca-c623121f7def?includeKeys=true + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/352ce435-42d7-4ccc-b4d6-b1f516502908?includeKeys=true response: body: - string: '{"modelInfo": {"modelId": "498e4037-7fce-4d22-93ca-c623121f7def", "status": - "ready", "createdDateTime": "2020-06-11T15:41:20Z", "lastUpdatedDateTime": - "2020-06-11T15:41:22Z"}, "trainResult": {"averageModelAccuracy": 0.889, "trainingDocuments": + string: '{"modelInfo": {"modelId": "352ce435-42d7-4ccc-b4d6-b1f516502908", "status": + "creating", "createdDateTime": "2020-07-10T18:47:00Z", "lastUpdatedDateTime": + "2020-07-10T18:47:00Z"}}' + headers: + apim-request-id: 57654de7-0de2-49ca-9dca-ab16daedd9ff + content-type: application/json; charset=utf-8 + date: Fri, 10 Jul 2020 18:47:05 GMT + strict-transport-security: max-age=31536000; includeSubDomains; preload + transfer-encoding: chunked + x-content-type-options: nosniff + x-envoy-upstream-service-time: '148' + status: + code: 200 + message: OK + url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/352ce435-42d7-4ccc-b4d6-b1f516502908?includeKeys=true +- request: + body: null + headers: + User-Agent: + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + method: GET + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/352ce435-42d7-4ccc-b4d6-b1f516502908?includeKeys=true + response: + body: + string: '{"modelInfo": {"modelId": "352ce435-42d7-4ccc-b4d6-b1f516502908", "status": + "ready", "createdDateTime": "2020-07-10T18:47:00Z", "lastUpdatedDateTime": + "2020-07-10T18:47:07Z"}, "trainResult": {"averageModelAccuracy": 0.889, "trainingDocuments": [{"documentName": "multipage_invoice1.pdf", "pages": 3, "status": "succeeded"}, {"documentName": "multipage_invoice2.pdf", "pages": 3, "status": "succeeded"}, {"documentName": "multipage_invoice3.pdf", "pages": 3, "status": "succeeded"}, @@ -57,17 +79,17 @@ interactions: 1.0}, {"fieldName": "Tip", "accuracy": 1.0}, {"fieldName": "Total", "accuracy": 1.0}, {"fieldName": "Total2", "accuracy": 1.0}], "errors": []}}' headers: - apim-request-id: e20f13b4-b85f-466e-87f8-9231683c90cf + apim-request-id: 06bb9101-0028-429b-b77f-d64eb2686ffe content-type: application/json; charset=utf-8 - date: Thu, 11 Jun 2020 15:41:25 GMT + date: Fri, 10 Jul 2020 18:47:10 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '53' + x-envoy-upstream-service-time: '19' status: code: 200 message: OK - url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/498e4037-7fce-4d22-93ca-c623121f7def?includeKeys=true + url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/352ce435-42d7-4ccc-b4d6-b1f516502908?includeKeys=true - request: body: !!binary | JVBERi0xLjcNCiW1tbW1DQoxIDAgb2JqDQo8PC9UeXBlL0NhdGFsb2cvUGFnZXMgMiAwIFIvTGFu @@ -1986,109 +2008,58 @@ interactions: Content-Type: - application/pdf User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) method: POST - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/498e4037-7fce-4d22-93ca-c623121f7def/analyze?includeTextDetails=false + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/352ce435-42d7-4ccc-b4d6-b1f516502908/analyze?includeTextDetails=false response: body: string: '' headers: - apim-request-id: 3ccf67d0-696f-42fb-a1b3-9f3353d6c80b + apim-request-id: d03848a4-d408-4801-9d59-0700eca9d65a content-length: '0' - date: Thu, 11 Jun 2020 15:41:26 GMT - operation-location: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/498e4037-7fce-4d22-93ca-c623121f7def/analyzeresults/2d6792f0-5ae8-4947-b17d-62a39e809a7c + date: Fri, 10 Jul 2020 18:47:11 GMT + operation-location: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/352ce435-42d7-4ccc-b4d6-b1f516502908/analyzeresults/d89875a5-3d3c-4b41-b08b-d0c9249d3bf0 strict-transport-security: max-age=31536000; includeSubDomains; preload x-content-type-options: nosniff - x-envoy-upstream-service-time: '145' + x-envoy-upstream-service-time: '225' status: code: 202 message: Accepted - url: https://centraluseuap.api.cognitive.microsoft.com//formrecognizer/v2.0-preview/custom/models/498e4037-7fce-4d22-93ca-c623121f7def/analyze?includeTextDetails=false + url: https://centraluseuap.api.cognitive.microsoft.com//formrecognizer/v2.0/custom/models/352ce435-42d7-4ccc-b4d6-b1f516502908/analyze?includeTextDetails=false - request: body: null headers: User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/498e4037-7fce-4d22-93ca-c623121f7def/analyzeresults/2d6792f0-5ae8-4947-b17d-62a39e809a7c + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/352ce435-42d7-4ccc-b4d6-b1f516502908/analyzeresults/d89875a5-3d3c-4b41-b08b-d0c9249d3bf0 response: body: - string: '{"status": "notStarted", "createdDateTime": "2020-06-11T15:41:26Z", - "lastUpdatedDateTime": "2020-06-11T15:41:29Z"}' + string: '{"status": "notStarted", "createdDateTime": "2020-07-10T18:47:11Z", + "lastUpdatedDateTime": "2020-07-10T18:47:12Z"}' headers: - apim-request-id: c0621808-7aa4-4421-aef2-3e9659f2930a + apim-request-id: 7c726d92-8eef-4131-81ec-78a692c5dd94 content-length: '109' content-type: application/json; charset=utf-8 - date: Thu, 11 Jun 2020 15:41:31 GMT + date: Fri, 10 Jul 2020 18:47:16 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload x-content-type-options: nosniff - x-envoy-upstream-service-time: '198' + x-envoy-upstream-service-time: '22' status: code: 200 message: OK - url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/498e4037-7fce-4d22-93ca-c623121f7def/analyzeresults/2d6792f0-5ae8-4947-b17d-62a39e809a7c + url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/352ce435-42d7-4ccc-b4d6-b1f516502908/analyzeresults/d89875a5-3d3c-4b41-b08b-d0c9249d3bf0 - request: body: null headers: User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/498e4037-7fce-4d22-93ca-c623121f7def/analyzeresults/2d6792f0-5ae8-4947-b17d-62a39e809a7c + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/352ce435-42d7-4ccc-b4d6-b1f516502908/analyzeresults/d89875a5-3d3c-4b41-b08b-d0c9249d3bf0 response: body: - string: '{"status": "notStarted", "createdDateTime": "2020-06-11T15:41:26Z", - "lastUpdatedDateTime": "2020-06-11T15:41:33Z"}' - headers: - apim-request-id: 42fa69af-6f4a-48b4-b4bb-a4e14db421c8 - content-length: '109' - content-type: application/json; charset=utf-8 - date: Thu, 11 Jun 2020 15:41:36 GMT - strict-transport-security: max-age=31536000; includeSubDomains; preload - x-content-type-options: nosniff - x-envoy-upstream-service-time: '55' - status: - code: 200 - message: OK - url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/498e4037-7fce-4d22-93ca-c623121f7def/analyzeresults/2d6792f0-5ae8-4947-b17d-62a39e809a7c -- request: - body: null - headers: - User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) - method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/498e4037-7fce-4d22-93ca-c623121f7def/analyzeresults/2d6792f0-5ae8-4947-b17d-62a39e809a7c - response: - body: - string: '{"status": "notStarted", "createdDateTime": "2020-06-11T15:41:26Z", - "lastUpdatedDateTime": "2020-06-11T15:41:33Z"}' - headers: - apim-request-id: 326eda40-475c-41bc-b3e4-c76a960b4ef1 - content-length: '109' - content-type: application/json; charset=utf-8 - date: Thu, 11 Jun 2020 15:41:41 GMT - strict-transport-security: max-age=31536000; includeSubDomains; preload - x-content-type-options: nosniff - x-envoy-upstream-service-time: '58' - status: - code: 200 - message: OK - url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/498e4037-7fce-4d22-93ca-c623121f7def/analyzeresults/2d6792f0-5ae8-4947-b17d-62a39e809a7c -- request: - body: null - headers: - User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) - method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/498e4037-7fce-4d22-93ca-c623121f7def/analyzeresults/2d6792f0-5ae8-4947-b17d-62a39e809a7c - response: - body: - string: '{"status": "succeeded", "createdDateTime": "2020-06-11T15:41:26Z", - "lastUpdatedDateTime": "2020-06-11T15:41:43Z", "analyzeResult": {"version": + string: '{"status": "succeeded", "createdDateTime": "2020-07-10T18:47:11Z", + "lastUpdatedDateTime": "2020-07-10T18:47:19Z", "analyzeResult": {"version": "2.0.0", "readResults": [{"page": 1, "language": "en", "angle": 0, "width": 8.5, "height": 11, "unit": "inch"}, {"page": 2, "language": "en", "angle": 0, "width": 8.4967, "height": 10.9967, "unit": "inch"}, {"page": 3, "language": @@ -2176,63 +2147,63 @@ interactions: 4.4181, 5.3353, 4.6281, 3.1681, 4.6281]}, {"rowIndex": 7, "columnIndex": 2, "text": "220.00", "boundingBox": [5.3353, 4.4181, 7.4997, 4.4181, 7.4997, 4.6281, 5.3353, 4.6281]}]}]}], "documentResults": [{"docType": "custom:form", - "pageRange": [1, 3], "fields": {"Tip": {"type": "string", "valueString": "100.00", - "text": "100.00", "page": 1, "boundingBox": [5.8100000000000005, 5.345, 6.26, - 5.345, 6.26, 5.455, 5.8100000000000005, 5.455], "confidence": 1.0}, "FirstItem": - {"type": "string", "valueString": "A", "text": "A", "page": 1, "boundingBox": - [1.085, 3.21, 1.175, 3.21, 1.175, 3.3200000000000003, 1.085, 3.3200000000000003], - "confidence": 1.0}, "CustomerPhoneNumber": {"type": "string", "valueString": - "555-555-5555", "text": "555-555-5555", "page": 1, "boundingBox": [6.01, 2.12, - 6.9350000000000005, 2.12, 6.9350000000000005, 2.225, 6.01, 2.225], "confidence": - 1.0}, "Signature2": {"type": "string", "valueString": "Frodo Baggins", "text": - "Frodo Baggins", "page": 3, "boundingBox": [2.07, 6.655, 3.09, 6.655, 3.09, - 6.8, 2.07, 6.8], "confidence": 0.16}, "FirstQuantity": {"type": "string", - "valueString": "1", "text": "1", "page": 1, "boundingBox": [3.2600000000000002, - 3.21, 3.3200000000000003, 3.21, 3.3200000000000003, 3.3200000000000003, 3.2600000000000002, - 3.3200000000000003], "confidence": 1.0}, "FirstPrice": {"type": "string", - "valueString": "10.99", "text": "10.99", "page": 1, "boundingBox": [5.425, - 3.21, 5.78, 3.21, 5.78, 3.3200000000000003, 5.425, 3.3200000000000003], "confidence": - 1.0}, "Total": {"type": "string", "valueString": "430.00", "text": "430.00", - "page": 1, "boundingBox": [5.94, 5.565, 6.4, 5.565, 6.4, 5.675, 5.94, 5.675], + "pageRange": [1, 3], "fields": {"CustomerName": {"type": "string", "valueString": + "Bilbo Baggins", "text": "Bilbo Baggins", "page": 1, "boundingBox": [6.015000000000001, + 1.45, 6.8950000000000005, 1.45, 6.8950000000000005, 1.595, 6.015000000000001, + 1.595], "confidence": 1.0}, "Signature2": {"type": "string", "valueString": + "Frodo Baggins", "text": "Frodo Baggins", "page": 3, "boundingBox": [2.07, + 6.655, 3.09, 6.655, 3.09, 6.8, 2.07, 6.8], "confidence": 0.16}, "Total": {"type": + "string", "valueString": "430.00", "text": "430.00", "page": 1, "boundingBox": + [5.94, 5.565, 6.4, 5.565, 6.4, 5.675, 5.94, 5.675], "confidence": 1.0}, "MerchantPhoneNumber": + {"type": "string", "valueString": "555-555-5555", "text": "555-555-5555", + "page": 1, "boundingBox": [0.885, 2.29, 1.81, 2.29, 1.81, 2.395, 0.885, 2.395], "confidence": 1.0}, "Total2": {"type": "string", "valueString": "4300.00", "text": "4300.00", "page": 3, "boundingBox": [5.94, 5.565, 6.48, 5.565, 6.48, - 5.675, 5.94, 5.675], "confidence": 1.0}, "CustomerAddress": {"type": "string", - "valueString": "123 Hobbit Lane Redmond, WA", "text": "123 Hobbit Lane Redmond, - WA", "page": 1, "boundingBox": [6.015000000000001, 1.67, 7.1000000000000005, - 1.67, 7.1000000000000005, 2.0300000000000002, 6.015000000000001, 2.0300000000000002], - "confidence": 1.0}, "MerchantPhoneNumber": {"type": "string", "valueString": - "555-555-5555", "text": "555-555-5555", "page": 1, "boundingBox": [0.885, - 2.29, 1.81, 2.29, 1.81, 2.395, 0.885, 2.395], "confidence": 1.0}, "Merchant2": + 5.675, 5.94, 5.675], "confidence": 1.0}, "FirstItem": {"type": "string", "valueString": + "A", "text": "A", "page": 1, "boundingBox": [1.085, 3.21, 1.175, 3.21, 1.175, + 3.3200000000000003, 1.085, 3.3200000000000003], "confidence": 1.0}, "CustomerAddress": + {"type": "string", "valueString": "123 Hobbit Lane Redmond, WA", "text": "123 + Hobbit Lane Redmond, WA", "page": 1, "boundingBox": [6.015000000000001, 1.67, + 7.1000000000000005, 1.67, 7.1000000000000005, 2.0300000000000002, 6.015000000000001, + 2.0300000000000002], "confidence": 1.0}, "FirstPrice": {"type": "string", + "valueString": "10.99", "text": "10.99", "page": 1, "boundingBox": [5.425, + 3.21, 5.78, 3.21, 5.78, 3.3200000000000003, 5.425, 3.3200000000000003], "confidence": + 1.0}, "MerchantAddress": {"type": "string", "valueString": "567 Main St. Redmond, + WA", "text": "567 Main St. Redmond, WA", "page": 1, "boundingBox": [0.885, + 1.845, 1.855, 1.845, 1.855, 2.2, 0.885, 2.2], "confidence": 1.0}, "Merchant2": {"type": "string", "valueString": "Company", "text": "Company", "page": 1, "boundingBox": [0.885, 1.125, 1.62, 1.125, 1.62, 1.28, 0.885, 1.28], "confidence": - 1.0}, "Subtotal": {"type": "string", "valueString": "300.00", "text": "300.00", - "page": 1, "boundingBox": [6.18, 4.905, 6.63, 4.905, 6.63, 5.015, 6.18, 5.015], - "confidence": 1.0}, "Signature": {"type": "string", "valueString": "Bilbo - Baggins", "text": "Bilbo Baggins", "page": 1, "boundingBox": [2.05, 6.655, - 3.04, 6.655, 3.04, 6.8, 2.05, 6.8], "confidence": 1.0}, "MerchantAddress": - {"type": "string", "valueString": "567 Main St. Redmond, WA", "text": "567 - Main St. Redmond, WA", "page": 1, "boundingBox": [0.885, 1.845, 1.855, 1.845, - 1.855, 2.2, 0.885, 2.2], "confidence": 1.0}, "CustomerName": {"type": "string", - "valueString": "Bilbo Baggins", "text": "Bilbo Baggins", "page": 1, "boundingBox": - [6.015000000000001, 1.45, 6.8950000000000005, 1.45, 6.8950000000000005, 1.595, - 6.015000000000001, 1.595], "confidence": 1.0}, "Tax": {"type": "string", "valueString": - "30.00", "text": "30.00", "page": 1, "boundingBox": [5.835, 5.125, 6.2, 5.125, - 6.2, 5.235, 5.835, 5.235], "confidence": 1.0}, "Merchant": {"type": "string", - "valueString": "A", "text": "A", "page": 1, "boundingBox": [1.67, 1.125, 1.7750000000000001, - 1.125, 1.7750000000000001, 1.245, 1.67, 1.245], "confidence": 1.0}, "Customer2": - {"type": "string", "valueString": "Frodo Baggins", "text": "Frodo Baggins", - "page": 3, "boundingBox": [6.015000000000001, 1.45, 6.95, 1.45, 6.95, 1.595, - 6.015000000000001, 1.595], "confidence": 1.0}}}], "errors": []}}' + 1.0}, "Signature": {"type": "string", "valueString": "Bilbo Baggins", "text": + "Bilbo Baggins", "page": 1, "boundingBox": [2.05, 6.655, 3.04, 6.655, 3.04, + 6.8, 2.05, 6.8], "confidence": 1.0}, "Merchant": {"type": "string", "valueString": + "A", "text": "A", "page": 1, "boundingBox": [1.67, 1.125, 1.7750000000000001, + 1.125, 1.7750000000000001, 1.245, 1.67, 1.245], "confidence": 1.0}, "Subtotal": + {"type": "string", "valueString": "300.00", "text": "300.00", "page": 1, "boundingBox": + [6.18, 4.905, 6.63, 4.905, 6.63, 5.015, 6.18, 5.015], "confidence": 1.0}, + "FirstQuantity": {"type": "string", "valueString": "1", "text": "1", "page": + 1, "boundingBox": [3.2600000000000002, 3.21, 3.3200000000000003, 3.21, 3.3200000000000003, + 3.3200000000000003, 3.2600000000000002, 3.3200000000000003], "confidence": + 1.0}, "Tax": {"type": "string", "valueString": "30.00", "text": "30.00", "page": + 1, "boundingBox": [5.835, 5.125, 6.2, 5.125, 6.2, 5.235, 5.835, 5.235], "confidence": + 1.0}, "CustomerPhoneNumber": {"type": "string", "valueString": "555-555-5555", + "text": "555-555-5555", "page": 1, "boundingBox": [6.01, 2.12, 6.9350000000000005, + 2.12, 6.9350000000000005, 2.225, 6.01, 2.225], "confidence": 1.0}, "Tip": + {"type": "string", "valueString": "100.00", "text": "100.00", "page": 1, "boundingBox": + [5.8100000000000005, 5.345, 6.26, 5.345, 6.26, 5.455, 5.8100000000000005, + 5.455], "confidence": 1.0}, "Customer2": {"type": "string", "valueString": + "Frodo Baggins", "text": "Frodo Baggins", "page": 3, "boundingBox": [6.015000000000001, + 1.45, 6.95, 1.45, 6.95, 1.595, 6.015000000000001, 1.595], "confidence": 1.0}}}], + "errors": []}}' headers: - apim-request-id: 9861cc46-90e5-46c4-bcad-428eeef8773b + apim-request-id: d2297ffb-1b44-4c5a-b0ea-cfef00d22909 content-length: '9504' content-type: application/json; charset=utf-8 - date: Thu, 11 Jun 2020 15:41:46 GMT + date: Fri, 10 Jul 2020 18:47:21 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload x-content-type-options: nosniff - x-envoy-upstream-service-time: '243' + x-envoy-upstream-service-time: '18' status: code: 200 message: OK - url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/498e4037-7fce-4d22-93ca-c623121f7def/analyzeresults/2d6792f0-5ae8-4947-b17d-62a39e809a7c + url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/352ce435-42d7-4ccc-b4d6-b1f516502908/analyzeresults/d89875a5-3d3c-4b41-b08b-d0c9249d3bf0 version: 1 diff --git a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_custom_forms_async.test_custom_form_multipage_unlabeled.yaml b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_custom_forms_async.test_custom_form_multipage_unlabeled.yaml index 1ee07df48f82..bb134a1fbe7f 100644 --- a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_custom_forms_async.test_custom_form_multipage_unlabeled.yaml +++ b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_custom_forms_async.test_custom_form_multipage_unlabeled.yaml @@ -8,113 +8,84 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) method: POST - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models response: body: string: '' headers: - apim-request-id: e55e3e11-2880-4db8-9fa0-087a20e5fbb0 + apim-request-id: 12c63e4d-c932-4621-b80d-ff2c6b52a975 content-length: '0' - date: Thu, 11 Jun 2020 15:41:47 GMT - location: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/cba2bd99-8a3c-4c1f-ab4c-8400ebde9430 + date: Fri, 10 Jul 2020 18:47:26 GMT + location: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/1889bc8c-fbf9-4d1e-92af-67e2f1abb958 strict-transport-security: max-age=31536000; includeSubDomains; preload x-content-type-options: nosniff - x-envoy-upstream-service-time: '74' + x-envoy-upstream-service-time: '5068' status: code: 201 message: Created - url: https://centraluseuap.api.cognitive.microsoft.com//formrecognizer/v2.0-preview/custom/models + url: https://centraluseuap.api.cognitive.microsoft.com//formrecognizer/v2.0/custom/models - request: body: null headers: User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/cba2bd99-8a3c-4c1f-ab4c-8400ebde9430?includeKeys=true + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/1889bc8c-fbf9-4d1e-92af-67e2f1abb958?includeKeys=true response: body: - string: '{"modelInfo": {"modelId": "cba2bd99-8a3c-4c1f-ab4c-8400ebde9430", "status": - "creating", "createdDateTime": "2020-06-11T15:41:47Z", "lastUpdatedDateTime": - "2020-06-11T15:41:47Z"}}' + string: '{"modelInfo": {"modelId": "1889bc8c-fbf9-4d1e-92af-67e2f1abb958", "status": + "creating", "createdDateTime": "2020-07-10T18:47:21Z", "lastUpdatedDateTime": + "2020-07-10T18:47:21Z"}}' headers: - apim-request-id: 5f64d606-1a4e-4325-bd3e-8247c5b8c47b + apim-request-id: 371902fe-5962-43ea-9e1b-e2c472bbcb33 content-type: application/json; charset=utf-8 - date: Thu, 11 Jun 2020 15:41:52 GMT + date: Fri, 10 Jul 2020 18:47:31 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '52' + x-envoy-upstream-service-time: '18' status: code: 200 message: OK - url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/cba2bd99-8a3c-4c1f-ab4c-8400ebde9430?includeKeys=true + url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/1889bc8c-fbf9-4d1e-92af-67e2f1abb958?includeKeys=true - request: body: null headers: User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/cba2bd99-8a3c-4c1f-ab4c-8400ebde9430?includeKeys=true + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/1889bc8c-fbf9-4d1e-92af-67e2f1abb958?includeKeys=true response: body: - string: '{"modelInfo": {"modelId": "cba2bd99-8a3c-4c1f-ab4c-8400ebde9430", "status": - "creating", "createdDateTime": "2020-06-11T15:41:47Z", "lastUpdatedDateTime": - "2020-06-11T15:41:47Z"}}' + string: '{"modelInfo": {"modelId": "1889bc8c-fbf9-4d1e-92af-67e2f1abb958", "status": + "creating", "createdDateTime": "2020-07-10T18:47:21Z", "lastUpdatedDateTime": + "2020-07-10T18:47:21Z"}}' headers: - apim-request-id: c33a8dfa-3f22-4b88-9c31-b2c79e1c1def + apim-request-id: a360ed09-9bd4-4adb-9773-9ab03eec6ef3 content-type: application/json; charset=utf-8 - date: Thu, 11 Jun 2020 15:41:58 GMT + date: Fri, 10 Jul 2020 18:47:37 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '17' + x-envoy-upstream-service-time: '55' status: code: 200 message: OK - url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/cba2bd99-8a3c-4c1f-ab4c-8400ebde9430?includeKeys=true + url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/1889bc8c-fbf9-4d1e-92af-67e2f1abb958?includeKeys=true - request: body: null headers: User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/cba2bd99-8a3c-4c1f-ab4c-8400ebde9430?includeKeys=true + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/1889bc8c-fbf9-4d1e-92af-67e2f1abb958?includeKeys=true response: body: - string: '{"modelInfo": {"modelId": "cba2bd99-8a3c-4c1f-ab4c-8400ebde9430", "status": - "creating", "createdDateTime": "2020-06-11T15:41:47Z", "lastUpdatedDateTime": - "2020-06-11T15:41:47Z"}}' - headers: - apim-request-id: 57c29223-0abf-472d-a0e3-e02af50edb3c - content-type: application/json; charset=utf-8 - date: Thu, 11 Jun 2020 15:42:03 GMT - strict-transport-security: max-age=31536000; includeSubDomains; preload - transfer-encoding: chunked - x-content-type-options: nosniff - x-envoy-upstream-service-time: '51' - status: - code: 200 - message: OK - url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/cba2bd99-8a3c-4c1f-ab4c-8400ebde9430?includeKeys=true -- request: - body: null - headers: - User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) - method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/cba2bd99-8a3c-4c1f-ab4c-8400ebde9430?includeKeys=true - response: - body: - string: '{"modelInfo": {"modelId": "cba2bd99-8a3c-4c1f-ab4c-8400ebde9430", "status": - "ready", "createdDateTime": "2020-06-11T15:41:47Z", "lastUpdatedDateTime": - "2020-06-11T15:42:04Z"}, "keys": {"clusters": {"0": ["Address:", "Invoice + string: '{"modelInfo": {"modelId": "1889bc8c-fbf9-4d1e-92af-67e2f1abb958", "status": + "ready", "createdDateTime": "2020-07-10T18:47:21Z", "lastUpdatedDateTime": + "2020-07-10T18:47:41Z"}, "keys": {"clusters": {"0": ["Address:", "Invoice For:", "Item", "Price", "Quantity", "Redmond, WA", "Signature:", "Subtotal:", "Tax:", "Tip:", "Total:"]}}, "trainResult": {"trainingDocuments": [{"documentName": "multipage_invoice1.pdf", "pages": 3, "errors": [], "status": "succeeded"}, @@ -124,17 +95,17 @@ interactions: 3, "errors": [], "status": "succeeded"}, {"documentName": "multipage_invoice5.pdf", "pages": 3, "errors": [], "status": "succeeded"}], "errors": []}}' headers: - apim-request-id: 5126295c-d411-4e35-8709-67fe60456800 + apim-request-id: e4050f03-61b2-4bc7-9077-38b78fc8d82b content-type: application/json; charset=utf-8 - date: Thu, 11 Jun 2020 15:42:07 GMT + date: Fri, 10 Jul 2020 18:47:43 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '48' + x-envoy-upstream-service-time: '2208' status: code: 200 message: OK - url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/cba2bd99-8a3c-4c1f-ab4c-8400ebde9430?includeKeys=true + url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/1889bc8c-fbf9-4d1e-92af-67e2f1abb958?includeKeys=true - request: body: !!binary | JVBERi0xLjcNCiW1tbW1DQoxIDAgb2JqDQo8PC9UeXBlL0NhdGFsb2cvUGFnZXMgMiAwIFIvTGFu @@ -2053,61 +2024,58 @@ interactions: Content-Type: - application/pdf User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) method: POST - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/cba2bd99-8a3c-4c1f-ab4c-8400ebde9430/analyze?includeTextDetails=false + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/1889bc8c-fbf9-4d1e-92af-67e2f1abb958/analyze?includeTextDetails=false response: body: string: '' headers: - apim-request-id: 5e15cfd9-3bc8-46ef-923b-3f3778bbb2de + apim-request-id: 5c1dcb4f-88c4-4181-ae39-8d58660af3ae content-length: '0' - date: Thu, 11 Jun 2020 15:42:09 GMT - operation-location: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/cba2bd99-8a3c-4c1f-ab4c-8400ebde9430/analyzeresults/35e7ed90-3395-4b4d-8710-a009f1e90560 + date: Fri, 10 Jul 2020 18:47:46 GMT + operation-location: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/1889bc8c-fbf9-4d1e-92af-67e2f1abb958/analyzeresults/a959f008-095e-4534-9c5e-8f5e45d109c6 strict-transport-security: max-age=31536000; includeSubDomains; preload x-content-type-options: nosniff - x-envoy-upstream-service-time: '116' + x-envoy-upstream-service-time: '1558' status: code: 202 message: Accepted - url: https://centraluseuap.api.cognitive.microsoft.com//formrecognizer/v2.0-preview/custom/models/cba2bd99-8a3c-4c1f-ab4c-8400ebde9430/analyze?includeTextDetails=false + url: https://centraluseuap.api.cognitive.microsoft.com//formrecognizer/v2.0/custom/models/1889bc8c-fbf9-4d1e-92af-67e2f1abb958/analyze?includeTextDetails=false - request: body: null headers: User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/cba2bd99-8a3c-4c1f-ab4c-8400ebde9430/analyzeresults/35e7ed90-3395-4b4d-8710-a009f1e90560 + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/1889bc8c-fbf9-4d1e-92af-67e2f1abb958/analyzeresults/a959f008-095e-4534-9c5e-8f5e45d109c6 response: body: - string: '{"status": "running", "createdDateTime": "2020-06-11T15:42:09Z", "lastUpdatedDateTime": - "2020-06-11T15:42:10Z", "analyzeResult": null}' + string: '{"status": "running", "createdDateTime": "2020-07-10T18:47:46Z", "lastUpdatedDateTime": + "2020-07-10T18:47:48Z", "analyzeResult": null}' headers: - apim-request-id: 89a0c828-d2d1-4eba-b491-e8e1a0f72e2c + apim-request-id: 8efbdbd6-8a9d-4b24-92de-983020892362 content-length: '134' content-type: application/json; charset=utf-8 - date: Thu, 11 Jun 2020 15:42:14 GMT + date: Fri, 10 Jul 2020 18:47:51 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload x-content-type-options: nosniff - x-envoy-upstream-service-time: '16' + x-envoy-upstream-service-time: '52' status: code: 200 message: OK - url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/cba2bd99-8a3c-4c1f-ab4c-8400ebde9430/analyzeresults/35e7ed90-3395-4b4d-8710-a009f1e90560 + url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/1889bc8c-fbf9-4d1e-92af-67e2f1abb958/analyzeresults/a959f008-095e-4534-9c5e-8f5e45d109c6 - request: body: null headers: User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/cba2bd99-8a3c-4c1f-ab4c-8400ebde9430/analyzeresults/35e7ed90-3395-4b4d-8710-a009f1e90560 + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/1889bc8c-fbf9-4d1e-92af-67e2f1abb958/analyzeresults/a959f008-095e-4534-9c5e-8f5e45d109c6 response: body: - string: '{"status": "succeeded", "createdDateTime": "2020-06-11T15:42:09Z", - "lastUpdatedDateTime": "2020-06-11T15:42:16Z", "analyzeResult": {"version": + string: '{"status": "succeeded", "createdDateTime": "2020-07-10T18:47:46Z", + "lastUpdatedDateTime": "2020-07-10T18:47:53Z", "analyzeResult": {"version": "2.0.0", "readResults": [{"page": 1, "angle": 0, "width": 8.5, "height": 11.0, "unit": "inch", "lines": []}, {"page": 2, "angle": 0, "width": 8.5, "height": 11.0, "unit": "inch", "lines": []}, {"page": 3, "angle": 0, "width": 8.5, @@ -2331,15 +2299,15 @@ interactions: 1.0, "rowSpan": 1, "columnSpan": 1, "elements": null, "isHeader": false, "isFooter": false}]}], "clusterId": 0}], "documentResults": [], "errors": []}}' headers: - apim-request-id: c74ee879-1641-4bb9-9ba5-ddb37703bdb0 + apim-request-id: 828f4bf2-a72a-49a8-825a-0014a7a32126 content-length: '17652' content-type: application/json; charset=utf-8 - date: Thu, 11 Jun 2020 15:42:19 GMT + date: Fri, 10 Jul 2020 18:47:55 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload x-content-type-options: nosniff - x-envoy-upstream-service-time: '54' + x-envoy-upstream-service-time: '20' status: code: 200 message: OK - url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/cba2bd99-8a3c-4c1f-ab4c-8400ebde9430/analyzeresults/35e7ed90-3395-4b4d-8710-a009f1e90560 + url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/1889bc8c-fbf9-4d1e-92af-67e2f1abb958/analyzeresults/a959f008-095e-4534-9c5e-8f5e45d109c6 version: 1 diff --git a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_custom_forms_async.test_custom_form_multipage_vendor_set_labeled_transform.yaml b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_custom_forms_async.test_custom_form_multipage_vendor_set_labeled_transform.yaml index b34555f85a01..7a611b70441a 100644 --- a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_custom_forms_async.test_custom_form_multipage_vendor_set_labeled_transform.yaml +++ b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_custom_forms_async.test_custom_form_multipage_vendor_set_labeled_transform.yaml @@ -8,38 +8,300 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) method: POST - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models response: body: string: '' headers: - apim-request-id: 5a7f0902-b761-438e-8823-0cb534a32f6d + apim-request-id: 601cc006-64c3-4a2c-bfb8-46d7b9601590 content-length: '0' - date: Thu, 11 Jun 2020 15:42:20 GMT - location: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/de31e071-7a2a-4121-b746-8a985be7c1a7 + date: Fri, 10 Jul 2020 18:47:56 GMT + location: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/e017ea25-7d33-4da1-9ee6-847ce315bc2f strict-transport-security: max-age=31536000; includeSubDomains; preload x-content-type-options: nosniff - x-envoy-upstream-service-time: '64' + x-envoy-upstream-service-time: '37' status: code: 201 message: Created - url: https://centraluseuap.api.cognitive.microsoft.com//formrecognizer/v2.0-preview/custom/models + url: https://centraluseuap.api.cognitive.microsoft.com//formrecognizer/v2.0/custom/models - request: body: null headers: User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/de31e071-7a2a-4121-b746-8a985be7c1a7?includeKeys=true + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/e017ea25-7d33-4da1-9ee6-847ce315bc2f?includeKeys=true response: body: - string: '{"modelInfo": {"modelId": "de31e071-7a2a-4121-b746-8a985be7c1a7", "status": - "ready", "createdDateTime": "2020-06-11T15:42:20Z", "lastUpdatedDateTime": - "2020-06-11T15:42:21Z"}, "trainResult": {"averageModelAccuracy": 0.971, "trainingDocuments": + string: '{"modelInfo": {"modelId": "e017ea25-7d33-4da1-9ee6-847ce315bc2f", "status": + "creating", "createdDateTime": "2020-07-10T18:47:57Z", "lastUpdatedDateTime": + "2020-07-10T18:47:57Z"}}' + headers: + apim-request-id: 5aa18d0c-aee0-4c2f-a9ee-125e55bc58cd + content-type: application/json; charset=utf-8 + date: Fri, 10 Jul 2020 18:48:02 GMT + strict-transport-security: max-age=31536000; includeSubDomains; preload + transfer-encoding: chunked + x-content-type-options: nosniff + x-envoy-upstream-service-time: '18' + status: + code: 200 + message: OK + url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/e017ea25-7d33-4da1-9ee6-847ce315bc2f?includeKeys=true +- request: + body: null + headers: + User-Agent: + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + method: GET + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/e017ea25-7d33-4da1-9ee6-847ce315bc2f?includeKeys=true + response: + body: + string: '{"modelInfo": {"modelId": "e017ea25-7d33-4da1-9ee6-847ce315bc2f", "status": + "creating", "createdDateTime": "2020-07-10T18:47:57Z", "lastUpdatedDateTime": + "2020-07-10T18:47:57Z"}}' + headers: + apim-request-id: 7fae0f89-9fc9-4fe5-8696-4b212868fb5e + content-type: application/json; charset=utf-8 + date: Fri, 10 Jul 2020 18:48:07 GMT + strict-transport-security: max-age=31536000; includeSubDomains; preload + transfer-encoding: chunked + x-content-type-options: nosniff + x-envoy-upstream-service-time: '16' + status: + code: 200 + message: OK + url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/e017ea25-7d33-4da1-9ee6-847ce315bc2f?includeKeys=true +- request: + body: null + headers: + User-Agent: + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + method: GET + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/e017ea25-7d33-4da1-9ee6-847ce315bc2f?includeKeys=true + response: + body: + string: '{"modelInfo": {"modelId": "e017ea25-7d33-4da1-9ee6-847ce315bc2f", "status": + "creating", "createdDateTime": "2020-07-10T18:47:57Z", "lastUpdatedDateTime": + "2020-07-10T18:47:57Z"}}' + headers: + apim-request-id: 4c98cf71-aac7-4bd0-82b7-a74752482651 + content-type: application/json; charset=utf-8 + date: Fri, 10 Jul 2020 18:48:11 GMT + strict-transport-security: max-age=31536000; includeSubDomains; preload + transfer-encoding: chunked + x-content-type-options: nosniff + x-envoy-upstream-service-time: '19' + status: + code: 200 + message: OK + url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/e017ea25-7d33-4da1-9ee6-847ce315bc2f?includeKeys=true +- request: + body: null + headers: + User-Agent: + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + method: GET + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/e017ea25-7d33-4da1-9ee6-847ce315bc2f?includeKeys=true + response: + body: + string: '{"modelInfo": {"modelId": "e017ea25-7d33-4da1-9ee6-847ce315bc2f", "status": + "creating", "createdDateTime": "2020-07-10T18:47:57Z", "lastUpdatedDateTime": + "2020-07-10T18:47:57Z"}}' + headers: + apim-request-id: 79443883-d6cf-4d21-a56e-83d61bb6f5b4 + content-type: application/json; charset=utf-8 + date: Fri, 10 Jul 2020 18:48:17 GMT + strict-transport-security: max-age=31536000; includeSubDomains; preload + transfer-encoding: chunked + x-content-type-options: nosniff + x-envoy-upstream-service-time: '19' + status: + code: 200 + message: OK + url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/e017ea25-7d33-4da1-9ee6-847ce315bc2f?includeKeys=true +- request: + body: null + headers: + User-Agent: + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + method: GET + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/e017ea25-7d33-4da1-9ee6-847ce315bc2f?includeKeys=true + response: + body: + string: '{"modelInfo": {"modelId": "e017ea25-7d33-4da1-9ee6-847ce315bc2f", "status": + "creating", "createdDateTime": "2020-07-10T18:47:57Z", "lastUpdatedDateTime": + "2020-07-10T18:47:57Z"}}' + headers: + apim-request-id: 0a0526f0-6b9c-4977-aaee-72006b700002 + content-type: application/json; charset=utf-8 + date: Fri, 10 Jul 2020 18:48:22 GMT + strict-transport-security: max-age=31536000; includeSubDomains; preload + transfer-encoding: chunked + x-content-type-options: nosniff + x-envoy-upstream-service-time: '19' + status: + code: 200 + message: OK + url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/e017ea25-7d33-4da1-9ee6-847ce315bc2f?includeKeys=true +- request: + body: null + headers: + User-Agent: + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + method: GET + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/e017ea25-7d33-4da1-9ee6-847ce315bc2f?includeKeys=true + response: + body: + string: '{"modelInfo": {"modelId": "e017ea25-7d33-4da1-9ee6-847ce315bc2f", "status": + "creating", "createdDateTime": "2020-07-10T18:47:57Z", "lastUpdatedDateTime": + "2020-07-10T18:47:57Z"}}' + headers: + apim-request-id: 04a2e453-c5bf-4b50-90b5-9517e7b6fd9e + content-type: application/json; charset=utf-8 + date: Fri, 10 Jul 2020 18:48:27 GMT + strict-transport-security: max-age=31536000; includeSubDomains; preload + transfer-encoding: chunked + x-content-type-options: nosniff + x-envoy-upstream-service-time: '19' + status: + code: 200 + message: OK + url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/e017ea25-7d33-4da1-9ee6-847ce315bc2f?includeKeys=true +- request: + body: null + headers: + User-Agent: + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + method: GET + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/e017ea25-7d33-4da1-9ee6-847ce315bc2f?includeKeys=true + response: + body: + string: '{"modelInfo": {"modelId": "e017ea25-7d33-4da1-9ee6-847ce315bc2f", "status": + "creating", "createdDateTime": "2020-07-10T18:47:57Z", "lastUpdatedDateTime": + "2020-07-10T18:47:57Z"}}' + headers: + apim-request-id: 54064477-936a-4f83-a4a9-2126a4df85d0 + content-type: application/json; charset=utf-8 + date: Fri, 10 Jul 2020 18:48:32 GMT + strict-transport-security: max-age=31536000; includeSubDomains; preload + transfer-encoding: chunked + x-content-type-options: nosniff + x-envoy-upstream-service-time: '20' + status: + code: 200 + message: OK + url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/e017ea25-7d33-4da1-9ee6-847ce315bc2f?includeKeys=true +- request: + body: null + headers: + User-Agent: + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + method: GET + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/e017ea25-7d33-4da1-9ee6-847ce315bc2f?includeKeys=true + response: + body: + string: '{"modelInfo": {"modelId": "e017ea25-7d33-4da1-9ee6-847ce315bc2f", "status": + "creating", "createdDateTime": "2020-07-10T18:47:57Z", "lastUpdatedDateTime": + "2020-07-10T18:47:57Z"}}' + headers: + apim-request-id: 39e2715e-4a16-4fc3-9dcb-e59a9cd88f2d + content-type: application/json; charset=utf-8 + date: Fri, 10 Jul 2020 18:48:37 GMT + strict-transport-security: max-age=31536000; includeSubDomains; preload + transfer-encoding: chunked + x-content-type-options: nosniff + x-envoy-upstream-service-time: '20' + status: + code: 200 + message: OK + url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/e017ea25-7d33-4da1-9ee6-847ce315bc2f?includeKeys=true +- request: + body: null + headers: + User-Agent: + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + method: GET + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/e017ea25-7d33-4da1-9ee6-847ce315bc2f?includeKeys=true + response: + body: + string: '{"modelInfo": {"modelId": "e017ea25-7d33-4da1-9ee6-847ce315bc2f", "status": + "creating", "createdDateTime": "2020-07-10T18:47:57Z", "lastUpdatedDateTime": + "2020-07-10T18:47:57Z"}}' + headers: + apim-request-id: f7df3ba7-bd5b-47a7-9d64-84b2ccd7d6a7 + content-type: application/json; charset=utf-8 + date: Fri, 10 Jul 2020 18:48:42 GMT + strict-transport-security: max-age=31536000; includeSubDomains; preload + transfer-encoding: chunked + x-content-type-options: nosniff + x-envoy-upstream-service-time: '47' + status: + code: 200 + message: OK + url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/e017ea25-7d33-4da1-9ee6-847ce315bc2f?includeKeys=true +- request: + body: null + headers: + User-Agent: + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + method: GET + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/e017ea25-7d33-4da1-9ee6-847ce315bc2f?includeKeys=true + response: + body: + string: '{"modelInfo": {"modelId": "e017ea25-7d33-4da1-9ee6-847ce315bc2f", "status": + "creating", "createdDateTime": "2020-07-10T18:47:57Z", "lastUpdatedDateTime": + "2020-07-10T18:47:57Z"}}' + headers: + apim-request-id: b5f71559-9a72-423f-9c68-3db8f336ae35 + content-type: application/json; charset=utf-8 + date: Fri, 10 Jul 2020 18:48:53 GMT + strict-transport-security: max-age=31536000; includeSubDomains; preload + transfer-encoding: chunked + x-content-type-options: nosniff + x-envoy-upstream-service-time: '5195' + status: + code: 200 + message: OK + url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/e017ea25-7d33-4da1-9ee6-847ce315bc2f?includeKeys=true +- request: + body: null + headers: + User-Agent: + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + method: GET + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/e017ea25-7d33-4da1-9ee6-847ce315bc2f?includeKeys=true + response: + body: + string: '{"modelInfo": {"modelId": "e017ea25-7d33-4da1-9ee6-847ce315bc2f", "status": + "creating", "createdDateTime": "2020-07-10T18:47:57Z", "lastUpdatedDateTime": + "2020-07-10T18:47:57Z"}}' + headers: + apim-request-id: 9a5bf0a7-de13-43fd-a0b7-9e1c1a7d0035 + content-type: application/json; charset=utf-8 + date: Fri, 10 Jul 2020 18:48:58 GMT + strict-transport-security: max-age=31536000; includeSubDomains; preload + transfer-encoding: chunked + x-content-type-options: nosniff + x-envoy-upstream-service-time: '151' + status: + code: 200 + message: OK + url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/e017ea25-7d33-4da1-9ee6-847ce315bc2f?includeKeys=true +- request: + body: null + headers: + User-Agent: + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + method: GET + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/e017ea25-7d33-4da1-9ee6-847ce315bc2f?includeKeys=true + response: + body: + string: '{"modelInfo": {"modelId": "e017ea25-7d33-4da1-9ee6-847ce315bc2f", "status": + "ready", "createdDateTime": "2020-07-10T18:47:57Z", "lastUpdatedDateTime": + "2020-07-10T18:48:58Z"}, "trainResult": {"averageModelAccuracy": 0.971, "trainingDocuments": [{"documentName": "multi1.pdf", "pages": 2, "status": "succeeded"}, {"documentName": "multi2.pdf", "pages": 2, "status": "succeeded"}, {"documentName": "multi3.pdf", "pages": 2, "status": "succeeded"}, {"documentName": "multi4.pdf", "pages": @@ -50,17 +312,17 @@ interactions: 1.0}, {"fieldName": "Half", "accuracy": 1.0}, {"fieldName": "Silver", "accuracy": 1.0}], "errors": []}}' headers: - apim-request-id: cff04574-8830-4c66-a5a4-ae47557cc2b9 + apim-request-id: 4c1dceea-b718-487c-a67b-a63a60d336b6 content-type: application/json; charset=utf-8 - date: Thu, 11 Jun 2020 15:42:24 GMT + date: Fri, 10 Jul 2020 18:49:03 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '18' + x-envoy-upstream-service-time: '51' status: code: 200 message: OK - url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/de31e071-7a2a-4121-b746-8a985be7c1a7?includeKeys=true + url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/e017ea25-7d33-4da1-9ee6-847ce315bc2f?includeKeys=true - request: body: !!binary | JVBERi0xLjcKCjQgMCBvYmoKKElkZW50aXR5KQplbmRvYmoKNSAwIG9iagooQWRvYmUpCmVuZG9i @@ -12552,61 +12814,58 @@ interactions: Content-Type: - application/pdf User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) method: POST - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/de31e071-7a2a-4121-b746-8a985be7c1a7/analyze?includeTextDetails=true + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/e017ea25-7d33-4da1-9ee6-847ce315bc2f/analyze?includeTextDetails=true response: body: string: '' headers: - apim-request-id: 45934589-513f-403a-8189-7947ce971aab + apim-request-id: b047b3a5-b111-469b-8ac4-1bd2a46158db content-length: '0' - date: Thu, 11 Jun 2020 15:42:27 GMT - operation-location: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/de31e071-7a2a-4121-b746-8a985be7c1a7/analyzeresults/5aff60b1-1de2-4ea3-ada7-c07f912f4472 + date: Fri, 10 Jul 2020 18:49:05 GMT + operation-location: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/e017ea25-7d33-4da1-9ee6-847ce315bc2f/analyzeresults/5566e00e-0a09-449d-a735-7f8597edf23f strict-transport-security: max-age=31536000; includeSubDomains; preload x-content-type-options: nosniff - x-envoy-upstream-service-time: '949' + x-envoy-upstream-service-time: '246' status: code: 202 message: Accepted - url: https://centraluseuap.api.cognitive.microsoft.com//formrecognizer/v2.0-preview/custom/models/de31e071-7a2a-4121-b746-8a985be7c1a7/analyze?includeTextDetails=true + url: https://centraluseuap.api.cognitive.microsoft.com//formrecognizer/v2.0/custom/models/e017ea25-7d33-4da1-9ee6-847ce315bc2f/analyze?includeTextDetails=true - request: body: null headers: User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/de31e071-7a2a-4121-b746-8a985be7c1a7/analyzeresults/5aff60b1-1de2-4ea3-ada7-c07f912f4472 + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/e017ea25-7d33-4da1-9ee6-847ce315bc2f/analyzeresults/5566e00e-0a09-449d-a735-7f8597edf23f response: body: - string: '{"status": "notStarted", "createdDateTime": "2020-06-11T15:42:28Z", - "lastUpdatedDateTime": "2020-06-11T15:42:31Z"}' + string: '{"status": "notStarted", "createdDateTime": "2020-07-10T18:49:05Z", + "lastUpdatedDateTime": "2020-07-10T18:49:09Z"}' headers: - apim-request-id: ad7a1520-dce8-40b5-ad42-8235c5febd1a + apim-request-id: d19c4d1a-77c6-44df-98da-2dc26d8c70d3 content-length: '109' content-type: application/json; charset=utf-8 - date: Thu, 11 Jun 2020 15:42:33 GMT + date: Fri, 10 Jul 2020 18:49:10 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload x-content-type-options: nosniff - x-envoy-upstream-service-time: '719' + x-envoy-upstream-service-time: '50' status: code: 200 message: OK - url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/de31e071-7a2a-4121-b746-8a985be7c1a7/analyzeresults/5aff60b1-1de2-4ea3-ada7-c07f912f4472 + url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/e017ea25-7d33-4da1-9ee6-847ce315bc2f/analyzeresults/5566e00e-0a09-449d-a735-7f8597edf23f - request: body: null headers: User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/de31e071-7a2a-4121-b746-8a985be7c1a7/analyzeresults/5aff60b1-1de2-4ea3-ada7-c07f912f4472 + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/e017ea25-7d33-4da1-9ee6-847ce315bc2f/analyzeresults/5566e00e-0a09-449d-a735-7f8597edf23f response: body: - string: '{"status": "succeeded", "createdDateTime": "2020-06-11T15:42:28Z", - "lastUpdatedDateTime": "2020-06-11T15:42:38Z", "analyzeResult": {"version": + string: '{"status": "succeeded", "createdDateTime": "2020-07-10T18:49:05Z", + "lastUpdatedDateTime": "2020-07-10T18:49:14Z", "analyzeResult": {"version": "2.0.0", "readResults": [{"page": 1, "language": "en", "angle": 0, "width": 8.5, "height": 11, "unit": "inch", "lines": [{"boundingBox": [6.1276, 1.0667, 7.4833, 1.0667, 7.4833, 1.2403, 6.1276, 1.2403], "text": "Vendor #:121", "words": @@ -13066,32 +13325,32 @@ interactions: "Silver": {"type": "string", "valueString": "$1,200", "text": "$1,200", "page": 1, "boundingBox": [5.835, 5.97, 6.285, 5.97, 6.285, 6.115, 5.835, 6.115], "confidence": 1.0, "elements": ["#/analyzeResult/readResults/0/lines/27/words/0"]}, - "Half": {"type": "string", "valueString": "$350", "text": "$350", "page": - 1, "boundingBox": [5.835, 8.305, 6.16, 8.305, 6.16, 8.45, 5.835, 8.45], "confidence": - 1.0, "elements": ["#/analyzeResult/readResults/0/lines/53/words/0"]}, "Contact": - {"type": "string", "valueString": "Jamie@southridgevideo.com", "text": "Jamie@southridgevideo.com", - "page": 2, "boundingBox": [1.62, 3.1, 3.575, 3.1, 3.575, 3.245, 1.62, 3.245], - "confidence": 1.0, "elements": ["#/analyzeResult/readResults/1/lines/3/words/1"]}, "Bronze": {"type": "string", "valueString": "$1,000", "text": "$1,000", "page": 1, "boundingBox": [5.835, 6.825, 6.285, 6.825, 6.285, 6.97, 5.835, 6.97], "confidence": 1.0, "elements": ["#/analyzeResult/readResults/0/lines/37/words/0"]}, - "CompanyName": {"type": "string", "valueString": "Southridge Video", "text": - "Southridge Video", "page": 2, "boundingBox": [2.19, 2.77, 3.35, 2.77, 3.35, - 2.915, 2.19, 2.915], "confidence": 1.0, "elements": ["#/analyzeResult/readResults/1/lines/2/words/2", - "#/analyzeResult/readResults/1/lines/2/words/3"]}, "Gold": {"type": "string", - "valueString": "$1,500", "text": "$1,500", "page": 1, "boundingBox": [5.835, - 4.9, 6.285, 4.9, 6.285, 5.045, 5.835, 5.045], "confidence": 1.0, "elements": - ["#/analyzeResult/readResults/0/lines/16/words/0"]}}}], "errors": []}}' + "Contact": {"type": "string", "valueString": "Jamie@southridgevideo.com", + "text": "Jamie@southridgevideo.com", "page": 2, "boundingBox": [1.62, 3.1, + 3.575, 3.1, 3.575, 3.245, 1.62, 3.245], "confidence": 1.0, "elements": ["#/analyzeResult/readResults/1/lines/3/words/1"]}, + "Gold": {"type": "string", "valueString": "$1,500", "text": "$1,500", "page": + 1, "boundingBox": [5.835, 4.9, 6.285, 4.9, 6.285, 5.045, 5.835, 5.045], "confidence": + 1.0, "elements": ["#/analyzeResult/readResults/0/lines/16/words/0"]}, "Half": + {"type": "string", "valueString": "$350", "text": "$350", "page": 1, "boundingBox": + [5.835, 8.305, 6.16, 8.305, 6.16, 8.45, 5.835, 8.45], "confidence": 1.0, "elements": + ["#/analyzeResult/readResults/0/lines/53/words/0"]}, "CompanyName": {"type": + "string", "valueString": "Southridge Video", "text": "Southridge Video", "page": + 2, "boundingBox": [2.19, 2.77, 3.35, 2.77, 3.35, 2.915, 2.19, 2.915], "confidence": + 1.0, "elements": ["#/analyzeResult/readResults/1/lines/2/words/2", "#/analyzeResult/readResults/1/lines/2/words/3"]}}}], + "errors": []}}' headers: - apim-request-id: ef4917b4-b011-4364-a0d0-94e470f892b9 + apim-request-id: d240057d-ca8d-4b96-8ebf-df5c7c98e70a content-length: '34159' content-type: application/json; charset=utf-8 - date: Thu, 11 Jun 2020 15:42:38 GMT + date: Fri, 10 Jul 2020 18:49:16 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload x-content-type-options: nosniff - x-envoy-upstream-service-time: '27' + x-envoy-upstream-service-time: '920' status: code: 200 message: OK - url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/de31e071-7a2a-4121-b746-8a985be7c1a7/analyzeresults/5aff60b1-1de2-4ea3-ada7-c07f912f4472 + url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/e017ea25-7d33-4da1-9ee6-847ce315bc2f/analyzeresults/5566e00e-0a09-449d-a735-7f8597edf23f version: 1 diff --git a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_custom_forms_async.test_custom_form_multipage_vendor_set_unlabeled_transform.yaml b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_custom_forms_async.test_custom_form_multipage_vendor_set_unlabeled_transform.yaml index 068299f5e37e..affc73c7c72d 100644 --- a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_custom_forms_async.test_custom_form_multipage_vendor_set_unlabeled_transform.yaml +++ b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_custom_forms_async.test_custom_form_multipage_vendor_set_unlabeled_transform.yaml @@ -8,188 +8,84 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) method: POST - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models response: body: string: '' headers: - apim-request-id: 007f3e46-66d3-4519-89b5-73e4231f4c76 + apim-request-id: 2b063f1c-1a9b-4f96-aeb7-f7fefa97fccc content-length: '0' - date: Thu, 11 Jun 2020 15:42:38 GMT - location: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/edf1ca9f-bd1d-488f-a939-cfaf052d80e5 + date: Fri, 10 Jul 2020 18:49:17 GMT + location: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/75e0875a-d75b-421e-b113-a5c2b536ca94 strict-transport-security: max-age=31536000; includeSubDomains; preload x-content-type-options: nosniff x-envoy-upstream-service-time: '72' status: code: 201 message: Created - url: https://centraluseuap.api.cognitive.microsoft.com//formrecognizer/v2.0-preview/custom/models + url: https://centraluseuap.api.cognitive.microsoft.com//formrecognizer/v2.0/custom/models - request: body: null headers: User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/edf1ca9f-bd1d-488f-a939-cfaf052d80e5?includeKeys=true + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/75e0875a-d75b-421e-b113-a5c2b536ca94?includeKeys=true response: body: - string: '{"modelInfo": {"modelId": "edf1ca9f-bd1d-488f-a939-cfaf052d80e5", "status": - "creating", "createdDateTime": "2020-06-11T15:42:39Z", "lastUpdatedDateTime": - "2020-06-11T15:42:39Z"}}' + string: '{"modelInfo": {"modelId": "75e0875a-d75b-421e-b113-a5c2b536ca94", "status": + "creating", "createdDateTime": "2020-07-10T18:49:17Z", "lastUpdatedDateTime": + "2020-07-10T18:49:17Z"}}' headers: - apim-request-id: 69554209-2507-473f-9026-f912d5bf17a3 + apim-request-id: 2fb3282b-0206-4321-988d-3604257e5dda content-type: application/json; charset=utf-8 - date: Thu, 11 Jun 2020 15:42:44 GMT + date: Fri, 10 Jul 2020 18:49:22 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '46' + x-envoy-upstream-service-time: '48' status: code: 200 message: OK - url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/edf1ca9f-bd1d-488f-a939-cfaf052d80e5?includeKeys=true + url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/75e0875a-d75b-421e-b113-a5c2b536ca94?includeKeys=true - request: body: null headers: User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/edf1ca9f-bd1d-488f-a939-cfaf052d80e5?includeKeys=true + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/75e0875a-d75b-421e-b113-a5c2b536ca94?includeKeys=true response: body: - string: '{"modelInfo": {"modelId": "edf1ca9f-bd1d-488f-a939-cfaf052d80e5", "status": - "creating", "createdDateTime": "2020-06-11T15:42:39Z", "lastUpdatedDateTime": - "2020-06-11T15:42:39Z"}}' + string: '{"modelInfo": {"modelId": "75e0875a-d75b-421e-b113-a5c2b536ca94", "status": + "creating", "createdDateTime": "2020-07-10T18:49:17Z", "lastUpdatedDateTime": + "2020-07-10T18:49:17Z"}}' headers: - apim-request-id: 66c21c2f-8055-4cd7-a7ca-7da5dd6f5830 + apim-request-id: 7757fc72-a81c-4d5d-a78f-abdaa6cb3a0e content-type: application/json; charset=utf-8 - date: Thu, 11 Jun 2020 15:42:49 GMT + date: Fri, 10 Jul 2020 18:49:27 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '49' + x-envoy-upstream-service-time: '57' status: code: 200 message: OK - url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/edf1ca9f-bd1d-488f-a939-cfaf052d80e5?includeKeys=true + url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/75e0875a-d75b-421e-b113-a5c2b536ca94?includeKeys=true - request: body: null headers: User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/edf1ca9f-bd1d-488f-a939-cfaf052d80e5?includeKeys=true + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/75e0875a-d75b-421e-b113-a5c2b536ca94?includeKeys=true response: body: - string: '{"modelInfo": {"modelId": "edf1ca9f-bd1d-488f-a939-cfaf052d80e5", "status": - "creating", "createdDateTime": "2020-06-11T15:42:39Z", "lastUpdatedDateTime": - "2020-06-11T15:42:39Z"}}' - headers: - apim-request-id: 0eb7c92d-f2f1-4702-b879-ec92db54ea3f - content-type: application/json; charset=utf-8 - date: Thu, 11 Jun 2020 15:42:54 GMT - strict-transport-security: max-age=31536000; includeSubDomains; preload - transfer-encoding: chunked - x-content-type-options: nosniff - x-envoy-upstream-service-time: '20' - status: - code: 200 - message: OK - url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/edf1ca9f-bd1d-488f-a939-cfaf052d80e5?includeKeys=true -- request: - body: null - headers: - User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) - method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/edf1ca9f-bd1d-488f-a939-cfaf052d80e5?includeKeys=true - response: - body: - string: '{"modelInfo": {"modelId": "edf1ca9f-bd1d-488f-a939-cfaf052d80e5", "status": - "creating", "createdDateTime": "2020-06-11T15:42:39Z", "lastUpdatedDateTime": - "2020-06-11T15:42:39Z"}}' - headers: - apim-request-id: 9e4e1039-d95c-4208-bda7-8bf70bbd88bf - content-type: application/json; charset=utf-8 - date: Thu, 11 Jun 2020 15:43:05 GMT - strict-transport-security: max-age=31536000; includeSubDomains; preload - transfer-encoding: chunked - x-content-type-options: nosniff - x-envoy-upstream-service-time: '5869' - status: - code: 200 - message: OK - url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/edf1ca9f-bd1d-488f-a939-cfaf052d80e5?includeKeys=true -- request: - body: null - headers: - User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) - method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/edf1ca9f-bd1d-488f-a939-cfaf052d80e5?includeKeys=true - response: - body: - string: '{"modelInfo": {"modelId": "edf1ca9f-bd1d-488f-a939-cfaf052d80e5", "status": - "creating", "createdDateTime": "2020-06-11T15:42:39Z", "lastUpdatedDateTime": - "2020-06-11T15:42:39Z"}}' - headers: - apim-request-id: 14d74f6a-7e56-4025-928a-cf99e81d2b56 - content-type: application/json; charset=utf-8 - date: Thu, 11 Jun 2020 15:43:10 GMT - strict-transport-security: max-age=31536000; includeSubDomains; preload - transfer-encoding: chunked - x-content-type-options: nosniff - x-envoy-upstream-service-time: '16' - status: - code: 200 - message: OK - url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/edf1ca9f-bd1d-488f-a939-cfaf052d80e5?includeKeys=true -- request: - body: null - headers: - User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) - method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/edf1ca9f-bd1d-488f-a939-cfaf052d80e5?includeKeys=true - response: - body: - string: '{"modelInfo": {"modelId": "edf1ca9f-bd1d-488f-a939-cfaf052d80e5", "status": - "creating", "createdDateTime": "2020-06-11T15:42:39Z", "lastUpdatedDateTime": - "2020-06-11T15:42:39Z"}}' - headers: - apim-request-id: e3a4fbe2-e6a0-4ca6-90e3-eb4d9209651d - content-type: application/json; charset=utf-8 - date: Thu, 11 Jun 2020 15:43:16 GMT - strict-transport-security: max-age=31536000; includeSubDomains; preload - transfer-encoding: chunked - x-content-type-options: nosniff - x-envoy-upstream-service-time: '51' - status: - code: 200 - message: OK - url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/edf1ca9f-bd1d-488f-a939-cfaf052d80e5?includeKeys=true -- request: - body: null - headers: - User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) - method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/edf1ca9f-bd1d-488f-a939-cfaf052d80e5?includeKeys=true - response: - body: - string: '{"modelInfo": {"modelId": "edf1ca9f-bd1d-488f-a939-cfaf052d80e5", "status": - "ready", "createdDateTime": "2020-06-11T15:42:39Z", "lastUpdatedDateTime": - "2020-06-11T15:43:01Z"}, "keys": {"clusters": {"0": ["Contoso Ltd. Conference + string: '{"modelInfo": {"modelId": "75e0875a-d75b-421e-b113-a5c2b536ca94", "status": + "ready", "createdDateTime": "2020-07-10T18:49:17Z", "lastUpdatedDateTime": + "2020-07-10T18:49:31Z"}, "keys": {"clusters": {"0": ["Contoso Ltd. Conference will be held on May 28-29, 2020 at the Elm Conference Center in", "Included", "Maple City, Massachusetts. The conference has sold out of its 1,500 tickets, with a 400 person", "Package", "Price", "Rates:", "Vendor #:", "Vendor Registration", @@ -204,17 +100,17 @@ interactions: "multi5.pdf", "pages": 2, "errors": [], "status": "succeeded"}], "errors": []}}' headers: - apim-request-id: f0103edb-85f7-4f7a-832a-a6b7266c6c18 + apim-request-id: 7346a4a4-9248-46a7-bb23-c666718d21fb content-type: application/json; charset=utf-8 - date: Thu, 11 Jun 2020 15:43:21 GMT + date: Fri, 10 Jul 2020 18:49:32 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '18' + x-envoy-upstream-service-time: '21' status: code: 200 message: OK - url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/edf1ca9f-bd1d-488f-a939-cfaf052d80e5?includeKeys=true + url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/75e0875a-d75b-421e-b113-a5c2b536ca94?includeKeys=true - request: body: !!binary | JVBERi0xLjcKCjQgMCBvYmoKKElkZW50aXR5KQplbmRvYmoKNSAwIG9iagooQWRvYmUpCmVuZG9i @@ -12706,61 +12602,58 @@ interactions: Content-Type: - application/pdf User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) method: POST - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/edf1ca9f-bd1d-488f-a939-cfaf052d80e5/analyze?includeTextDetails=true + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/75e0875a-d75b-421e-b113-a5c2b536ca94/analyze?includeTextDetails=true response: body: string: '' headers: - apim-request-id: 7e613e58-473e-4cf1-9675-a625ced0875b + apim-request-id: c99b1600-0cbb-49aa-8ab1-b858b52b0218 content-length: '0' - date: Thu, 11 Jun 2020 15:43:22 GMT - operation-location: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/edf1ca9f-bd1d-488f-a939-cfaf052d80e5/analyzeresults/732bf942-65f3-48f5-bb1d-87d5d6f5208d + date: Fri, 10 Jul 2020 18:49:35 GMT + operation-location: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/75e0875a-d75b-421e-b113-a5c2b536ca94/analyzeresults/e5844861-52af-46e0-8ab6-052847331534 strict-transport-security: max-age=31536000; includeSubDomains; preload x-content-type-options: nosniff - x-envoy-upstream-service-time: '168' + x-envoy-upstream-service-time: '1100' status: code: 202 message: Accepted - url: https://centraluseuap.api.cognitive.microsoft.com//formrecognizer/v2.0-preview/custom/models/edf1ca9f-bd1d-488f-a939-cfaf052d80e5/analyze?includeTextDetails=true + url: https://centraluseuap.api.cognitive.microsoft.com//formrecognizer/v2.0/custom/models/75e0875a-d75b-421e-b113-a5c2b536ca94/analyze?includeTextDetails=true - request: body: null headers: User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/edf1ca9f-bd1d-488f-a939-cfaf052d80e5/analyzeresults/732bf942-65f3-48f5-bb1d-87d5d6f5208d + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/75e0875a-d75b-421e-b113-a5c2b536ca94/analyzeresults/e5844861-52af-46e0-8ab6-052847331534 response: body: - string: '{"status": "running", "createdDateTime": "2020-06-11T15:43:22Z", "lastUpdatedDateTime": - "2020-06-11T15:43:24Z", "analyzeResult": null}' + string: '{"status": "running", "createdDateTime": "2020-07-10T18:49:35Z", "lastUpdatedDateTime": + "2020-07-10T18:49:39Z", "analyzeResult": null}' headers: - apim-request-id: 640c321c-ff3e-40e8-b133-9b0b02ae1556 + apim-request-id: 3d941b09-eb30-41a3-bb46-150df1a8ea3e content-length: '134' content-type: application/json; charset=utf-8 - date: Thu, 11 Jun 2020 15:43:28 GMT + date: Fri, 10 Jul 2020 18:49:40 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload x-content-type-options: nosniff - x-envoy-upstream-service-time: '49' + x-envoy-upstream-service-time: '23' status: code: 200 message: OK - url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/edf1ca9f-bd1d-488f-a939-cfaf052d80e5/analyzeresults/732bf942-65f3-48f5-bb1d-87d5d6f5208d + url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/75e0875a-d75b-421e-b113-a5c2b536ca94/analyzeresults/e5844861-52af-46e0-8ab6-052847331534 - request: body: null headers: User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/edf1ca9f-bd1d-488f-a939-cfaf052d80e5/analyzeresults/732bf942-65f3-48f5-bb1d-87d5d6f5208d + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/75e0875a-d75b-421e-b113-a5c2b536ca94/analyzeresults/e5844861-52af-46e0-8ab6-052847331534 response: body: - string: '{"status": "succeeded", "createdDateTime": "2020-06-11T15:43:22Z", - "lastUpdatedDateTime": "2020-06-11T15:43:31Z", "analyzeResult": {"version": + string: '{"status": "succeeded", "createdDateTime": "2020-07-10T18:49:35Z", + "lastUpdatedDateTime": "2020-07-10T18:49:43Z", "analyzeResult": {"version": "2.0.0", "readResults": [{"page": 1, "angle": 0, "width": 8.5, "height": 11.0, "unit": "inch", "lines": [{"text": "Vendor #:", "boundingBox": [6.1236, 1.0014, 7.1167, 1.0014, 7.1167, 1.3056, 6.1236, 1.3056], "words": [{"text": "Vendor", @@ -13210,15 +13103,15 @@ interactions: "confidence": 1.0}], "tables": [], "clusterId": 1}], "documentResults": [], "errors": []}}' headers: - apim-request-id: ca09dd3a-0d86-403d-a84a-ab21370ef2dc + apim-request-id: 3d5fde7e-6e4e-45ef-a0e5-148e86cd46bb content-length: '36398' content-type: application/json; charset=utf-8 - date: Thu, 11 Jun 2020 15:43:33 GMT + date: Fri, 10 Jul 2020 18:49:45 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload x-content-type-options: nosniff - x-envoy-upstream-service-time: '55' + x-envoy-upstream-service-time: '24' status: code: 200 message: OK - url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/edf1ca9f-bd1d-488f-a939-cfaf052d80e5/analyzeresults/732bf942-65f3-48f5-bb1d-87d5d6f5208d + url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/75e0875a-d75b-421e-b113-a5c2b536ca94/analyzeresults/e5844861-52af-46e0-8ab6-052847331534 version: 1 diff --git a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_custom_forms_async.test_custom_form_unlabeled.yaml b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_custom_forms_async.test_custom_form_unlabeled.yaml index 25d668fef365..fd05a0a1e4c9 100644 --- a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_custom_forms_async.test_custom_form_unlabeled.yaml +++ b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_custom_forms_async.test_custom_form_unlabeled.yaml @@ -8,88 +8,84 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) method: POST - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models response: body: string: '' headers: - apim-request-id: 60697b00-391b-43b2-8b10-8028600f53a8 + apim-request-id: fc9969c1-7ec5-441c-93ca-4d0cf08cc18e content-length: '0' - date: Thu, 11 Jun 2020 15:43:33 GMT - location: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/bf410d56-1a05-43a9-a424-e50eecf73dbe + date: Fri, 10 Jul 2020 18:49:46 GMT + location: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/08d7a88d-444f-4d4f-b534-a547d97f5833 strict-transport-security: max-age=31536000; includeSubDomains; preload x-content-type-options: nosniff - x-envoy-upstream-service-time: '65' + x-envoy-upstream-service-time: '39' status: code: 201 message: Created - url: https://centraluseuap.api.cognitive.microsoft.com//formrecognizer/v2.0-preview/custom/models + url: https://centraluseuap.api.cognitive.microsoft.com//formrecognizer/v2.0/custom/models - request: body: null headers: User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/bf410d56-1a05-43a9-a424-e50eecf73dbe?includeKeys=true + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/08d7a88d-444f-4d4f-b534-a547d97f5833?includeKeys=true response: body: - string: '{"modelInfo": {"modelId": "bf410d56-1a05-43a9-a424-e50eecf73dbe", "status": - "creating", "createdDateTime": "2020-06-11T15:43:33Z", "lastUpdatedDateTime": - "2020-06-11T15:43:33Z"}}' + string: '{"modelInfo": {"modelId": "08d7a88d-444f-4d4f-b534-a547d97f5833", "status": + "creating", "createdDateTime": "2020-07-10T18:49:46Z", "lastUpdatedDateTime": + "2020-07-10T18:49:46Z"}}' headers: - apim-request-id: 6dd01944-4d82-40ab-8f0d-d07daa7a4ebd + apim-request-id: 1be3d5af-1835-4813-868b-4a9bed17808c content-type: application/json; charset=utf-8 - date: Thu, 11 Jun 2020 15:43:38 GMT + date: Fri, 10 Jul 2020 18:49:51 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '17' + x-envoy-upstream-service-time: '22' status: code: 200 message: OK - url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/bf410d56-1a05-43a9-a424-e50eecf73dbe?includeKeys=true + url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/08d7a88d-444f-4d4f-b534-a547d97f5833?includeKeys=true - request: body: null headers: User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/bf410d56-1a05-43a9-a424-e50eecf73dbe?includeKeys=true + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/08d7a88d-444f-4d4f-b534-a547d97f5833?includeKeys=true response: body: - string: '{"modelInfo": {"modelId": "bf410d56-1a05-43a9-a424-e50eecf73dbe", "status": - "creating", "createdDateTime": "2020-06-11T15:43:33Z", "lastUpdatedDateTime": - "2020-06-11T15:43:33Z"}}' + string: '{"modelInfo": {"modelId": "08d7a88d-444f-4d4f-b534-a547d97f5833", "status": + "creating", "createdDateTime": "2020-07-10T18:49:46Z", "lastUpdatedDateTime": + "2020-07-10T18:49:46Z"}}' headers: - apim-request-id: 460fefb2-0e80-4fd9-88fe-6f0c35685c5a + apim-request-id: 64e4e3de-5707-46fe-b0a6-c60da9b5a85b content-type: application/json; charset=utf-8 - date: Thu, 11 Jun 2020 15:43:43 GMT + date: Fri, 10 Jul 2020 18:49:56 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '49' + x-envoy-upstream-service-time: '160' status: code: 200 message: OK - url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/bf410d56-1a05-43a9-a424-e50eecf73dbe?includeKeys=true + url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/08d7a88d-444f-4d4f-b534-a547d97f5833?includeKeys=true - request: body: null headers: User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/bf410d56-1a05-43a9-a424-e50eecf73dbe?includeKeys=true + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/08d7a88d-444f-4d4f-b534-a547d97f5833?includeKeys=true response: body: - string: '{"modelInfo": {"modelId": "bf410d56-1a05-43a9-a424-e50eecf73dbe", "status": - "ready", "createdDateTime": "2020-06-11T15:43:33Z", "lastUpdatedDateTime": - "2020-06-11T15:43:44Z"}, "keys": {"clusters": {"0": ["Additional Notes:", + string: '{"modelInfo": {"modelId": "08d7a88d-444f-4d4f-b534-a547d97f5833", "status": + "ready", "createdDateTime": "2020-07-10T18:49:46Z", "lastUpdatedDateTime": + "2020-07-10T18:49:58Z"}, "keys": {"clusters": {"0": ["Additional Notes:", "Address:", "Company Name:", "Company Phone:", "Dated As:", "Details", "Email:", "Hero Limited", "Name:", "Phone:", "Purchase Order", "Purchase Order #:", "Quantity", "SUBTOTAL", "Seattle, WA 93849 Phone:", "Shipped From", "Shipped @@ -101,17 +97,17 @@ interactions: 1, "errors": [], "status": "succeeded"}, {"documentName": "Form_5.jpg", "pages": 1, "errors": [], "status": "succeeded"}], "errors": []}}' headers: - apim-request-id: 02eb1064-50bf-4b85-8117-553df39cd44e + apim-request-id: 87872a77-423e-4c5a-b44e-537636d0ec04 content-type: application/json; charset=utf-8 - date: Thu, 11 Jun 2020 15:43:48 GMT + date: Fri, 10 Jul 2020 18:50:02 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '51' + x-envoy-upstream-service-time: '19' status: code: 200 message: OK - url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/bf410d56-1a05-43a9-a424-e50eecf73dbe?includeKeys=true + url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/08d7a88d-444f-4d4f-b534-a547d97f5833?includeKeys=true - request: body: !!binary | /9j/4AAQSkZJRgABAQEAyADIAAD/4QBmRXhpZgAATU0AKgAAAAgABAEaAAUAAAABAAAAPgEbAAUA @@ -8527,61 +8523,35 @@ interactions: Content-Type: - image/jpeg User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) method: POST - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/bf410d56-1a05-43a9-a424-e50eecf73dbe/analyze?includeTextDetails=false + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/08d7a88d-444f-4d4f-b534-a547d97f5833/analyze?includeTextDetails=false response: body: string: '' headers: - apim-request-id: e8dad80b-61e7-4d81-b3a5-d87cc24dc36f + apim-request-id: d7add912-bebc-46d9-b434-981d332eed3c content-length: '0' - date: Thu, 11 Jun 2020 15:43:50 GMT - operation-location: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/bf410d56-1a05-43a9-a424-e50eecf73dbe/analyzeresults/d7e436e6-a7eb-4628-b4f3-64097c2f4874 + date: Fri, 10 Jul 2020 18:50:03 GMT + operation-location: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/08d7a88d-444f-4d4f-b534-a547d97f5833/analyzeresults/bb6ed2c5-79f9-405f-8fc3-eb390f79a22a strict-transport-security: max-age=31536000; includeSubDomains; preload x-content-type-options: nosniff - x-envoy-upstream-service-time: '69' + x-envoy-upstream-service-time: '1113' status: code: 202 message: Accepted - url: https://centraluseuap.api.cognitive.microsoft.com//formrecognizer/v2.0-preview/custom/models/bf410d56-1a05-43a9-a424-e50eecf73dbe/analyze?includeTextDetails=false + url: https://centraluseuap.api.cognitive.microsoft.com//formrecognizer/v2.0/custom/models/08d7a88d-444f-4d4f-b534-a547d97f5833/analyze?includeTextDetails=false - request: body: null headers: User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/bf410d56-1a05-43a9-a424-e50eecf73dbe/analyzeresults/d7e436e6-a7eb-4628-b4f3-64097c2f4874 + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/08d7a88d-444f-4d4f-b534-a547d97f5833/analyzeresults/bb6ed2c5-79f9-405f-8fc3-eb390f79a22a response: body: - string: '{"status": "running", "createdDateTime": "2020-06-11T15:43:50Z", "lastUpdatedDateTime": - "2020-06-11T15:43:51Z", "analyzeResult": null}' - headers: - apim-request-id: adb9d087-d6fd-4607-b545-06ddc2713fdb - content-length: '134' - content-type: application/json; charset=utf-8 - date: Thu, 11 Jun 2020 15:43:55 GMT - strict-transport-security: max-age=31536000; includeSubDomains; preload - x-content-type-options: nosniff - x-envoy-upstream-service-time: '21' - status: - code: 200 - message: OK - url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/bf410d56-1a05-43a9-a424-e50eecf73dbe/analyzeresults/d7e436e6-a7eb-4628-b4f3-64097c2f4874 -- request: - body: null - headers: - User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) - method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/bf410d56-1a05-43a9-a424-e50eecf73dbe/analyzeresults/d7e436e6-a7eb-4628-b4f3-64097c2f4874 - response: - body: - string: '{"status": "succeeded", "createdDateTime": "2020-06-11T15:43:50Z", - "lastUpdatedDateTime": "2020-06-11T15:43:57Z", "analyzeResult": {"version": + string: '{"status": "succeeded", "createdDateTime": "2020-07-10T18:50:04Z", + "lastUpdatedDateTime": "2020-07-10T18:50:08Z", "analyzeResult": {"version": "2.0.0", "readResults": [{"page": 1, "angle": 0.16, "width": 1700, "height": 2200, "unit": "pixel", "lines": []}], "pageResults": [{"page": 1, "keyValuePairs": [{"key": {"text": "Hero Limited", "boundingBox": [620.0, 203.0, 1078.0, 203.0, @@ -8730,15 +8700,15 @@ interactions: 1.0, "rowSpan": 1, "columnSpan": 1, "elements": null, "isHeader": false, "isFooter": false}]}], "clusterId": 0}], "documentResults": [], "errors": []}}' headers: - apim-request-id: 8a4b5bc0-3f00-4e08-a4a3-9d285aa23df3 + apim-request-id: bd7ddc81-1a9e-41a7-9300-f2d0dc94036a content-length: '11800' content-type: application/json; charset=utf-8 - date: Thu, 11 Jun 2020 15:43:59 GMT + date: Fri, 10 Jul 2020 18:50:09 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload x-content-type-options: nosniff - x-envoy-upstream-service-time: '21' + x-envoy-upstream-service-time: '957' status: code: 200 message: OK - url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/bf410d56-1a05-43a9-a424-e50eecf73dbe/analyzeresults/d7e436e6-a7eb-4628-b4f3-64097c2f4874 + url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/08d7a88d-444f-4d4f-b534-a547d97f5833/analyzeresults/bb6ed2c5-79f9-405f-8fc3-eb390f79a22a version: 1 diff --git a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_custom_forms_async.test_custom_form_unlabeled_blank_page.yaml b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_custom_forms_async.test_custom_form_unlabeled_blank_page.yaml index eead0177c439..cc1d3663d2b0 100644 --- a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_custom_forms_async.test_custom_form_unlabeled_blank_page.yaml +++ b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_custom_forms_async.test_custom_form_unlabeled_blank_page.yaml @@ -8,88 +8,60 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) method: POST - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models response: body: string: '' headers: - apim-request-id: 9a38ee43-11b3-45fa-aa49-3aa02d5ea68f + apim-request-id: 22a77677-e522-43b1-a8b4-ccbf7f840d02 content-length: '0' - date: Mon, 15 Jun 2020 20:08:11 GMT - location: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/453f8f6c-6c05-49e4-aca5-021ca0b2d87f + date: Fri, 10 Jul 2020 18:50:09 GMT + location: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/ca9e400e-d970-41a7-9824-2652f4d3b355 strict-transport-security: max-age=31536000; includeSubDomains; preload x-content-type-options: nosniff - x-envoy-upstream-service-time: '329' + x-envoy-upstream-service-time: '200' status: code: 201 message: Created - url: https://centraluseuap.api.cognitive.microsoft.com//formrecognizer/v2.0-preview/custom/models + url: https://centraluseuap.api.cognitive.microsoft.com//formrecognizer/v2.0/custom/models - request: body: null headers: User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/453f8f6c-6c05-49e4-aca5-021ca0b2d87f?includeKeys=true + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/ca9e400e-d970-41a7-9824-2652f4d3b355?includeKeys=true response: body: - string: '{"modelInfo": {"modelId": "453f8f6c-6c05-49e4-aca5-021ca0b2d87f", "status": - "creating", "createdDateTime": "2020-06-15T20:08:11Z", "lastUpdatedDateTime": - "2020-06-15T20:08:11Z"}}' + string: '{"modelInfo": {"modelId": "ca9e400e-d970-41a7-9824-2652f4d3b355", "status": + "creating", "createdDateTime": "2020-07-10T18:50:10Z", "lastUpdatedDateTime": + "2020-07-10T18:50:10Z"}}' headers: - apim-request-id: a1148aad-27a3-4747-bcc8-2d1b0663032e + apim-request-id: 9a01d98b-fc15-44d6-b719-b76cecad6937 content-type: application/json; charset=utf-8 - date: Mon, 15 Jun 2020 20:08:16 GMT + date: Fri, 10 Jul 2020 18:50:15 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '169' + x-envoy-upstream-service-time: '20' status: code: 200 message: OK - url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/453f8f6c-6c05-49e4-aca5-021ca0b2d87f?includeKeys=true + url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/ca9e400e-d970-41a7-9824-2652f4d3b355?includeKeys=true - request: body: null headers: User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/453f8f6c-6c05-49e4-aca5-021ca0b2d87f?includeKeys=true + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/ca9e400e-d970-41a7-9824-2652f4d3b355?includeKeys=true response: body: - string: '{"modelInfo": {"modelId": "453f8f6c-6c05-49e4-aca5-021ca0b2d87f", "status": - "creating", "createdDateTime": "2020-06-15T20:08:11Z", "lastUpdatedDateTime": - "2020-06-15T20:08:11Z"}}' - headers: - apim-request-id: 32f7810d-65a3-424c-906a-5096f737ea38 - content-type: application/json; charset=utf-8 - date: Mon, 15 Jun 2020 20:08:22 GMT - strict-transport-security: max-age=31536000; includeSubDomains; preload - transfer-encoding: chunked - x-content-type-options: nosniff - x-envoy-upstream-service-time: '204' - status: - code: 200 - message: OK - url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/453f8f6c-6c05-49e4-aca5-021ca0b2d87f?includeKeys=true -- request: - body: null - headers: - User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) - method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/453f8f6c-6c05-49e4-aca5-021ca0b2d87f?includeKeys=true - response: - body: - string: '{"modelInfo": {"modelId": "453f8f6c-6c05-49e4-aca5-021ca0b2d87f", "status": - "ready", "createdDateTime": "2020-06-15T20:08:11Z", "lastUpdatedDateTime": - "2020-06-15T20:08:24Z"}, "keys": {"clusters": {"0": ["Additional Notes:", + string: '{"modelInfo": {"modelId": "ca9e400e-d970-41a7-9824-2652f4d3b355", "status": + "ready", "createdDateTime": "2020-07-10T18:50:10Z", "lastUpdatedDateTime": + "2020-07-10T18:50:20Z"}, "keys": {"clusters": {"0": ["Additional Notes:", "Address:", "Company Name:", "Company Phone:", "Dated As:", "Details", "Email:", "Hero Limited", "Name:", "Phone:", "Purchase Order", "Purchase Order #:", "Quantity", "SUBTOTAL", "Seattle, WA 93849 Phone:", "Shipped From", "Shipped @@ -101,17 +73,17 @@ interactions: 1, "errors": [], "status": "succeeded"}, {"documentName": "Form_5.jpg", "pages": 1, "errors": [], "status": "succeeded"}], "errors": []}}' headers: - apim-request-id: d598b55b-90cd-4e19-a40f-4792210c2d59 + apim-request-id: 23d3b323-f13b-479d-8bf4-239ea4dc7503 content-type: application/json; charset=utf-8 - date: Mon, 15 Jun 2020 20:08:27 GMT + date: Fri, 10 Jul 2020 18:50:20 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '228' + x-envoy-upstream-service-time: '21' status: code: 200 message: OK - url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/453f8f6c-6c05-49e4-aca5-021ca0b2d87f?includeKeys=true + url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/ca9e400e-d970-41a7-9824-2652f4d3b355?includeKeys=true - request: body: !!binary | JVBERi0xLjcNCiW1tbW1DQoxIDAgb2JqDQo8PC9UeXBlL0NhdGFsb2cvUGFnZXMgMiAwIFIvTGFu @@ -569,50 +541,48 @@ interactions: Content-Type: - application/pdf User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) method: POST - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/453f8f6c-6c05-49e4-aca5-021ca0b2d87f/analyze?includeTextDetails=false + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/ca9e400e-d970-41a7-9824-2652f4d3b355/analyze?includeTextDetails=false response: body: string: '' headers: - apim-request-id: f783555a-4a07-4f70-88a6-6231346db487 + apim-request-id: 3f1c4fee-6c4e-43a8-a262-d73285f933b1 content-length: '0' - date: Mon, 15 Jun 2020 20:08:28 GMT - operation-location: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/453f8f6c-6c05-49e4-aca5-021ca0b2d87f/analyzeresults/dfacccb6-1a1b-4607-86bd-db85568ff01a + date: Fri, 10 Jul 2020 18:50:20 GMT + operation-location: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/ca9e400e-d970-41a7-9824-2652f4d3b355/analyzeresults/19fa2e64-dfed-4a0d-b8e3-3293539da2c1 strict-transport-security: max-age=31536000; includeSubDomains; preload x-content-type-options: nosniff - x-envoy-upstream-service-time: '361' + x-envoy-upstream-service-time: '73' status: code: 202 message: Accepted - url: https://centraluseuap.api.cognitive.microsoft.com//formrecognizer/v2.0-preview/custom/models/453f8f6c-6c05-49e4-aca5-021ca0b2d87f/analyze?includeTextDetails=false + url: https://centraluseuap.api.cognitive.microsoft.com//formrecognizer/v2.0/custom/models/ca9e400e-d970-41a7-9824-2652f4d3b355/analyze?includeTextDetails=false - request: body: null headers: User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/453f8f6c-6c05-49e4-aca5-021ca0b2d87f/analyzeresults/dfacccb6-1a1b-4607-86bd-db85568ff01a + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/ca9e400e-d970-41a7-9824-2652f4d3b355/analyzeresults/19fa2e64-dfed-4a0d-b8e3-3293539da2c1 response: body: - string: '{"status": "succeeded", "createdDateTime": "2020-06-15T20:08:28Z", - "lastUpdatedDateTime": "2020-06-15T20:08:32Z", "analyzeResult": {"version": + string: '{"status": "succeeded", "createdDateTime": "2020-07-10T18:50:21Z", + "lastUpdatedDateTime": "2020-07-10T18:50:25Z", "analyzeResult": {"version": "2.0.0", "readResults": [{"page": 1, "angle": 0, "width": 8.5, "height": 11.0, "unit": "inch", "lines": []}], "pageResults": [{"page": 1, "keyValuePairs": [], "tables": [], "clusterId": null}], "documentResults": [], "errors": []}}' headers: - apim-request-id: 3d04e0d7-03ed-4f5c-ab34-96ecce4138eb + apim-request-id: b1201e5c-dea1-4108-8a2e-23ffafbfaffb content-length: '374' content-type: application/json; charset=utf-8 - date: Mon, 15 Jun 2020 20:08:33 GMT + date: Fri, 10 Jul 2020 18:50:25 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload x-content-type-options: nosniff - x-envoy-upstream-service-time: '199' + x-envoy-upstream-service-time: '16' status: code: 200 message: OK - url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/453f8f6c-6c05-49e4-aca5-021ca0b2d87f/analyzeresults/dfacccb6-1a1b-4607-86bd-db85568ff01a + url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/ca9e400e-d970-41a7-9824-2652f4d3b355/analyzeresults/19fa2e64-dfed-4a0d-b8e3-3293539da2c1 version: 1 diff --git a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_custom_forms_async.test_custom_forms_multipage_labeled_transform.yaml b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_custom_forms_async.test_custom_forms_multipage_labeled_transform.yaml index b6b4793926ae..abbb369b3036 100644 --- a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_custom_forms_async.test_custom_forms_multipage_labeled_transform.yaml +++ b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_custom_forms_async.test_custom_forms_multipage_labeled_transform.yaml @@ -8,38 +8,36 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) method: POST - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models response: body: string: '' headers: - apim-request-id: 75a40783-803d-4a89-bfeb-ababf351d22a + apim-request-id: 799877aa-c773-4f0d-805b-b012a72c4cc3 content-length: '0' - date: Thu, 11 Jun 2020 15:44:00 GMT - location: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/a96d21e5-da1c-4346-8a5d-8ba59b257c10 + date: Fri, 10 Jul 2020 18:50:27 GMT + location: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/8eb31681-0af3-449d-9214-38a249546b3f strict-transport-security: max-age=31536000; includeSubDomains; preload x-content-type-options: nosniff - x-envoy-upstream-service-time: '65' + x-envoy-upstream-service-time: '126' status: code: 201 message: Created - url: https://centraluseuap.api.cognitive.microsoft.com//formrecognizer/v2.0-preview/custom/models + url: https://centraluseuap.api.cognitive.microsoft.com//formrecognizer/v2.0/custom/models - request: body: null headers: User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/a96d21e5-da1c-4346-8a5d-8ba59b257c10?includeKeys=true + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/8eb31681-0af3-449d-9214-38a249546b3f?includeKeys=true response: body: - string: '{"modelInfo": {"modelId": "a96d21e5-da1c-4346-8a5d-8ba59b257c10", "status": - "ready", "createdDateTime": "2020-06-11T15:44:01Z", "lastUpdatedDateTime": - "2020-06-11T15:44:02Z"}, "trainResult": {"averageModelAccuracy": 0.889, "trainingDocuments": + string: '{"modelInfo": {"modelId": "8eb31681-0af3-449d-9214-38a249546b3f", "status": + "ready", "createdDateTime": "2020-07-10T18:50:26Z", "lastUpdatedDateTime": + "2020-07-10T18:50:28Z"}, "trainResult": {"averageModelAccuracy": 0.889, "trainingDocuments": [{"documentName": "multipage_invoice1.pdf", "pages": 3, "status": "succeeded"}, {"documentName": "multipage_invoice2.pdf", "pages": 3, "status": "succeeded"}, {"documentName": "multipage_invoice3.pdf", "pages": 3, "status": "succeeded"}, @@ -57,17 +55,17 @@ interactions: 1.0}, {"fieldName": "Tip", "accuracy": 1.0}, {"fieldName": "Total", "accuracy": 1.0}, {"fieldName": "Total2", "accuracy": 1.0}], "errors": []}}' headers: - apim-request-id: 6335eebd-d33d-4583-8e5e-5c7edd0a343e + apim-request-id: 93c6d5a8-e3e8-44cb-b33c-972077625fad content-type: application/json; charset=utf-8 - date: Thu, 11 Jun 2020 15:44:05 GMT + date: Fri, 10 Jul 2020 18:50:32 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '46' + x-envoy-upstream-service-time: '47' status: code: 200 message: OK - url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/a96d21e5-da1c-4346-8a5d-8ba59b257c10?includeKeys=true + url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/8eb31681-0af3-449d-9214-38a249546b3f?includeKeys=true - request: body: !!binary | JVBERi0xLjcNCiW1tbW1DQoxIDAgb2JqDQo8PC9UeXBlL0NhdGFsb2cvUGFnZXMgMiAwIFIvTGFu @@ -1986,85 +1984,81 @@ interactions: Content-Type: - application/pdf User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) method: POST - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/a96d21e5-da1c-4346-8a5d-8ba59b257c10/analyze?includeTextDetails=true + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/8eb31681-0af3-449d-9214-38a249546b3f/analyze?includeTextDetails=true response: body: string: '' headers: - apim-request-id: 809a9efa-8bdd-40b0-99cd-8ac9f0bb225b + apim-request-id: 7677d9af-8e92-4eef-8ea8-fe848e76effa content-length: '0' - date: Thu, 11 Jun 2020 15:44:09 GMT - operation-location: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/a96d21e5-da1c-4346-8a5d-8ba59b257c10/analyzeresults/0e547f8b-0fce-4e61-ae1d-b84427d9bb1e + date: Fri, 10 Jul 2020 18:50:32 GMT + operation-location: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/8eb31681-0af3-449d-9214-38a249546b3f/analyzeresults/a808e68f-fefd-43c8-916c-2e9a3d472d4a strict-transport-security: max-age=31536000; includeSubDomains; preload x-content-type-options: nosniff - x-envoy-upstream-service-time: '787' + x-envoy-upstream-service-time: '82' status: code: 202 message: Accepted - url: https://centraluseuap.api.cognitive.microsoft.com//formrecognizer/v2.0-preview/custom/models/a96d21e5-da1c-4346-8a5d-8ba59b257c10/analyze?includeTextDetails=true + url: https://centraluseuap.api.cognitive.microsoft.com//formrecognizer/v2.0/custom/models/8eb31681-0af3-449d-9214-38a249546b3f/analyze?includeTextDetails=true - request: body: null headers: User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/a96d21e5-da1c-4346-8a5d-8ba59b257c10/analyzeresults/0e547f8b-0fce-4e61-ae1d-b84427d9bb1e + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/8eb31681-0af3-449d-9214-38a249546b3f/analyzeresults/a808e68f-fefd-43c8-916c-2e9a3d472d4a response: body: - string: '{"status": "notStarted", "createdDateTime": "2020-06-11T15:44:08Z", - "lastUpdatedDateTime": "2020-06-11T15:44:08Z"}' + string: '{"status": "notStarted", "createdDateTime": "2020-07-10T18:50:32Z", + "lastUpdatedDateTime": "2020-07-10T18:50:32Z"}' headers: - apim-request-id: 0946e9b5-8508-4348-96f3-5bfd273eb600 + apim-request-id: ea24d12b-593e-458e-8747-f6603947523a content-length: '109' content-type: application/json; charset=utf-8 - date: Thu, 11 Jun 2020 15:44:14 GMT + date: Fri, 10 Jul 2020 18:50:37 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload x-content-type-options: nosniff - x-envoy-upstream-service-time: '53' + x-envoy-upstream-service-time: '16' status: code: 200 message: OK - url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/a96d21e5-da1c-4346-8a5d-8ba59b257c10/analyzeresults/0e547f8b-0fce-4e61-ae1d-b84427d9bb1e + url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/8eb31681-0af3-449d-9214-38a249546b3f/analyzeresults/a808e68f-fefd-43c8-916c-2e9a3d472d4a - request: body: null headers: User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/a96d21e5-da1c-4346-8a5d-8ba59b257c10/analyzeresults/0e547f8b-0fce-4e61-ae1d-b84427d9bb1e + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/8eb31681-0af3-449d-9214-38a249546b3f/analyzeresults/a808e68f-fefd-43c8-916c-2e9a3d472d4a response: body: - string: '{"status": "notStarted", "createdDateTime": "2020-06-11T15:44:08Z", - "lastUpdatedDateTime": "2020-06-11T15:44:18Z"}' + string: '{"status": "notStarted", "createdDateTime": "2020-07-10T18:50:32Z", + "lastUpdatedDateTime": "2020-07-10T18:50:41Z"}' headers: - apim-request-id: fc1f3bde-dc64-47f4-8d8c-8fdbd1429be0 + apim-request-id: 357cca02-3b8b-4abf-8f37-bd69512f3f29 content-length: '109' content-type: application/json; charset=utf-8 - date: Thu, 11 Jun 2020 15:44:19 GMT + date: Fri, 10 Jul 2020 18:50:42 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload x-content-type-options: nosniff - x-envoy-upstream-service-time: '22' + x-envoy-upstream-service-time: '45' status: code: 200 message: OK - url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/a96d21e5-da1c-4346-8a5d-8ba59b257c10/analyzeresults/0e547f8b-0fce-4e61-ae1d-b84427d9bb1e + url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/8eb31681-0af3-449d-9214-38a249546b3f/analyzeresults/a808e68f-fefd-43c8-916c-2e9a3d472d4a - request: body: null headers: User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/a96d21e5-da1c-4346-8a5d-8ba59b257c10/analyzeresults/0e547f8b-0fce-4e61-ae1d-b84427d9bb1e + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/8eb31681-0af3-449d-9214-38a249546b3f/analyzeresults/a808e68f-fefd-43c8-916c-2e9a3d472d4a response: body: - string: '{"status": "succeeded", "createdDateTime": "2020-06-11T15:44:08Z", - "lastUpdatedDateTime": "2020-06-11T15:44:22Z", "analyzeResult": {"version": + string: '{"status": "succeeded", "createdDateTime": "2020-07-10T18:50:32Z", + "lastUpdatedDateTime": "2020-07-10T18:50:45Z", "analyzeResult": {"version": "2.0.0", "readResults": [{"page": 1, "language": "en", "angle": 0, "width": 8.5, "height": 11, "unit": "inch", "lines": [{"boundingBox": [0.8861, 1.1217, 2.3783, 1.1217, 2.3783, 1.2812, 0.8861, 1.2812], "text": "Company A Invoice", @@ -2445,80 +2439,81 @@ interactions: {"rowIndex": 7, "columnIndex": 2, "text": "220.00", "boundingBox": [5.3353, 4.4181, 7.4997, 4.4181, 7.4997, 4.6281, 5.3353, 4.6281], "elements": ["#/readResults/2/lines/33/words/0"]}]}]}], "documentResults": [{"docType": "custom:form", "pageRange": [1, 3], "fields": - {"Merchant2": {"type": "string", "valueString": "Company", "text": "Company", - "page": 1, "boundingBox": [0.885, 1.125, 1.62, 1.125, 1.62, 1.28, 0.885, 1.28], - "confidence": 1.0, "elements": ["#/analyzeResult/readResults/0/lines/0/words/0"]}, + {"Subtotal": {"type": "string", "valueString": "300.00", "text": "300.00", + "page": 1, "boundingBox": [6.18, 4.905, 6.63, 4.905, 6.63, 5.015, 6.18, 5.015], + "confidence": 1.0, "elements": ["#/analyzeResult/readResults/0/lines/34/words/1"]}, "Signature2": {"type": "string", "valueString": "Frodo Baggins", "text": "Frodo Baggins", "page": 3, "boundingBox": [2.07, 6.655, 3.09, 6.655, 3.09, 6.8, 2.07, 6.8], "confidence": 0.16, "elements": ["#/analyzeResult/readResults/2/lines/38/words/1", - "#/analyzeResult/readResults/2/lines/38/words/2"]}, "CustomerName": {"type": - "string", "valueString": "Bilbo Baggins", "text": "Bilbo Baggins", "page": - 1, "boundingBox": [6.015000000000001, 1.45, 6.8950000000000005, 1.45, 6.8950000000000005, - 1.595, 6.015000000000001, 1.595], "confidence": 1.0, "elements": ["#/analyzeResult/readResults/0/lines/3/words/0", - "#/analyzeResult/readResults/0/lines/3/words/1"]}, "Signature": {"type": "string", - "valueString": "Bilbo Baggins", "text": "Bilbo Baggins", "page": 1, "boundingBox": - [2.05, 6.655, 3.04, 6.655, 3.04, 6.8, 2.05, 6.8], "confidence": 1.0, "elements": - ["#/analyzeResult/readResults/0/lines/38/words/1", "#/analyzeResult/readResults/0/lines/38/words/2"]}, - "Merchant": {"type": "string", "valueString": "A", "text": "A", "page": 1, - "boundingBox": [1.67, 1.125, 1.7750000000000001, 1.125, 1.7750000000000001, - 1.245, 1.67, 1.245], "confidence": 1.0, "elements": ["#/analyzeResult/readResults/0/lines/0/words/1"]}, - "FirstItem": {"type": "string", "valueString": "A", "text": "A", "page": 1, - "boundingBox": [1.085, 3.21, 1.175, 3.21, 1.175, 3.3200000000000003, 1.085, - 3.3200000000000003], "confidence": 1.0, "elements": ["#/analyzeResult/readResults/0/lines/13/words/0"]}, - "MerchantPhoneNumber": {"type": "string", "valueString": "555-555-5555", "text": - "555-555-5555", "page": 1, "boundingBox": [0.885, 2.29, 1.81, 2.29, 1.81, - 2.395, 0.885, 2.395], "confidence": 1.0, "elements": ["#/analyzeResult/readResults/0/lines/9/words/0"]}, - "FirstQuantity": {"type": "string", "valueString": "1", "text": "1", "page": - 1, "boundingBox": [3.2600000000000002, 3.21, 3.3200000000000003, 3.21, 3.3200000000000003, - 3.3200000000000003, 3.2600000000000002, 3.3200000000000003], "confidence": - 1.0, "elements": ["#/analyzeResult/readResults/0/lines/14/words/0"]}, "Total2": - {"type": "string", "valueString": "4300.00", "text": "4300.00", "page": 3, - "boundingBox": [5.94, 5.565, 6.48, 5.565, 6.48, 5.675, 5.94, 5.675], "confidence": - 1.0, "elements": ["#/analyzeResult/readResults/2/lines/37/words/1"]}, "Tip": - {"type": "string", "valueString": "100.00", "text": "100.00", "page": 1, "boundingBox": - [5.8100000000000005, 5.345, 6.26, 5.345, 6.26, 5.455, 5.8100000000000005, - 5.455], "confidence": 1.0, "elements": ["#/analyzeResult/readResults/0/lines/36/words/1"]}, - "Customer2": {"type": "string", "valueString": "Frodo Baggins", "text": "Frodo - Baggins", "page": 3, "boundingBox": [6.015000000000001, 1.45, 6.95, 1.45, - 6.95, 1.595, 6.015000000000001, 1.595], "confidence": 1.0, "elements": ["#/analyzeResult/readResults/2/lines/3/words/0", - "#/analyzeResult/readResults/2/lines/3/words/1"]}, "CustomerAddress": {"type": + "#/analyzeResult/readResults/2/lines/38/words/2"]}, "CustomerAddress": {"type": "string", "valueString": "123 Hobbit Lane Redmond, WA", "text": "123 Hobbit Lane Redmond, WA", "page": 1, "boundingBox": [6.015000000000001, 1.67, 7.1000000000000005, 1.67, 7.1000000000000005, 2.0300000000000002, 6.015000000000001, 2.0300000000000002], "confidence": 1.0, "elements": ["#/analyzeResult/readResults/0/lines/4/words/0", "#/analyzeResult/readResults/0/lines/4/words/1", "#/analyzeResult/readResults/0/lines/4/words/2", "#/analyzeResult/readResults/0/lines/6/words/0", "#/analyzeResult/readResults/0/lines/6/words/1"]}, + "Total": {"type": "string", "valueString": "430.00", "text": "430.00", "page": + 1, "boundingBox": [5.94, 5.565, 6.4, 5.565, 6.4, 5.675, 5.94, 5.675], "confidence": + 1.0, "elements": ["#/analyzeResult/readResults/0/lines/37/words/1"]}, "Total2": + {"type": "string", "valueString": "4300.00", "text": "4300.00", "page": 3, + "boundingBox": [5.94, 5.565, 6.48, 5.565, 6.48, 5.675, 5.94, 5.675], "confidence": + 1.0, "elements": ["#/analyzeResult/readResults/2/lines/37/words/1"]}, "Merchant": + {"type": "string", "valueString": "A", "text": "A", "page": 1, "boundingBox": + [1.67, 1.125, 1.7750000000000001, 1.125, 1.7750000000000001, 1.245, 1.67, + 1.245], "confidence": 1.0, "elements": ["#/analyzeResult/readResults/0/lines/0/words/1"]}, + "FirstItem": {"type": "string", "valueString": "A", "text": "A", "page": 1, + "boundingBox": [1.085, 3.21, 1.175, 3.21, 1.175, 3.3200000000000003, 1.085, + 3.3200000000000003], "confidence": 1.0, "elements": ["#/analyzeResult/readResults/0/lines/13/words/0"]}, "MerchantAddress": {"type": "string", "valueString": "567 Main St. Redmond, WA", "text": "567 Main St. Redmond, WA", "page": 1, "boundingBox": [0.885, 1.845, 1.855, 1.845, 1.855, 2.2, 0.885, 2.2], "confidence": 1.0, "elements": ["#/analyzeResult/readResults/0/lines/5/words/0", "#/analyzeResult/readResults/0/lines/5/words/1", "#/analyzeResult/readResults/0/lines/5/words/2", "#/analyzeResult/readResults/0/lines/7/words/0", - "#/analyzeResult/readResults/0/lines/7/words/1"]}, "CustomerPhoneNumber": - {"type": "string", "valueString": "555-555-5555", "text": "555-555-5555", - "page": 1, "boundingBox": [6.01, 2.12, 6.9350000000000005, 2.12, 6.9350000000000005, - 2.225, 6.01, 2.225], "confidence": 1.0, "elements": ["#/analyzeResult/readResults/0/lines/8/words/0"]}, - "FirstPrice": {"type": "string", "valueString": "10.99", "text": "10.99", - "page": 1, "boundingBox": [5.425, 3.21, 5.78, 3.21, 5.78, 3.3200000000000003, - 5.425, 3.3200000000000003], "confidence": 1.0, "elements": ["#/analyzeResult/readResults/0/lines/15/words/0"]}, - "Subtotal": {"type": "string", "valueString": "300.00", "text": "300.00", - "page": 1, "boundingBox": [6.18, 4.905, 6.63, 4.905, 6.63, 5.015, 6.18, 5.015], - "confidence": 1.0, "elements": ["#/analyzeResult/readResults/0/lines/34/words/1"]}, - "Total": {"type": "string", "valueString": "430.00", "text": "430.00", "page": - 1, "boundingBox": [5.94, 5.565, 6.4, 5.565, 6.4, 5.675, 5.94, 5.675], "confidence": - 1.0, "elements": ["#/analyzeResult/readResults/0/lines/37/words/1"]}, "Tax": - {"type": "string", "valueString": "30.00", "text": "30.00", "page": 1, "boundingBox": - [5.835, 5.125, 6.2, 5.125, 6.2, 5.235, 5.835, 5.235], "confidence": 1.0, "elements": - ["#/analyzeResult/readResults/0/lines/35/words/1"]}}}], "errors": []}}' + "#/analyzeResult/readResults/0/lines/7/words/1"]}, "FirstQuantity": {"type": + "string", "valueString": "1", "text": "1", "page": 1, "boundingBox": [3.2600000000000002, + 3.21, 3.3200000000000003, 3.21, 3.3200000000000003, 3.3200000000000003, 3.2600000000000002, + 3.3200000000000003], "confidence": 1.0, "elements": ["#/analyzeResult/readResults/0/lines/14/words/0"]}, + "Customer2": {"type": "string", "valueString": "Frodo Baggins", "text": "Frodo + Baggins", "page": 3, "boundingBox": [6.015000000000001, 1.45, 6.95, 1.45, + 6.95, 1.595, 6.015000000000001, 1.595], "confidence": 1.0, "elements": ["#/analyzeResult/readResults/2/lines/3/words/0", + "#/analyzeResult/readResults/2/lines/3/words/1"]}, "CustomerName": {"type": + "string", "valueString": "Bilbo Baggins", "text": "Bilbo Baggins", "page": + 1, "boundingBox": [6.015000000000001, 1.45, 6.8950000000000005, 1.45, 6.8950000000000005, + 1.595, 6.015000000000001, 1.595], "confidence": 1.0, "elements": ["#/analyzeResult/readResults/0/lines/3/words/0", + "#/analyzeResult/readResults/0/lines/3/words/1"]}, "Signature": {"type": "string", + "valueString": "Bilbo Baggins", "text": "Bilbo Baggins", "page": 1, "boundingBox": + [2.05, 6.655, 3.04, 6.655, 3.04, 6.8, 2.05, 6.8], "confidence": 1.0, "elements": + ["#/analyzeResult/readResults/0/lines/38/words/1", "#/analyzeResult/readResults/0/lines/38/words/2"]}, + "CustomerPhoneNumber": {"type": "string", "valueString": "555-555-5555", "text": + "555-555-5555", "page": 1, "boundingBox": [6.01, 2.12, 6.9350000000000005, + 2.12, 6.9350000000000005, 2.225, 6.01, 2.225], "confidence": 1.0, "elements": + ["#/analyzeResult/readResults/0/lines/8/words/0"]}, "Tip": {"type": "string", + "valueString": "100.00", "text": "100.00", "page": 1, "boundingBox": [5.8100000000000005, + 5.345, 6.26, 5.345, 6.26, 5.455, 5.8100000000000005, 5.455], "confidence": + 1.0, "elements": ["#/analyzeResult/readResults/0/lines/36/words/1"]}, "FirstPrice": + {"type": "string", "valueString": "10.99", "text": "10.99", "page": 1, "boundingBox": + [5.425, 3.21, 5.78, 3.21, 5.78, 3.3200000000000003, 5.425, 3.3200000000000003], + "confidence": 1.0, "elements": ["#/analyzeResult/readResults/0/lines/15/words/0"]}, + "MerchantPhoneNumber": {"type": "string", "valueString": "555-555-5555", "text": + "555-555-5555", "page": 1, "boundingBox": [0.885, 2.29, 1.81, 2.29, 1.81, + 2.395, 0.885, 2.395], "confidence": 1.0, "elements": ["#/analyzeResult/readResults/0/lines/9/words/0"]}, + "Tax": {"type": "string", "valueString": "30.00", "text": "30.00", "page": + 1, "boundingBox": [5.835, 5.125, 6.2, 5.125, 6.2, 5.235, 5.835, 5.235], "confidence": + 1.0, "elements": ["#/analyzeResult/readResults/0/lines/35/words/1"]}, "Merchant2": + {"type": "string", "valueString": "Company", "text": "Company", "page": 1, + "boundingBox": [0.885, 1.125, 1.62, 1.125, 1.62, 1.28, 0.885, 1.28], "confidence": + 1.0, "elements": ["#/analyzeResult/readResults/0/lines/0/words/0"]}}}], "errors": + []}}' headers: - apim-request-id: ebce8b0b-4510-401f-a25d-c63ba785a5e7 + apim-request-id: ffd0715b-3270-4f2c-b84d-76be945f9dc1 content-length: '32675' content-type: application/json; charset=utf-8 - date: Thu, 11 Jun 2020 15:44:24 GMT + date: Fri, 10 Jul 2020 18:50:47 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload x-content-type-options: nosniff - x-envoy-upstream-service-time: '26' + x-envoy-upstream-service-time: '53' status: code: 200 message: OK - url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/a96d21e5-da1c-4346-8a5d-8ba59b257c10/analyzeresults/0e547f8b-0fce-4e61-ae1d-b84427d9bb1e + url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/8eb31681-0af3-449d-9214-38a249546b3f/analyzeresults/a808e68f-fefd-43c8-916c-2e9a3d472d4a version: 1 diff --git a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_custom_forms_async.test_custom_forms_multipage_unlabeled_transform.yaml b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_custom_forms_async.test_custom_forms_multipage_unlabeled_transform.yaml index 5c460b456f06..0dbb19315bb6 100644 --- a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_custom_forms_async.test_custom_forms_multipage_unlabeled_transform.yaml +++ b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_custom_forms_async.test_custom_forms_multipage_unlabeled_transform.yaml @@ -8,113 +8,84 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) method: POST - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models response: body: string: '' headers: - apim-request-id: a94dfa41-68ff-4882-8cb6-77b109149c5e + apim-request-id: 9003433f-dcfc-43ed-ac8f-710c6aa30c6b content-length: '0' - date: Thu, 11 Jun 2020 15:44:24 GMT - location: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/074e0951-d8b8-4eac-9386-a3db3d488aa0 + date: Fri, 10 Jul 2020 18:50:53 GMT + location: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/47f5bb1d-265c-462a-a9df-88bf831af637 strict-transport-security: max-age=31536000; includeSubDomains; preload x-content-type-options: nosniff - x-envoy-upstream-service-time: '64' + x-envoy-upstream-service-time: '5233' status: code: 201 message: Created - url: https://centraluseuap.api.cognitive.microsoft.com//formrecognizer/v2.0-preview/custom/models + url: https://centraluseuap.api.cognitive.microsoft.com//formrecognizer/v2.0/custom/models - request: body: null headers: User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/074e0951-d8b8-4eac-9386-a3db3d488aa0?includeKeys=true + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/47f5bb1d-265c-462a-a9df-88bf831af637?includeKeys=true response: body: - string: '{"modelInfo": {"modelId": "074e0951-d8b8-4eac-9386-a3db3d488aa0", "status": - "creating", "createdDateTime": "2020-06-11T15:44:25Z", "lastUpdatedDateTime": - "2020-06-11T15:44:25Z"}}' + string: '{"modelInfo": {"modelId": "47f5bb1d-265c-462a-a9df-88bf831af637", "status": + "creating", "createdDateTime": "2020-07-10T18:50:53Z", "lastUpdatedDateTime": + "2020-07-10T18:50:53Z"}}' headers: - apim-request-id: 653ac8ab-3554-45df-b393-7af1f0b25ea7 + apim-request-id: 7b55d044-412b-49d9-9952-59c117b28b06 content-type: application/json; charset=utf-8 - date: Thu, 11 Jun 2020 15:44:30 GMT + date: Fri, 10 Jul 2020 18:50:59 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '19' - status: - code: 200 - message: OK - url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/074e0951-d8b8-4eac-9386-a3db3d488aa0?includeKeys=true -- request: - body: null - headers: - User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) - method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/074e0951-d8b8-4eac-9386-a3db3d488aa0?includeKeys=true - response: - body: - string: '{"modelInfo": {"modelId": "074e0951-d8b8-4eac-9386-a3db3d488aa0", "status": - "creating", "createdDateTime": "2020-06-11T15:44:25Z", "lastUpdatedDateTime": - "2020-06-11T15:44:25Z"}}' - headers: - apim-request-id: 63db951e-9db2-4ac3-a9e1-45d124a41d24 - content-type: application/json; charset=utf-8 - date: Thu, 11 Jun 2020 15:44:35 GMT - strict-transport-security: max-age=31536000; includeSubDomains; preload - transfer-encoding: chunked - x-content-type-options: nosniff - x-envoy-upstream-service-time: '19' + x-envoy-upstream-service-time: '48' status: code: 200 message: OK - url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/074e0951-d8b8-4eac-9386-a3db3d488aa0?includeKeys=true + url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/47f5bb1d-265c-462a-a9df-88bf831af637?includeKeys=true - request: body: null headers: User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/074e0951-d8b8-4eac-9386-a3db3d488aa0?includeKeys=true + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/47f5bb1d-265c-462a-a9df-88bf831af637?includeKeys=true response: body: - string: '{"modelInfo": {"modelId": "074e0951-d8b8-4eac-9386-a3db3d488aa0", "status": - "creating", "createdDateTime": "2020-06-11T15:44:25Z", "lastUpdatedDateTime": - "2020-06-11T15:44:25Z"}}' + string: '{"modelInfo": {"modelId": "47f5bb1d-265c-462a-a9df-88bf831af637", "status": + "creating", "createdDateTime": "2020-07-10T18:50:53Z", "lastUpdatedDateTime": + "2020-07-10T18:50:53Z"}}' headers: - apim-request-id: 85d6334b-6fed-4ce6-b55b-5de3fcf1fce6 + apim-request-id: 84f74e21-f615-49df-9703-11ad17f904cf content-type: application/json; charset=utf-8 - date: Thu, 11 Jun 2020 15:44:40 GMT + date: Fri, 10 Jul 2020 18:51:04 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '16' + x-envoy-upstream-service-time: '20' status: code: 200 message: OK - url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/074e0951-d8b8-4eac-9386-a3db3d488aa0?includeKeys=true + url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/47f5bb1d-265c-462a-a9df-88bf831af637?includeKeys=true - request: body: null headers: User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/074e0951-d8b8-4eac-9386-a3db3d488aa0?includeKeys=true + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/47f5bb1d-265c-462a-a9df-88bf831af637?includeKeys=true response: body: - string: '{"modelInfo": {"modelId": "074e0951-d8b8-4eac-9386-a3db3d488aa0", "status": - "ready", "createdDateTime": "2020-06-11T15:44:25Z", "lastUpdatedDateTime": - "2020-06-11T15:44:40Z"}, "keys": {"clusters": {"0": ["Address:", "Invoice + string: '{"modelInfo": {"modelId": "47f5bb1d-265c-462a-a9df-88bf831af637", "status": + "ready", "createdDateTime": "2020-07-10T18:50:53Z", "lastUpdatedDateTime": + "2020-07-10T18:51:07Z"}, "keys": {"clusters": {"0": ["Address:", "Invoice For:", "Item", "Price", "Quantity", "Redmond, WA", "Signature:", "Subtotal:", "Tax:", "Tip:", "Total:"]}}, "trainResult": {"trainingDocuments": [{"documentName": "multipage_invoice1.pdf", "pages": 3, "errors": [], "status": "succeeded"}, @@ -124,9 +95,9 @@ interactions: 3, "errors": [], "status": "succeeded"}, {"documentName": "multipage_invoice5.pdf", "pages": 3, "errors": [], "status": "succeeded"}], "errors": []}}' headers: - apim-request-id: d7cd4a59-bb61-42a9-b781-7e7347b6b57f + apim-request-id: 549a1ac2-cbc1-4936-8ef0-4e411074e7f9 content-type: application/json; charset=utf-8 - date: Thu, 11 Jun 2020 15:44:45 GMT + date: Fri, 10 Jul 2020 18:51:09 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff @@ -134,7 +105,7 @@ interactions: status: code: 200 message: OK - url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/074e0951-d8b8-4eac-9386-a3db3d488aa0?includeKeys=true + url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/47f5bb1d-265c-462a-a9df-88bf831af637?includeKeys=true - request: body: !!binary | JVBERi0xLjcNCiW1tbW1DQoxIDAgb2JqDQo8PC9UeXBlL0NhdGFsb2cvUGFnZXMgMiAwIFIvTGFu @@ -2053,61 +2024,58 @@ interactions: Content-Type: - application/pdf User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) method: POST - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/074e0951-d8b8-4eac-9386-a3db3d488aa0/analyze?includeTextDetails=true + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/47f5bb1d-265c-462a-a9df-88bf831af637/analyze?includeTextDetails=true response: body: string: '' headers: - apim-request-id: 0d28221d-2c15-481b-9341-c240d5b78c9b + apim-request-id: 1eb76018-7df2-4a57-803b-4345c353ae9e content-length: '0' - date: Thu, 11 Jun 2020 15:44:46 GMT - operation-location: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/074e0951-d8b8-4eac-9386-a3db3d488aa0/analyzeresults/6772d517-87d6-4b12-8e86-68e0b7c9e79b + date: Fri, 10 Jul 2020 18:51:09 GMT + operation-location: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/47f5bb1d-265c-462a-a9df-88bf831af637/analyzeresults/a1a52c6f-d782-4cd1-b663-4f599cf03776 strict-transport-security: max-age=31536000; includeSubDomains; preload x-content-type-options: nosniff - x-envoy-upstream-service-time: '89' + x-envoy-upstream-service-time: '159' status: code: 202 message: Accepted - url: https://centraluseuap.api.cognitive.microsoft.com//formrecognizer/v2.0-preview/custom/models/074e0951-d8b8-4eac-9386-a3db3d488aa0/analyze?includeTextDetails=true + url: https://centraluseuap.api.cognitive.microsoft.com//formrecognizer/v2.0/custom/models/47f5bb1d-265c-462a-a9df-88bf831af637/analyze?includeTextDetails=true - request: body: null headers: User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/074e0951-d8b8-4eac-9386-a3db3d488aa0/analyzeresults/6772d517-87d6-4b12-8e86-68e0b7c9e79b + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/47f5bb1d-265c-462a-a9df-88bf831af637/analyzeresults/a1a52c6f-d782-4cd1-b663-4f599cf03776 response: body: - string: '{"status": "running", "createdDateTime": "2020-06-11T15:44:46Z", "lastUpdatedDateTime": - "2020-06-11T15:44:48Z", "analyzeResult": null}' + string: '{"status": "running", "createdDateTime": "2020-07-10T18:51:09Z", "lastUpdatedDateTime": + "2020-07-10T18:51:11Z", "analyzeResult": null}' headers: - apim-request-id: 675ad324-e539-4175-8953-bd47b26b11fe + apim-request-id: 3aec667b-26bf-4bfe-bf13-d76fd4ddbd56 content-length: '134' content-type: application/json; charset=utf-8 - date: Thu, 11 Jun 2020 15:44:50 GMT + date: Fri, 10 Jul 2020 18:51:14 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload x-content-type-options: nosniff - x-envoy-upstream-service-time: '50' + x-envoy-upstream-service-time: '19' status: code: 200 message: OK - url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/074e0951-d8b8-4eac-9386-a3db3d488aa0/analyzeresults/6772d517-87d6-4b12-8e86-68e0b7c9e79b + url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/47f5bb1d-265c-462a-a9df-88bf831af637/analyzeresults/a1a52c6f-d782-4cd1-b663-4f599cf03776 - request: body: null headers: User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/074e0951-d8b8-4eac-9386-a3db3d488aa0/analyzeresults/6772d517-87d6-4b12-8e86-68e0b7c9e79b + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/47f5bb1d-265c-462a-a9df-88bf831af637/analyzeresults/a1a52c6f-d782-4cd1-b663-4f599cf03776 response: body: - string: '{"status": "succeeded", "createdDateTime": "2020-06-11T15:44:46Z", - "lastUpdatedDateTime": "2020-06-11T15:44:55Z", "analyzeResult": {"version": + string: '{"status": "succeeded", "createdDateTime": "2020-07-10T18:51:09Z", + "lastUpdatedDateTime": "2020-07-10T18:51:16Z", "analyzeResult": {"version": "2.0.0", "readResults": [{"page": 1, "angle": 0, "width": 8.5, "height": 11.0, "unit": "inch", "lines": [{"text": "Company A Invoice", "boundingBox": [0.8764, 1.1014, 2.3875, 1.1014, 2.3875, 1.2958, 0.8764, 1.2958], "words": [{"text": @@ -2620,15 +2588,15 @@ interactions: "isHeader": false, "isFooter": false}]}], "clusterId": 0}], "documentResults": [], "errors": []}}' headers: - apim-request-id: 7995dc47-338d-41b3-9d4f-c832c9fd97ab + apim-request-id: 290cd364-5777-4c48-bc06-2eb224ac78c1 content-length: '42016' content-type: application/json; charset=utf-8 - date: Thu, 11 Jun 2020 15:44:56 GMT + date: Fri, 10 Jul 2020 18:51:19 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload x-content-type-options: nosniff - x-envoy-upstream-service-time: '26' + x-envoy-upstream-service-time: '27' status: code: 200 message: OK - url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/074e0951-d8b8-4eac-9386-a3db3d488aa0/analyzeresults/6772d517-87d6-4b12-8e86-68e0b7c9e79b + url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/47f5bb1d-265c-462a-a9df-88bf831af637/analyzeresults/a1a52c6f-d782-4cd1-b663-4f599cf03776 version: 1 diff --git a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_custom_forms_async.test_form_labeled_transform.yaml b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_custom_forms_async.test_form_labeled_transform.yaml index 9d0c35749f11..fa90c39b2c1c 100644 --- a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_custom_forms_async.test_form_labeled_transform.yaml +++ b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_custom_forms_async.test_form_labeled_transform.yaml @@ -8,38 +8,36 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) method: POST - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models response: body: string: '' headers: - apim-request-id: a39a743d-2d1e-442e-8be5-ce8a633ec9f1 + apim-request-id: 3f62c2bd-c479-403f-bcb3-5e57a62b0053 content-length: '0' - date: Thu, 11 Jun 2020 15:41:16 GMT - location: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/3d397d64-e2ef-4282-9ee7-016cc6f52388 + date: Fri, 10 Jul 2020 18:51:19 GMT + location: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/4408815d-b870-4b15-86b0-fb1ea69f9853 strict-transport-security: max-age=31536000; includeSubDomains; preload x-content-type-options: nosniff - x-envoy-upstream-service-time: '266' + x-envoy-upstream-service-time: '91' status: code: 201 message: Created - url: https://centraluseuap.api.cognitive.microsoft.com//formrecognizer/v2.0-preview/custom/models + url: https://centraluseuap.api.cognitive.microsoft.com//formrecognizer/v2.0/custom/models - request: body: null headers: User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/3d397d64-e2ef-4282-9ee7-016cc6f52388?includeKeys=true + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/4408815d-b870-4b15-86b0-fb1ea69f9853?includeKeys=true response: body: - string: '{"modelInfo": {"modelId": "3d397d64-e2ef-4282-9ee7-016cc6f52388", "status": - "ready", "createdDateTime": "2020-06-11T15:41:16Z", "lastUpdatedDateTime": - "2020-06-11T15:41:20Z"}, "trainResult": {"averageModelAccuracy": 0.973, "trainingDocuments": + string: '{"modelInfo": {"modelId": "4408815d-b870-4b15-86b0-fb1ea69f9853", "status": + "ready", "createdDateTime": "2020-07-10T18:51:20Z", "lastUpdatedDateTime": + "2020-07-10T18:51:22Z"}, "trainResult": {"averageModelAccuracy": 0.973, "trainingDocuments": [{"documentName": "Form_1.jpg", "pages": 1, "status": "succeeded"}, {"documentName": "Form_2.jpg", "pages": 1, "status": "succeeded"}, {"documentName": "Form_3.jpg", "pages": 1, "status": "succeeded"}, {"documentName": "Form_4.jpg", "pages": @@ -55,17 +53,17 @@ interactions: "VendorName", "accuracy": 1.0}, {"fieldName": "Website", "accuracy": 1.0}], "errors": []}}' headers: - apim-request-id: f325850c-c30c-4f6a-a3f2-d66e3c51eb39 + apim-request-id: 459ea57e-a586-4857-86ca-851c4e895304 content-type: application/json; charset=utf-8 - date: Thu, 11 Jun 2020 15:41:21 GMT + date: Fri, 10 Jul 2020 18:51:25 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '121' + x-envoy-upstream-service-time: '51' status: code: 200 message: OK - url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/3d397d64-e2ef-4282-9ee7-016cc6f52388?includeKeys=true + url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/4408815d-b870-4b15-86b0-fb1ea69f9853?includeKeys=true - request: body: !!binary | /9j/4AAQSkZJRgABAQEAyADIAAD/4QBmRXhpZgAATU0AKgAAAAgABAEaAAUAAAABAAAAPgEbAAUA @@ -8481,61 +8479,58 @@ interactions: Content-Type: - image/jpeg User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) method: POST - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/3d397d64-e2ef-4282-9ee7-016cc6f52388/analyze?includeTextDetails=true + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/4408815d-b870-4b15-86b0-fb1ea69f9853/analyze?includeTextDetails=true response: body: string: '' headers: - apim-request-id: c73666ec-90d5-41b9-9a51-7e18ec724f9a + apim-request-id: d5c4fba2-d670-4a35-9a9f-5df3d152e065 content-length: '0' - date: Thu, 11 Jun 2020 15:41:24 GMT - operation-location: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/3d397d64-e2ef-4282-9ee7-016cc6f52388/analyzeresults/f3211093-1b9b-4c61-b910-6cca21590b18 + date: Fri, 10 Jul 2020 18:51:31 GMT + operation-location: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/4408815d-b870-4b15-86b0-fb1ea69f9853/analyzeresults/2d4ae765-a709-452c-8217-526c9610e77b strict-transport-security: max-age=31536000; includeSubDomains; preload x-content-type-options: nosniff - x-envoy-upstream-service-time: '481' + x-envoy-upstream-service-time: '5226' status: code: 202 message: Accepted - url: https://centraluseuap.api.cognitive.microsoft.com//formrecognizer/v2.0-preview/custom/models/3d397d64-e2ef-4282-9ee7-016cc6f52388/analyze?includeTextDetails=true + url: https://centraluseuap.api.cognitive.microsoft.com//formrecognizer/v2.0/custom/models/4408815d-b870-4b15-86b0-fb1ea69f9853/analyze?includeTextDetails=true - request: body: null headers: User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/3d397d64-e2ef-4282-9ee7-016cc6f52388/analyzeresults/f3211093-1b9b-4c61-b910-6cca21590b18 + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/4408815d-b870-4b15-86b0-fb1ea69f9853/analyzeresults/2d4ae765-a709-452c-8217-526c9610e77b response: body: - string: '{"status": "notStarted", "createdDateTime": "2020-06-11T15:41:24Z", - "lastUpdatedDateTime": "2020-06-11T15:41:25Z"}' + string: '{"status": "notStarted", "createdDateTime": "2020-07-10T18:51:32Z", + "lastUpdatedDateTime": "2020-07-10T18:51:32Z"}' headers: - apim-request-id: 39598374-9c30-4987-a5b1-46e432149918 + apim-request-id: 415200cc-4123-4c23-8cc1-14b439ae5ff9 content-length: '109' content-type: application/json; charset=utf-8 - date: Thu, 11 Jun 2020 15:41:29 GMT + date: Fri, 10 Jul 2020 18:51:37 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload x-content-type-options: nosniff - x-envoy-upstream-service-time: '63' + x-envoy-upstream-service-time: '32' status: code: 200 message: OK - url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/3d397d64-e2ef-4282-9ee7-016cc6f52388/analyzeresults/f3211093-1b9b-4c61-b910-6cca21590b18 + url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/4408815d-b870-4b15-86b0-fb1ea69f9853/analyzeresults/2d4ae765-a709-452c-8217-526c9610e77b - request: body: null headers: User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/3d397d64-e2ef-4282-9ee7-016cc6f52388/analyzeresults/f3211093-1b9b-4c61-b910-6cca21590b18 + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/4408815d-b870-4b15-86b0-fb1ea69f9853/analyzeresults/2d4ae765-a709-452c-8217-526c9610e77b response: body: - string: '{"status": "succeeded", "createdDateTime": "2020-06-11T15:41:24Z", - "lastUpdatedDateTime": "2020-06-11T15:41:34Z", "analyzeResult": {"version": + string: '{"status": "succeeded", "createdDateTime": "2020-07-10T18:51:32Z", + "lastUpdatedDateTime": "2020-07-10T18:51:42Z", "analyzeResult": {"version": "2.0.0", "readResults": [{"page": 1, "language": "en", "angle": 0, "width": 1700, "height": 2200, "unit": "pixel", "lines": [{"boundingBox": [137, 140, 351, 140, 351, 167, 137, 166], "text": "Purchase Order", "words": [{"boundingBox": @@ -8840,69 +8835,70 @@ interactions: {"rowIndex": 4, "columnIndex": 3, "text": "100.00", "boundingBox": [1309, 1216, 1544, 1216, 1544, 1260, 1309, 1260], "elements": ["#/readResults/0/lines/40/words/0"]}]}]}], "documentResults": [{"docType": "custom:form", "pageRange": [1, 1], "fields": - {"Signature": {"type": "string", "valueString": "Bernie Sanders", "text": - "Bernie Sanders", "page": 1, "boundingBox": [482.0, 1670.0, 764.0, 1670.0, - 764.0, 1709.0, 482.0, 1709.0], "confidence": 1.0, "elements": ["#/analyzeResult/readResults/0/lines/45/words/0", - "#/analyzeResult/readResults/0/lines/45/words/1"]}, "Merchant": {"type": "string", - "valueString": "Hero Limited", "text": "Hero Limited", "page": 1, "boundingBox": - [621.0, 202.0, 1075.0, 202.0, 1075.0, 266.0, 621.0, 266.0], "confidence": - 1.0, "elements": ["#/analyzeResult/readResults/0/lines/1/words/0", "#/analyzeResult/readResults/0/lines/1/words/1"]}, + {"CompanyName": {"type": "string", "valueString": "Higgly Wiggly Books", "text": + "Higgly Wiggly Books", "page": 1, "boundingBox": [378.0, 646.0, 629.0, 646.0, + 629.0, 682.0, 378.0, 682.0], "confidence": 1.0, "elements": ["#/analyzeResult/readResults/0/lines/11/words/2", + "#/analyzeResult/readResults/0/lines/11/words/3", "#/analyzeResult/readResults/0/lines/11/words/4"]}, + "VendorName": {"type": "string", "valueString": "Hillary Swank", "text": "Hillary + Swank", "page": 1, "boundingBox": [351.0, 609.0, 518.0, 609.0, 518.0, 641.0, + 351.0, 641.0], "confidence": 1.0, "elements": ["#/analyzeResult/readResults/0/lines/10/words/2", + "#/analyzeResult/readResults/0/lines/10/words/3"]}, "PurchaseOrderNumber": + {"type": "string", "valueString": "948284", "text": "948284", "page": 1, "boundingBox": + [1282.0, 461.0, 1377.0, 461.0, 1377.0, 489.0, 1282.0, 489.0], "confidence": + 1.0, "elements": ["#/analyzeResult/readResults/0/lines/8/words/3"]}, "DatedAs": + {"type": "string", "valueString": "12/20/2020", "text": "12/20/2020", "page": + 1, "boundingBox": [1168.0, 420.0, 1317.0, 420.0, 1317.0, 450.0, 1168.0, 450.0], + "confidence": 1.0, "elements": ["#/analyzeResult/readResults/0/lines/6/words/2"]}, "Tax": {"type": "string", "valueString": "$4.00", "text": "$4.00", "page": 1, "boundingBox": [1461.0, 1614.0, 1530.0, 1614.0, 1530.0, 1642.0, 1461.0, 1642.0], "confidence": 1.0, "elements": ["#/analyzeResult/readResults/0/lines/44/words/0"]}, - "PurchaseOrderNumber": {"type": "string", "valueString": "948284", "text": - "948284", "page": 1, "boundingBox": [1282.0, 461.0, 1377.0, 461.0, 1377.0, - 489.0, 1282.0, 489.0], "confidence": 1.0, "elements": ["#/analyzeResult/readResults/0/lines/8/words/3"]}, + "Subtotal": {"type": "string", "valueString": "$140.00", "text": "$140.00", + "page": 1, "boundingBox": [1429.0, 1570.0, 1530.0, 1570.0, 1530.0, 1599.0, + 1429.0, 1599.0], "confidence": 1.0, "elements": ["#/analyzeResult/readResults/0/lines/42/words/0"]}, + "Quantity": {"type": "number", "text": "20", "page": 1, "boundingBox": [861.0, + 1089.0, 895.0, 1089.0, 895.0, 1120.0, 861.0, 1120.0], "confidence": 1.0, "elements": + ["#/analyzeResult/readResults/0/lines/26/words/0"]}, "CompanyPhoneNumber": + {"type": "string", "valueString": "938-294-2949", "text": "938-294-2949", + "page": 1, "boundingBox": [713.0, 722.0, 884.0, 722.0, 884.0, 750.0, 713.0, + 750.0], "confidence": 1.0, "elements": ["#/analyzeResult/readResults/0/lines/14/words/1"]}, + "Total": {"type": "string", "valueString": "$144.00", "text": "$144.00", "page": + 1, "boundingBox": [1429.0, 1669.0, 1530.0, 1669.0, 1530.0, 1697.0, 1429.0, + 1697.0], "confidence": 1.0, "elements": ["#/analyzeResult/readResults/0/lines/47/words/0"]}, "Website": {"type": "string", "valueString": "www.herolimited.com", "text": "www.herolimited.com", "page": 1, "boundingBox": [274.0, 393.0, 529.0, 393.0, 529.0, 419.0, 274.0, 419.0], "confidence": 1.0, "elements": ["#/analyzeResult/readResults/0/lines/4/words/1"]}, - "Quantity": {"type": "number", "text": "20", "page": 1, "boundingBox": [861.0, - 1089.0, 895.0, 1089.0, 895.0, 1120.0, 861.0, 1120.0], "confidence": 1.0, "elements": - ["#/analyzeResult/readResults/0/lines/26/words/0"]}, "CompanyAddress": {"type": + "Merchant": {"type": "string", "valueString": "Hero Limited", "text": "Hero + Limited", "page": 1, "boundingBox": [621.0, 202.0, 1075.0, 202.0, 1075.0, + 266.0, 621.0, 266.0], "confidence": 1.0, "elements": ["#/analyzeResult/readResults/0/lines/1/words/0", + "#/analyzeResult/readResults/0/lines/1/words/1"]}, "PhoneNumber": {"type": + "string", "valueString": "555-348-6512", "text": "555-348-6512", "page": 1, + "boundingBox": [367.0, 351.0, 529.0, 351.0, 529.0, 378.0, 367.0, 378.0], "confidence": + 1.0, "elements": ["#/analyzeResult/readResults/0/lines/2/words/2"]}, "Email": + {"type": "string", "valueString": "accounts@herolimited.com", "text": "accounts@herolimited.com", + "page": 1, "boundingBox": [166.0, 480.0, 475.0, 480.0, 475.0, 503.0, 166.0, + 503.0], "confidence": 1.0, "elements": ["#/analyzeResult/readResults/0/lines/7/words/0"]}, + "Signature": {"type": "string", "valueString": "Bernie Sanders", "text": "Bernie + Sanders", "page": 1, "boundingBox": [482.0, 1670.0, 764.0, 1670.0, 764.0, + 1709.0, 482.0, 1709.0], "confidence": 1.0, "elements": ["#/analyzeResult/readResults/0/lines/45/words/0", + "#/analyzeResult/readResults/0/lines/45/words/1"]}, "CompanyAddress": {"type": "string", "valueString": "938 NE Burner Road Boulder City, CO 92848", "text": "938 NE Burner Road Boulder City, CO 92848", "page": 1, "boundingBox": [277.0, 685.0, 568.0, 685.0, 568.0, 754.0, 277.0, 754.0], "confidence": 1.0, "elements": ["#/analyzeResult/readResults/0/lines/12/words/1", "#/analyzeResult/readResults/0/lines/12/words/2", "#/analyzeResult/readResults/0/lines/12/words/3", "#/analyzeResult/readResults/0/lines/12/words/4", "#/analyzeResult/readResults/0/lines/13/words/0", "#/analyzeResult/readResults/0/lines/13/words/1", - "#/analyzeResult/readResults/0/lines/13/words/2", "#/analyzeResult/readResults/0/lines/13/words/3"]}, - "PhoneNumber": {"type": "string", "valueString": "555-348-6512", "text": "555-348-6512", - "page": 1, "boundingBox": [367.0, 351.0, 529.0, 351.0, 529.0, 378.0, 367.0, - 378.0], "confidence": 1.0, "elements": ["#/analyzeResult/readResults/0/lines/2/words/2"]}, - "Subtotal": {"type": "string", "valueString": "$140.00", "text": "$140.00", - "page": 1, "boundingBox": [1429.0, 1570.0, 1530.0, 1570.0, 1530.0, 1599.0, - 1429.0, 1599.0], "confidence": 1.0, "elements": ["#/analyzeResult/readResults/0/lines/42/words/0"]}, - "DatedAs": {"type": "string", "valueString": "12/20/2020", "text": "12/20/2020", - "page": 1, "boundingBox": [1168.0, 420.0, 1317.0, 420.0, 1317.0, 450.0, 1168.0, - 450.0], "confidence": 1.0, "elements": ["#/analyzeResult/readResults/0/lines/6/words/2"]}, - "Email": {"type": "string", "valueString": "accounts@herolimited.com", "text": - "accounts@herolimited.com", "page": 1, "boundingBox": [166.0, 480.0, 475.0, - 480.0, 475.0, 503.0, 166.0, 503.0], "confidence": 1.0, "elements": ["#/analyzeResult/readResults/0/lines/7/words/0"]}, - "VendorName": {"type": "string", "valueString": "Hillary Swank", "text": "Hillary - Swank", "page": 1, "boundingBox": [351.0, 609.0, 518.0, 609.0, 518.0, 641.0, - 351.0, 641.0], "confidence": 1.0, "elements": ["#/analyzeResult/readResults/0/lines/10/words/2", - "#/analyzeResult/readResults/0/lines/10/words/3"]}, "CompanyPhoneNumber": - {"type": "string", "valueString": "938-294-2949", "text": "938-294-2949", - "page": 1, "boundingBox": [713.0, 722.0, 884.0, 722.0, 884.0, 750.0, 713.0, - 750.0], "confidence": 1.0, "elements": ["#/analyzeResult/readResults/0/lines/14/words/1"]}, - "CompanyName": {"type": "string", "valueString": "Higgly Wiggly Books", "text": - "Higgly Wiggly Books", "page": 1, "boundingBox": [378.0, 646.0, 629.0, 646.0, - 629.0, 682.0, 378.0, 682.0], "confidence": 1.0, "elements": ["#/analyzeResult/readResults/0/lines/11/words/2", - "#/analyzeResult/readResults/0/lines/11/words/3", "#/analyzeResult/readResults/0/lines/11/words/4"]}, - "Total": {"type": "string", "valueString": "$144.00", "text": "$144.00", "page": - 1, "boundingBox": [1429.0, 1669.0, 1530.0, 1669.0, 1530.0, 1697.0, 1429.0, - 1697.0], "confidence": 1.0, "elements": ["#/analyzeResult/readResults/0/lines/47/words/0"]}}}], + "#/analyzeResult/readResults/0/lines/13/words/2", "#/analyzeResult/readResults/0/lines/13/words/3"]}}}], "errors": []}}' headers: - apim-request-id: 6075c042-3f51-4993-9ac9-11df10a2dd59 + apim-request-id: dcd8da14-4d7e-4de7-8a2b-67c748edb973 content-length: '25282' content-type: application/json; charset=utf-8 - date: Thu, 11 Jun 2020 15:41:34 GMT + date: Fri, 10 Jul 2020 18:51:42 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload x-content-type-options: nosniff - x-envoy-upstream-service-time: '56' + x-envoy-upstream-service-time: '22' status: code: 200 message: OK - url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/3d397d64-e2ef-4282-9ee7-016cc6f52388/analyzeresults/f3211093-1b9b-4c61-b910-6cca21590b18 + url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/4408815d-b870-4b15-86b0-fb1ea69f9853/analyzeresults/2d4ae765-a709-452c-8217-526c9610e77b version: 1 diff --git a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_custom_forms_async.test_form_unlabeled_transform.yaml b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_custom_forms_async.test_form_unlabeled_transform.yaml index d86b9629bcde..9a6b6f4cf9f6 100644 --- a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_custom_forms_async.test_form_unlabeled_transform.yaml +++ b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_custom_forms_async.test_form_unlabeled_transform.yaml @@ -8,88 +8,84 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) method: POST - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models response: body: string: '' headers: - apim-request-id: 6e44a19f-1bb8-4d32-bf66-cc5514b8d9ac + apim-request-id: 8a47e31a-4228-4888-94f3-1c0ef4226150 content-length: '0' - date: Thu, 11 Jun 2020 15:41:35 GMT - location: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/2bd915b4-a497-4d00-8359-060f60bd3ffd + date: Fri, 10 Jul 2020 18:51:43 GMT + location: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/2ad5b44d-30ba-4deb-974e-f4fc138dd3c8 strict-transport-security: max-age=31536000; includeSubDomains; preload x-content-type-options: nosniff - x-envoy-upstream-service-time: '253' + x-envoy-upstream-service-time: '852' status: code: 201 message: Created - url: https://centraluseuap.api.cognitive.microsoft.com//formrecognizer/v2.0-preview/custom/models + url: https://centraluseuap.api.cognitive.microsoft.com//formrecognizer/v2.0/custom/models - request: body: null headers: User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/2bd915b4-a497-4d00-8359-060f60bd3ffd?includeKeys=true + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/2ad5b44d-30ba-4deb-974e-f4fc138dd3c8?includeKeys=true response: body: - string: '{"modelInfo": {"modelId": "2bd915b4-a497-4d00-8359-060f60bd3ffd", "status": - "creating", "createdDateTime": "2020-06-11T15:41:36Z", "lastUpdatedDateTime": - "2020-06-11T15:41:36Z"}}' + string: '{"modelInfo": {"modelId": "2ad5b44d-30ba-4deb-974e-f4fc138dd3c8", "status": + "creating", "createdDateTime": "2020-07-10T18:51:43Z", "lastUpdatedDateTime": + "2020-07-10T18:51:43Z"}}' headers: - apim-request-id: 2ac36615-3d67-479b-890c-5386531a155e + apim-request-id: 46c123da-b1fe-4fe9-9061-b8250f41381a content-type: application/json; charset=utf-8 - date: Thu, 11 Jun 2020 15:41:41 GMT + date: Fri, 10 Jul 2020 18:51:49 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '986' + x-envoy-upstream-service-time: '807' status: code: 200 message: OK - url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/2bd915b4-a497-4d00-8359-060f60bd3ffd?includeKeys=true + url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/2ad5b44d-30ba-4deb-974e-f4fc138dd3c8?includeKeys=true - request: body: null headers: User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/2bd915b4-a497-4d00-8359-060f60bd3ffd?includeKeys=true + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/2ad5b44d-30ba-4deb-974e-f4fc138dd3c8?includeKeys=true response: body: - string: '{"modelInfo": {"modelId": "2bd915b4-a497-4d00-8359-060f60bd3ffd", "status": - "creating", "createdDateTime": "2020-06-11T15:41:36Z", "lastUpdatedDateTime": - "2020-06-11T15:41:36Z"}}' + string: '{"modelInfo": {"modelId": "2ad5b44d-30ba-4deb-974e-f4fc138dd3c8", "status": + "creating", "createdDateTime": "2020-07-10T18:51:43Z", "lastUpdatedDateTime": + "2020-07-10T18:51:43Z"}}' headers: - apim-request-id: e6569194-e6db-408f-93dd-712b76fe336b + apim-request-id: 06011ecb-8db6-4380-b8b6-993f0533934c content-type: application/json; charset=utf-8 - date: Thu, 11 Jun 2020 15:41:46 GMT + date: Fri, 10 Jul 2020 18:51:54 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '58' + x-envoy-upstream-service-time: '48' status: code: 200 message: OK - url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/2bd915b4-a497-4d00-8359-060f60bd3ffd?includeKeys=true + url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/2ad5b44d-30ba-4deb-974e-f4fc138dd3c8?includeKeys=true - request: body: null headers: User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/2bd915b4-a497-4d00-8359-060f60bd3ffd?includeKeys=true + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/2ad5b44d-30ba-4deb-974e-f4fc138dd3c8?includeKeys=true response: body: - string: '{"modelInfo": {"modelId": "2bd915b4-a497-4d00-8359-060f60bd3ffd", "status": - "ready", "createdDateTime": "2020-06-11T15:41:36Z", "lastUpdatedDateTime": - "2020-06-11T15:41:47Z"}, "keys": {"clusters": {"0": ["Additional Notes:", + string: '{"modelInfo": {"modelId": "2ad5b44d-30ba-4deb-974e-f4fc138dd3c8", "status": + "ready", "createdDateTime": "2020-07-10T18:51:43Z", "lastUpdatedDateTime": + "2020-07-10T18:51:54Z"}, "keys": {"clusters": {"0": ["Additional Notes:", "Address:", "Company Name:", "Company Phone:", "Dated As:", "Details", "Email:", "Hero Limited", "Name:", "Phone:", "Purchase Order", "Purchase Order #:", "Quantity", "SUBTOTAL", "Seattle, WA 93849 Phone:", "Shipped From", "Shipped @@ -101,17 +97,17 @@ interactions: 1, "errors": [], "status": "succeeded"}, {"documentName": "Form_5.jpg", "pages": 1, "errors": [], "status": "succeeded"}], "errors": []}}' headers: - apim-request-id: 1bb9f731-9a43-470a-b9ee-a8fe87a6e67c + apim-request-id: bbbbb38f-1b60-4aea-ad22-be725e65a869 content-type: application/json; charset=utf-8 - date: Thu, 11 Jun 2020 15:41:52 GMT + date: Fri, 10 Jul 2020 18:51:59 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '20' + x-envoy-upstream-service-time: '22' status: code: 200 message: OK - url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/2bd915b4-a497-4d00-8359-060f60bd3ffd?includeKeys=true + url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/2ad5b44d-30ba-4deb-974e-f4fc138dd3c8?includeKeys=true - request: body: !!binary | /9j/4AAQSkZJRgABAQEAyADIAAD/4QBmRXhpZgAATU0AKgAAAAgABAEaAAUAAAABAAAAPgEbAAUA @@ -8527,61 +8523,58 @@ interactions: Content-Type: - image/jpeg User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) method: POST - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/2bd915b4-a497-4d00-8359-060f60bd3ffd/analyze?includeTextDetails=true + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/2ad5b44d-30ba-4deb-974e-f4fc138dd3c8/analyze?includeTextDetails=true response: body: string: '' headers: - apim-request-id: 427c9f93-315e-46a6-bc97-613c7e09b144 + apim-request-id: a9ea18f0-79a0-41ff-9ec7-de60910fba35 content-length: '0' - date: Thu, 11 Jun 2020 15:41:54 GMT - operation-location: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/2bd915b4-a497-4d00-8359-060f60bd3ffd/analyzeresults/ac89e0c9-8d36-46a5-84d2-5d95a28568a0 + date: Fri, 10 Jul 2020 18:52:02 GMT + operation-location: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/2ad5b44d-30ba-4deb-974e-f4fc138dd3c8/analyzeresults/66e2cba4-2e75-4c27-b894-32cd0beef28c strict-transport-security: max-age=31536000; includeSubDomains; preload x-content-type-options: nosniff - x-envoy-upstream-service-time: '944' + x-envoy-upstream-service-time: '1873' status: code: 202 message: Accepted - url: https://centraluseuap.api.cognitive.microsoft.com//formrecognizer/v2.0-preview/custom/models/2bd915b4-a497-4d00-8359-060f60bd3ffd/analyze?includeTextDetails=true + url: https://centraluseuap.api.cognitive.microsoft.com//formrecognizer/v2.0/custom/models/2ad5b44d-30ba-4deb-974e-f4fc138dd3c8/analyze?includeTextDetails=true - request: body: null headers: User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/2bd915b4-a497-4d00-8359-060f60bd3ffd/analyzeresults/ac89e0c9-8d36-46a5-84d2-5d95a28568a0 + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/2ad5b44d-30ba-4deb-974e-f4fc138dd3c8/analyzeresults/66e2cba4-2e75-4c27-b894-32cd0beef28c response: body: - string: '{"status": "running", "createdDateTime": "2020-06-11T15:41:55Z", "lastUpdatedDateTime": - "2020-06-11T15:41:56Z", "analyzeResult": null}' + string: '{"status": "running", "createdDateTime": "2020-07-10T18:52:01Z", "lastUpdatedDateTime": + "2020-07-10T18:52:05Z", "analyzeResult": null}' headers: - apim-request-id: 915f383a-2d6e-4289-935e-07247d151f07 + apim-request-id: 53c88577-e154-478b-b18e-2b531d0a3989 content-length: '134' content-type: application/json; charset=utf-8 - date: Thu, 11 Jun 2020 15:41:59 GMT + date: Fri, 10 Jul 2020 18:52:07 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload x-content-type-options: nosniff - x-envoy-upstream-service-time: '53' + x-envoy-upstream-service-time: '47' status: code: 200 message: OK - url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/2bd915b4-a497-4d00-8359-060f60bd3ffd/analyzeresults/ac89e0c9-8d36-46a5-84d2-5d95a28568a0 + url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/2ad5b44d-30ba-4deb-974e-f4fc138dd3c8/analyzeresults/66e2cba4-2e75-4c27-b894-32cd0beef28c - request: body: null headers: User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/2bd915b4-a497-4d00-8359-060f60bd3ffd/analyzeresults/ac89e0c9-8d36-46a5-84d2-5d95a28568a0 + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/2ad5b44d-30ba-4deb-974e-f4fc138dd3c8/analyzeresults/66e2cba4-2e75-4c27-b894-32cd0beef28c response: body: - string: '{"status": "succeeded", "createdDateTime": "2020-06-11T15:41:55Z", - "lastUpdatedDateTime": "2020-06-11T15:42:02Z", "analyzeResult": {"version": + string: '{"status": "succeeded", "createdDateTime": "2020-07-10T18:52:01Z", + "lastUpdatedDateTime": "2020-07-10T18:52:09Z", "analyzeResult": {"version": "2.0.0", "readResults": [{"page": 1, "angle": 0.16, "width": 1700, "height": 2200, "unit": "pixel", "lines": [{"text": "Purchase Order", "boundingBox": [141.0, 140.0, 348.0, 140.0, 348.0, 168.0, 141.0, 168.0], "words": [{"text": @@ -9033,15 +9026,15 @@ interactions: "isHeader": false, "isFooter": false}]}], "clusterId": 0}], "documentResults": [], "errors": []}}' headers: - apim-request-id: cf1df0b9-f0c1-414d-a9fe-cdeadf0bf12b + apim-request-id: 81866a1b-0f02-458b-b86e-1dd984485d83 content-length: '36450' content-type: application/json; charset=utf-8 - date: Thu, 11 Jun 2020 15:42:05 GMT + date: Fri, 10 Jul 2020 18:52:12 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload x-content-type-options: nosniff - x-envoy-upstream-service-time: '27' + x-envoy-upstream-service-time: '57' status: code: 200 message: OK - url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/2bd915b4-a497-4d00-8359-060f60bd3ffd/analyzeresults/ac89e0c9-8d36-46a5-84d2-5d95a28568a0 + url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/2ad5b44d-30ba-4deb-974e-f4fc138dd3c8/analyzeresults/66e2cba4-2e75-4c27-b894-32cd0beef28c version: 1 diff --git a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_custom_forms_from_url.test_custom_form_bad_url.yaml b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_custom_forms_from_url.test_custom_form_bad_url.yaml index 950ba765e8a2..76d44483b405 100644 --- a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_custom_forms_from_url.test_custom_form_bad_url.yaml +++ b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_custom_forms_from_url.test_custom_form_bad_url.yaml @@ -14,28 +14,27 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) method: POST - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models response: body: string: '' headers: apim-request-id: - - 84cdacc1-8047-471e-aaaa-f3848c58d2f9 + - c5464c55-e945-438b-a291-52051c8da3eb content-length: - '0' date: - - Thu, 11 Jun 2020 15:42:06 GMT + - Fri, 10 Jul 2020 18:52:13 GMT location: - - https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/8d6e54e6-179e-410e-8415-c8e2dc822050 + - https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/9a5641ef-0ae5-419a-9163-0d4f67ec038c strict-transport-security: - max-age=31536000; includeSubDomains; preload x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '758' + - '65' status: code: 201 message: Created @@ -49,15 +48,14 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/8d6e54e6-179e-410e-8415-c8e2dc822050?includeKeys=true + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/9a5641ef-0ae5-419a-9163-0d4f67ec038c?includeKeys=true response: body: - string: '{"modelInfo": {"modelId": "8d6e54e6-179e-410e-8415-c8e2dc822050", "status": - "ready", "createdDateTime": "2020-06-11T15:42:06Z", "lastUpdatedDateTime": - "2020-06-11T15:42:09Z"}, "trainResult": {"averageModelAccuracy": 0.973, "trainingDocuments": + string: '{"modelInfo": {"modelId": "9a5641ef-0ae5-419a-9163-0d4f67ec038c", "status": + "ready", "createdDateTime": "2020-07-10T18:52:13Z", "lastUpdatedDateTime": + "2020-07-10T18:52:16Z"}, "trainResult": {"averageModelAccuracy": 0.973, "trainingDocuments": [{"documentName": "Form_1.jpg", "pages": 1, "status": "succeeded"}, {"documentName": "Form_2.jpg", "pages": 1, "status": "succeeded"}, {"documentName": "Form_3.jpg", "pages": 1, "status": "succeeded"}, {"documentName": "Form_4.jpg", "pages": @@ -74,11 +72,11 @@ interactions: "errors": []}}' headers: apim-request-id: - - f97b4901-8684-4c86-b4a1-8da3ef2f02ee + - beae45d8-d6c5-4952-8409-77f93aea7971 content-type: - application/json; charset=utf-8 date: - - Thu, 11 Jun 2020 15:42:11 GMT + - Fri, 10 Jul 2020 18:52:26 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -86,7 +84,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '45' + - '7487' status: code: 200 message: OK @@ -104,28 +102,27 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) method: POST - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/8d6e54e6-179e-410e-8415-c8e2dc822050/analyze?includeTextDetails=false + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/9a5641ef-0ae5-419a-9163-0d4f67ec038c/analyze?includeTextDetails=false response: body: string: '' headers: apim-request-id: - - cbcb4a93-c03b-4e58-96f2-76fc9fbfc9b9 + - 9b1a842c-f87c-4355-9c60-751e04c883d8 content-length: - '0' date: - - Thu, 11 Jun 2020 15:42:12 GMT + - Fri, 10 Jul 2020 18:52:26 GMT operation-location: - - https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/8d6e54e6-179e-410e-8415-c8e2dc822050/analyzeresults/82607f88-911c-4d78-a569-85074007f340 + - https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/9a5641ef-0ae5-419a-9163-0d4f67ec038c/analyzeresults/847434eb-569c-41a1-b13c-fa9e0803c3d3 strict-transport-security: - max-age=31536000; includeSubDomains; preload x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '133' + - '86' status: code: 202 message: Accepted @@ -139,30 +136,29 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/8d6e54e6-179e-410e-8415-c8e2dc822050/analyzeresults/82607f88-911c-4d78-a569-85074007f340 + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/9a5641ef-0ae5-419a-9163-0d4f67ec038c/analyzeresults/847434eb-569c-41a1-b13c-fa9e0803c3d3 response: body: - string: '{"status": "failed", "createdDateTime": "2020-06-11T15:42:12Z", "lastUpdatedDateTime": - "2020-06-11T15:42:13Z", "analyzeResult": {"version": "2.0.0", "errors": [{"code": + string: '{"status": "failed", "createdDateTime": "2020-07-10T18:52:26Z", "lastUpdatedDateTime": + "2020-07-10T18:52:27Z", "analyzeResult": {"version": "2.0.0", "errors": [{"code": "3014", "message": "Generic error during prediction."}]}}' headers: apim-request-id: - - e4364efe-9185-498e-8b58-c9fea7684d3f + - 8537ee85-24f5-475f-b4a1-9876d4eb206e content-length: - '213' content-type: - application/json; charset=utf-8 date: - - Thu, 11 Jun 2020 15:42:18 GMT + - Fri, 10 Jul 2020 18:52:31 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '61' + - '20' x-ms-cs-error-code: - '3014' status: diff --git a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_custom_forms_from_url.test_custom_form_labeled.yaml b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_custom_forms_from_url.test_custom_form_labeled.yaml index 8928925048eb..eb08c87a60b1 100644 --- a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_custom_forms_from_url.test_custom_form_labeled.yaml +++ b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_custom_forms_from_url.test_custom_form_labeled.yaml @@ -14,28 +14,27 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) method: POST - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models response: body: string: '' headers: apim-request-id: - - 234eda4e-baca-43f0-a30f-8a9a3daaf37b + - afdc81e4-10c9-4cf5-8b70-f1c68335c04c content-length: - '0' date: - - Thu, 11 Jun 2020 15:43:38 GMT + - Fri, 10 Jul 2020 18:53:10 GMT location: - - https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/a590e86b-6e1a-4b0a-b44a-af604b8b206c + - https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/8c2dd996-1f46-4f18-bdff-4b216256e37a strict-transport-security: - max-age=31536000; includeSubDomains; preload x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '65' + - '69' status: code: 201 message: Created @@ -49,15 +48,14 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/a590e86b-6e1a-4b0a-b44a-af604b8b206c?includeKeys=true + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/8c2dd996-1f46-4f18-bdff-4b216256e37a?includeKeys=true response: body: - string: '{"modelInfo": {"modelId": "a590e86b-6e1a-4b0a-b44a-af604b8b206c", "status": - "ready", "createdDateTime": "2020-06-11T15:43:38Z", "lastUpdatedDateTime": - "2020-06-11T15:43:41Z"}, "trainResult": {"averageModelAccuracy": 0.973, "trainingDocuments": + string: '{"modelInfo": {"modelId": "8c2dd996-1f46-4f18-bdff-4b216256e37a", "status": + "ready", "createdDateTime": "2020-07-10T18:53:10Z", "lastUpdatedDateTime": + "2020-07-10T18:53:13Z"}, "trainResult": {"averageModelAccuracy": 0.973, "trainingDocuments": [{"documentName": "Form_1.jpg", "pages": 1, "status": "succeeded"}, {"documentName": "Form_2.jpg", "pages": 1, "status": "succeeded"}, {"documentName": "Form_3.jpg", "pages": 1, "status": "succeeded"}, {"documentName": "Form_4.jpg", "pages": @@ -74,11 +72,11 @@ interactions: "errors": []}}' headers: apim-request-id: - - 1d433aff-18c1-44f0-beca-19ba8f5e012f + - 5b263523-4e5b-4db4-9a6c-ee9ebad70598 content-type: - application/json; charset=utf-8 date: - - Thu, 11 Jun 2020 15:43:43 GMT + - Fri, 10 Jul 2020 18:53:15 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -86,7 +84,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '16' + - '53' status: code: 200 message: OK @@ -104,28 +102,27 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) method: POST - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/a590e86b-6e1a-4b0a-b44a-af604b8b206c/analyze?includeTextDetails=false + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/8c2dd996-1f46-4f18-bdff-4b216256e37a/analyze?includeTextDetails=false response: body: string: '' headers: apim-request-id: - - 49c5428f-84d5-4e5e-b61d-3f25f7700d55 + - 8dd2f056-cad5-47e9-8e4f-e8c1547e2a86 content-length: - '0' date: - - Thu, 11 Jun 2020 15:43:43 GMT + - Fri, 10 Jul 2020 18:53:16 GMT operation-location: - - https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/a590e86b-6e1a-4b0a-b44a-af604b8b206c/analyzeresults/82c9e2b5-933d-45ba-8527-aec6d2c4e116 + - https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/8c2dd996-1f46-4f18-bdff-4b216256e37a/analyzeresults/f5341507-316a-4e0f-b87e-998efca9dcc2 strict-transport-security: - max-age=31536000; includeSubDomains; preload x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '88' + - '55' status: code: 202 message: Accepted @@ -139,14 +136,83 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/a590e86b-6e1a-4b0a-b44a-af604b8b206c/analyzeresults/82c9e2b5-933d-45ba-8527-aec6d2c4e116 + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/8c2dd996-1f46-4f18-bdff-4b216256e37a/analyzeresults/f5341507-316a-4e0f-b87e-998efca9dcc2 response: body: - string: '{"status": "succeeded", "createdDateTime": "2020-06-11T15:43:44Z", - "lastUpdatedDateTime": "2020-06-11T15:43:48Z", "analyzeResult": {"version": + string: '{"status": "notStarted", "createdDateTime": "2020-07-10T18:53:16Z", + "lastUpdatedDateTime": "2020-07-10T18:53:18Z"}' + headers: + apim-request-id: + - cb3c04fe-981b-4d04-9b1f-09baffda883d + content-length: + - '109' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 10 Jul 2020 18:53:21 GMT + strict-transport-security: + - max-age=31536000; includeSubDomains; preload + x-content-type-options: + - nosniff + x-envoy-upstream-service-time: + - '19' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + method: GET + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/8c2dd996-1f46-4f18-bdff-4b216256e37a/analyzeresults/f5341507-316a-4e0f-b87e-998efca9dcc2 + response: + body: + string: '{"status": "notStarted", "createdDateTime": "2020-07-10T18:53:16Z", + "lastUpdatedDateTime": "2020-07-10T18:53:18Z"}' + headers: + apim-request-id: + - 0a8cd37d-51a7-4580-b891-2b892e82815e + content-length: + - '109' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 10 Jul 2020 18:53:26 GMT + strict-transport-security: + - max-age=31536000; includeSubDomains; preload + x-content-type-options: + - nosniff + x-envoy-upstream-service-time: + - '52' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + method: GET + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/8c2dd996-1f46-4f18-bdff-4b216256e37a/analyzeresults/f5341507-316a-4e0f-b87e-998efca9dcc2 + response: + body: + string: '{"status": "succeeded", "createdDateTime": "2020-07-10T18:53:16Z", + "lastUpdatedDateTime": "2020-07-10T18:53:28Z", "analyzeResult": {"version": "2.0.0", "readResults": [{"page": 1, "language": "en", "angle": 0, "width": 1700, "height": 2200, "unit": "pixel"}], "pageResults": [{"page": 1, "tables": [{"rows": 4, "columns": 3, "cells": [{"rowIndex": 1, "columnIndex": 1, "text": @@ -191,60 +257,59 @@ interactions: 2, "text": "5,00", "boundingBox": [1072, 1216, 1309, 1216, 1309, 1260, 1072, 1260]}, {"rowIndex": 4, "columnIndex": 3, "text": "100.00", "boundingBox": [1309, 1216, 1544, 1216, 1544, 1260, 1309, 1260]}]}]}], "documentResults": - [{"docType": "custom:form", "pageRange": [1, 1], "fields": {"Merchant": {"type": - "string", "valueString": "Hero Limited", "text": "Hero Limited", "page": 1, - "boundingBox": [621.0, 202.0, 1075.0, 202.0, 1075.0, 266.0, 621.0, 266.0], - "confidence": 1.0}, "VendorName": {"type": "string", "valueString": "Hillary - Swank", "text": "Hillary Swank", "page": 1, "boundingBox": [351.0, 609.0, - 518.0, 609.0, 518.0, 641.0, 351.0, 641.0], "confidence": 1.0}, "Tax": {"type": - "string", "valueString": "$4.00", "text": "$4.00", "page": 1, "boundingBox": - [1461.0, 1614.0, 1530.0, 1614.0, 1530.0, 1642.0, 1461.0, 1642.0], "confidence": - 1.0}, "Email": {"type": "string", "valueString": "accounts@herolimited.com", - "text": "accounts@herolimited.com", "page": 1, "boundingBox": [166.0, 480.0, - 475.0, 480.0, 475.0, 503.0, 166.0, 503.0], "confidence": 1.0}, "CompanyPhoneNumber": + [{"docType": "custom:form", "pageRange": [1, 1], "fields": {"Subtotal": {"type": + "string", "valueString": "$140.00", "text": "$140.00", "page": 1, "boundingBox": + [1429.0, 1570.0, 1530.0, 1570.0, 1530.0, 1599.0, 1429.0, 1599.0], "confidence": + 1.0}, "CompanyAddress": {"type": "string", "valueString": "938 NE Burner Road + Boulder City, CO 92848", "text": "938 NE Burner Road Boulder City, CO 92848", + "page": 1, "boundingBox": [277.0, 685.0, 568.0, 685.0, 568.0, 754.0, 277.0, + 754.0], "confidence": 1.0}, "Merchant": {"type": "string", "valueString": + "Hero Limited", "text": "Hero Limited", "page": 1, "boundingBox": [621.0, + 202.0, 1075.0, 202.0, 1075.0, 266.0, 621.0, 266.0], "confidence": 1.0}, "CompanyPhoneNumber": {"type": "string", "valueString": "938-294-2949", "text": "938-294-2949", "page": 1, "boundingBox": [713.0, 722.0, 884.0, 722.0, 884.0, 750.0, 713.0, - 750.0], "confidence": 1.0}, "Signature": {"type": "string", "valueString": - "Bernie Sanders", "text": "Bernie Sanders", "page": 1, "boundingBox": [482.0, - 1670.0, 764.0, 1670.0, 764.0, 1709.0, 482.0, 1709.0], "confidence": 1.0}, - "CompanyName": {"type": "string", "valueString": "Higgly Wiggly Books", "text": - "Higgly Wiggly Books", "page": 1, "boundingBox": [378.0, 646.0, 629.0, 646.0, - 629.0, 682.0, 378.0, 682.0], "confidence": 1.0}, "Website": {"type": "string", - "valueString": "www.herolimited.com", "text": "www.herolimited.com", "page": - 1, "boundingBox": [274.0, 393.0, 529.0, 393.0, 529.0, 419.0, 274.0, 419.0], - "confidence": 1.0}, "DatedAs": {"type": "string", "valueString": "12/20/2020", - "text": "12/20/2020", "page": 1, "boundingBox": [1168.0, 420.0, 1317.0, 420.0, - 1317.0, 450.0, 1168.0, 450.0], "confidence": 1.0}, "Quantity": {"type": "number", - "text": "20", "page": 1, "boundingBox": [861.0, 1089.0, 895.0, 1089.0, 895.0, - 1120.0, 861.0, 1120.0], "confidence": 1.0}, "PurchaseOrderNumber": {"type": - "string", "valueString": "948284", "text": "948284", "page": 1, "boundingBox": - [1282.0, 461.0, 1377.0, 461.0, 1377.0, 489.0, 1282.0, 489.0], "confidence": - 1.0}, "Total": {"type": "string", "valueString": "$144.00", "text": "$144.00", - "page": 1, "boundingBox": [1429.0, 1669.0, 1530.0, 1669.0, 1530.0, 1697.0, - 1429.0, 1697.0], "confidence": 1.0}, "Subtotal": {"type": "string", "valueString": - "$140.00", "text": "$140.00", "page": 1, "boundingBox": [1429.0, 1570.0, 1530.0, - 1570.0, 1530.0, 1599.0, 1429.0, 1599.0], "confidence": 1.0}, "CompanyAddress": - {"type": "string", "valueString": "938 NE Burner Road Boulder City, CO 92848", - "text": "938 NE Burner Road Boulder City, CO 92848", "page": 1, "boundingBox": - [277.0, 685.0, 568.0, 685.0, 568.0, 754.0, 277.0, 754.0], "confidence": 1.0}, - "PhoneNumber": {"type": "string", "valueString": "555-348-6512", "text": "555-348-6512", - "page": 1, "boundingBox": [367.0, 351.0, 529.0, 351.0, 529.0, 378.0, 367.0, - 378.0], "confidence": 1.0}}}], "errors": []}}' + 750.0], "confidence": 1.0}, "Total": {"type": "string", "valueString": "$144.00", + "text": "$144.00", "page": 1, "boundingBox": [1429.0, 1669.0, 1530.0, 1669.0, + 1530.0, 1697.0, 1429.0, 1697.0], "confidence": 1.0}, "Quantity": {"type": + "number", "text": "20", "page": 1, "boundingBox": [861.0, 1089.0, 895.0, 1089.0, + 895.0, 1120.0, 861.0, 1120.0], "confidence": 1.0}, "VendorName": {"type": + "string", "valueString": "Hillary Swank", "text": "Hillary Swank", "page": + 1, "boundingBox": [351.0, 609.0, 518.0, 609.0, 518.0, 641.0, 351.0, 641.0], + "confidence": 1.0}, "PhoneNumber": {"type": "string", "valueString": "555-348-6512", + "text": "555-348-6512", "page": 1, "boundingBox": [367.0, 351.0, 529.0, 351.0, + 529.0, 378.0, 367.0, 378.0], "confidence": 1.0}, "Signature": {"type": "string", + "valueString": "Bernie Sanders", "text": "Bernie Sanders", "page": 1, "boundingBox": + [482.0, 1670.0, 764.0, 1670.0, 764.0, 1709.0, 482.0, 1709.0], "confidence": + 1.0}, "CompanyName": {"type": "string", "valueString": "Higgly Wiggly Books", + "text": "Higgly Wiggly Books", "page": 1, "boundingBox": [378.0, 646.0, 629.0, + 646.0, 629.0, 682.0, 378.0, 682.0], "confidence": 1.0}, "DatedAs": {"type": + "string", "valueString": "12/20/2020", "text": "12/20/2020", "page": 1, "boundingBox": + [1168.0, 420.0, 1317.0, 420.0, 1317.0, 450.0, 1168.0, 450.0], "confidence": + 1.0}, "PurchaseOrderNumber": {"type": "string", "valueString": "948284", "text": + "948284", "page": 1, "boundingBox": [1282.0, 461.0, 1377.0, 461.0, 1377.0, + 489.0, 1282.0, 489.0], "confidence": 1.0}, "Tax": {"type": "string", "valueString": + "$4.00", "text": "$4.00", "page": 1, "boundingBox": [1461.0, 1614.0, 1530.0, + 1614.0, 1530.0, 1642.0, 1461.0, 1642.0], "confidence": 1.0}, "Email": {"type": + "string", "valueString": "accounts@herolimited.com", "text": "accounts@herolimited.com", + "page": 1, "boundingBox": [166.0, 480.0, 475.0, 480.0, 475.0, 503.0, 166.0, + 503.0], "confidence": 1.0}, "Website": {"type": "string", "valueString": "www.herolimited.com", + "text": "www.herolimited.com", "page": 1, "boundingBox": [274.0, 393.0, 529.0, + 393.0, 529.0, 419.0, 274.0, 419.0], "confidence": 1.0}}}], "errors": []}}' headers: apim-request-id: - - c96d781b-805f-4b4b-9034-67bf2298e82a + - 44d8d930-f882-4336-9462-9504fac88d6b content-length: - '5839' content-type: - application/json; charset=utf-8 date: - - Thu, 11 Jun 2020 15:43:49 GMT + - Fri, 10 Jul 2020 18:53:31 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '54' + - '21' status: code: 200 message: OK diff --git a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_custom_forms_from_url.test_custom_form_multipage_labeled_transform.yaml b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_custom_forms_from_url.test_custom_form_multipage_labeled_transform.yaml index 6209d00630da..c1ee6b33d759 100644 --- a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_custom_forms_from_url.test_custom_form_multipage_labeled_transform.yaml +++ b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_custom_forms_from_url.test_custom_form_multipage_labeled_transform.yaml @@ -14,28 +14,27 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) method: POST - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models response: body: string: '' headers: apim-request-id: - - 717c43aa-2c51-44b0-88f8-d632a53d30b6 + - 092c7827-58f9-4194-8ab4-78c5d04fe8da content-length: - '0' date: - - Thu, 11 Jun 2020 15:41:23 GMT + - Fri, 10 Jul 2020 18:53:32 GMT location: - - https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/1fcaff93-bef7-4309-b090-d890bce7badd + - https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/da106f9f-2e86-4565-9545-059cde796f36 strict-transport-security: - max-age=31536000; includeSubDomains; preload x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '123' + - '238' status: code: 201 message: Created @@ -49,15 +48,14 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/1fcaff93-bef7-4309-b090-d890bce7badd?includeKeys=true + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/da106f9f-2e86-4565-9545-059cde796f36?includeKeys=true response: body: - string: '{"modelInfo": {"modelId": "1fcaff93-bef7-4309-b090-d890bce7badd", "status": - "ready", "createdDateTime": "2020-06-11T15:41:23Z", "lastUpdatedDateTime": - "2020-06-11T15:41:25Z"}, "trainResult": {"averageModelAccuracy": 0.889, "trainingDocuments": + string: '{"modelInfo": {"modelId": "da106f9f-2e86-4565-9545-059cde796f36", "status": + "ready", "createdDateTime": "2020-07-10T18:53:32Z", "lastUpdatedDateTime": + "2020-07-10T18:53:35Z"}, "trainResult": {"averageModelAccuracy": 0.889, "trainingDocuments": [{"documentName": "multipage_invoice1.pdf", "pages": 3, "status": "succeeded"}, {"documentName": "multipage_invoice2.pdf", "pages": 3, "status": "succeeded"}, {"documentName": "multipage_invoice3.pdf", "pages": 3, "status": "succeeded"}, @@ -76,11 +74,11 @@ interactions: 1.0}, {"fieldName": "Total2", "accuracy": 1.0}], "errors": []}}' headers: apim-request-id: - - a01b1136-a36d-4a70-99d9-eee8ec0002d3 + - 37704c84-fa1d-4863-b636-932b716aa979 content-type: - application/json; charset=utf-8 date: - - Thu, 11 Jun 2020 15:41:28 GMT + - Fri, 10 Jul 2020 18:53:36 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -88,7 +86,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '127' + - '18' status: code: 200 message: OK @@ -106,28 +104,27 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) method: POST - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/1fcaff93-bef7-4309-b090-d890bce7badd/analyze?includeTextDetails=true + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/da106f9f-2e86-4565-9545-059cde796f36/analyze?includeTextDetails=true response: body: string: '' headers: apim-request-id: - - 1c2f4beb-1e0a-45c9-a609-bc6a19e7ddef + - 324d9727-de8d-44a7-85fa-126a47893f77 content-length: - '0' date: - - Thu, 11 Jun 2020 15:41:29 GMT + - Fri, 10 Jul 2020 18:53:37 GMT operation-location: - - https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/1fcaff93-bef7-4309-b090-d890bce7badd/analyzeresults/d63f57bf-81d6-4c2b-97fd-0658b436593c + - https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/da106f9f-2e86-4565-9545-059cde796f36/analyzeresults/0d0ab61c-f2c3-4d96-a591-0a21d7325a73 strict-transport-security: - max-age=31536000; includeSubDomains; preload x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '173' + - '232' status: code: 202 message: Accepted @@ -141,29 +138,28 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/1fcaff93-bef7-4309-b090-d890bce7badd/analyzeresults/d63f57bf-81d6-4c2b-97fd-0658b436593c + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/da106f9f-2e86-4565-9545-059cde796f36/analyzeresults/0d0ab61c-f2c3-4d96-a591-0a21d7325a73 response: body: - string: '{"status": "notStarted", "createdDateTime": "2020-06-11T15:41:29Z", - "lastUpdatedDateTime": "2020-06-11T15:41:34Z"}' + string: '{"status": "notStarted", "createdDateTime": "2020-07-10T18:53:38Z", + "lastUpdatedDateTime": "2020-07-10T18:53:39Z"}' headers: apim-request-id: - - e620af2a-52ea-4142-afaf-57df3b2e4abb + - bf729046-b856-4935-8799-3e8ab3f53b7c content-length: - '109' content-type: - application/json; charset=utf-8 date: - - Thu, 11 Jun 2020 15:41:34 GMT + - Fri, 10 Jul 2020 18:53:42 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '52' + - '20' status: code: 200 message: OK @@ -177,14 +173,48 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/1fcaff93-bef7-4309-b090-d890bce7badd/analyzeresults/d63f57bf-81d6-4c2b-97fd-0658b436593c + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/da106f9f-2e86-4565-9545-059cde796f36/analyzeresults/0d0ab61c-f2c3-4d96-a591-0a21d7325a73 response: body: - string: '{"status": "succeeded", "createdDateTime": "2020-06-11T15:41:29Z", - "lastUpdatedDateTime": "2020-06-11T15:41:38Z", "analyzeResult": {"version": + string: '{"status": "notStarted", "createdDateTime": "2020-07-10T18:53:38Z", + "lastUpdatedDateTime": "2020-07-10T18:53:39Z"}' + headers: + apim-request-id: + - 40115dbd-2a7c-4594-bf2a-0c35a5c578d7 + content-length: + - '109' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 10 Jul 2020 18:53:47 GMT + strict-transport-security: + - max-age=31536000; includeSubDomains; preload + x-content-type-options: + - nosniff + x-envoy-upstream-service-time: + - '20' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + method: GET + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/da106f9f-2e86-4565-9545-059cde796f36/analyzeresults/0d0ab61c-f2c3-4d96-a591-0a21d7325a73 + response: + body: + string: '{"status": "succeeded", "createdDateTime": "2020-07-10T18:53:38Z", + "lastUpdatedDateTime": "2020-07-10T18:53:49Z", "analyzeResult": {"version": "2.0.0", "readResults": [{"page": 1, "language": "en", "angle": 0, "width": 8.5, "height": 11, "unit": "inch", "lines": [{"boundingBox": [0.8861, 1.1217, 2.3783, 1.1217, 2.3783, 1.2812, 0.8861, 1.2812], "text": "Company A Invoice", @@ -565,85 +595,85 @@ interactions: {"rowIndex": 7, "columnIndex": 2, "text": "220.00", "boundingBox": [5.3353, 4.4181, 7.4997, 4.4181, 7.4997, 4.6281, 5.3353, 4.6281], "elements": ["#/readResults/2/lines/33/words/0"]}]}]}], "documentResults": [{"docType": "custom:form", "pageRange": [1, 3], "fields": - {"Tip": {"type": "string", "valueString": "100.00", "text": "100.00", "page": - 1, "boundingBox": [5.8100000000000005, 5.345, 6.26, 5.345, 6.26, 5.455, 5.8100000000000005, - 5.455], "confidence": 1.0, "elements": ["#/analyzeResult/readResults/0/lines/36/words/1"]}, - "MerchantPhoneNumber": {"type": "string", "valueString": "555-555-5555", "text": - "555-555-5555", "page": 1, "boundingBox": [0.885, 2.29, 1.81, 2.29, 1.81, - 2.395, 0.885, 2.395], "confidence": 1.0, "elements": ["#/analyzeResult/readResults/0/lines/9/words/0"]}, - "Customer2": {"type": "string", "valueString": "Frodo Baggins", "text": "Frodo - Baggins", "page": 3, "boundingBox": [6.015000000000001, 1.45, 6.95, 1.45, - 6.95, 1.595, 6.015000000000001, 1.595], "confidence": 1.0, "elements": ["#/analyzeResult/readResults/2/lines/3/words/0", - "#/analyzeResult/readResults/2/lines/3/words/1"]}, "Signature": {"type": "string", - "valueString": "Bilbo Baggins", "text": "Bilbo Baggins", "page": 1, "boundingBox": - [2.05, 6.655, 3.04, 6.655, 3.04, 6.8, 2.05, 6.8], "confidence": 1.0, "elements": - ["#/analyzeResult/readResults/0/lines/38/words/1", "#/analyzeResult/readResults/0/lines/38/words/2"]}, + {"Total2": {"type": "string", "valueString": "4300.00", "text": "4300.00", + "page": 3, "boundingBox": [5.94, 5.565, 6.48, 5.565, 6.48, 5.675, 5.94, 5.675], + "confidence": 1.0, "elements": ["#/analyzeResult/readResults/2/lines/37/words/1"]}, + "FirstItem": {"type": "string", "valueString": "A", "text": "A", "page": 1, + "boundingBox": [1.085, 3.21, 1.175, 3.21, 1.175, 3.3200000000000003, 1.085, + 3.3200000000000003], "confidence": 1.0, "elements": ["#/analyzeResult/readResults/0/lines/13/words/0"]}, "Total": {"type": "string", "valueString": "430.00", "text": "430.00", "page": 1, "boundingBox": [5.94, 5.565, 6.4, 5.565, 6.4, 5.675, 5.94, 5.675], "confidence": - 1.0, "elements": ["#/analyzeResult/readResults/0/lines/37/words/1"]}, "Merchant": - {"type": "string", "valueString": "A", "text": "A", "page": 1, "boundingBox": - [1.67, 1.125, 1.7750000000000001, 1.125, 1.7750000000000001, 1.245, 1.67, - 1.245], "confidence": 1.0, "elements": ["#/analyzeResult/readResults/0/lines/0/words/1"]}, + 1.0, "elements": ["#/analyzeResult/readResults/0/lines/37/words/1"]}, "CustomerPhoneNumber": + {"type": "string", "valueString": "555-555-5555", "text": "555-555-5555", + "page": 1, "boundingBox": [6.01, 2.12, 6.9350000000000005, 2.12, 6.9350000000000005, + 2.225, 6.01, 2.225], "confidence": 1.0, "elements": ["#/analyzeResult/readResults/0/lines/8/words/0"]}, "Merchant2": {"type": "string", "valueString": "Company", "text": "Company", "page": 1, "boundingBox": [0.885, 1.125, 1.62, 1.125, 1.62, 1.28, 0.885, 1.28], "confidence": 1.0, "elements": ["#/analyzeResult/readResults/0/lines/0/words/0"]}, - "Total2": {"type": "string", "valueString": "4300.00", "text": "4300.00", - "page": 3, "boundingBox": [5.94, 5.565, 6.48, 5.565, 6.48, 5.675, 5.94, 5.675], - "confidence": 1.0, "elements": ["#/analyzeResult/readResults/2/lines/37/words/1"]}, - "Tax": {"type": "string", "valueString": "30.00", "text": "30.00", "page": - 1, "boundingBox": [5.835, 5.125, 6.2, 5.125, 6.2, 5.235, 5.835, 5.235], "confidence": - 1.0, "elements": ["#/analyzeResult/readResults/0/lines/35/words/1"]}, "FirstQuantity": - {"type": "string", "valueString": "1", "text": "1", "page": 1, "boundingBox": - [3.2600000000000002, 3.21, 3.3200000000000003, 3.21, 3.3200000000000003, 3.3200000000000003, - 3.2600000000000002, 3.3200000000000003], "confidence": 1.0, "elements": ["#/analyzeResult/readResults/0/lines/14/words/0"]}, + "FirstQuantity": {"type": "string", "valueString": "1", "text": "1", "page": + 1, "boundingBox": [3.2600000000000002, 3.21, 3.3200000000000003, 3.21, 3.3200000000000003, + 3.3200000000000003, 3.2600000000000002, 3.3200000000000003], "confidence": + 1.0, "elements": ["#/analyzeResult/readResults/0/lines/14/words/0"]}, "MerchantPhoneNumber": + {"type": "string", "valueString": "555-555-5555", "text": "555-555-5555", + "page": 1, "boundingBox": [0.885, 2.29, 1.81, 2.29, 1.81, 2.395, 0.885, 2.395], + "confidence": 1.0, "elements": ["#/analyzeResult/readResults/0/lines/9/words/0"]}, + "CustomerName": {"type": "string", "valueString": "Bilbo Baggins", "text": + "Bilbo Baggins", "page": 1, "boundingBox": [6.015000000000001, 1.45, 6.8950000000000005, + 1.45, 6.8950000000000005, 1.595, 6.015000000000001, 1.595], "confidence": + 1.0, "elements": ["#/analyzeResult/readResults/0/lines/3/words/0", "#/analyzeResult/readResults/0/lines/3/words/1"]}, + "Subtotal": {"type": "string", "valueString": "300.00", "text": "300.00", + "page": 1, "boundingBox": [6.18, 4.905, 6.63, 4.905, 6.63, 5.015, 6.18, 5.015], + "confidence": 1.0, "elements": ["#/analyzeResult/readResults/0/lines/34/words/1"]}, "Signature2": {"type": "string", "valueString": "Frodo Baggins", "text": "Frodo Baggins", "page": 3, "boundingBox": [2.07, 6.655, 3.09, 6.655, 3.09, 6.8, 2.07, 6.8], "confidence": 0.16, "elements": ["#/analyzeResult/readResults/2/lines/38/words/1", - "#/analyzeResult/readResults/2/lines/38/words/2"]}, "CustomerName": {"type": - "string", "valueString": "Bilbo Baggins", "text": "Bilbo Baggins", "page": - 1, "boundingBox": [6.015000000000001, 1.45, 6.8950000000000005, 1.45, 6.8950000000000005, - 1.595, 6.015000000000001, 1.595], "confidence": 1.0, "elements": ["#/analyzeResult/readResults/0/lines/3/words/0", - "#/analyzeResult/readResults/0/lines/3/words/1"]}, "CustomerPhoneNumber": - {"type": "string", "valueString": "555-555-5555", "text": "555-555-5555", - "page": 1, "boundingBox": [6.01, 2.12, 6.9350000000000005, 2.12, 6.9350000000000005, - 2.225, 6.01, 2.225], "confidence": 1.0, "elements": ["#/analyzeResult/readResults/0/lines/8/words/0"]}, + "#/analyzeResult/readResults/2/lines/38/words/2"]}, "FirstPrice": {"type": + "string", "valueString": "10.99", "text": "10.99", "page": 1, "boundingBox": + [5.425, 3.21, 5.78, 3.21, 5.78, 3.3200000000000003, 5.425, 3.3200000000000003], + "confidence": 1.0, "elements": ["#/analyzeResult/readResults/0/lines/15/words/0"]}, "CustomerAddress": {"type": "string", "valueString": "123 Hobbit Lane Redmond, WA", "text": "123 Hobbit Lane Redmond, WA", "page": 1, "boundingBox": [6.015000000000001, 1.67, 7.1000000000000005, 1.67, 7.1000000000000005, 2.0300000000000002, 6.015000000000001, 2.0300000000000002], "confidence": 1.0, "elements": ["#/analyzeResult/readResults/0/lines/4/words/0", "#/analyzeResult/readResults/0/lines/4/words/1", "#/analyzeResult/readResults/0/lines/4/words/2", "#/analyzeResult/readResults/0/lines/6/words/0", "#/analyzeResult/readResults/0/lines/6/words/1"]}, - "Subtotal": {"type": "string", "valueString": "300.00", "text": "300.00", - "page": 1, "boundingBox": [6.18, 4.905, 6.63, 4.905, 6.63, 5.015, 6.18, 5.015], - "confidence": 1.0, "elements": ["#/analyzeResult/readResults/0/lines/34/words/1"]}, - "FirstPrice": {"type": "string", "valueString": "10.99", "text": "10.99", - "page": 1, "boundingBox": [5.425, 3.21, 5.78, 3.21, 5.78, 3.3200000000000003, - 5.425, 3.3200000000000003], "confidence": 1.0, "elements": ["#/analyzeResult/readResults/0/lines/15/words/0"]}, + "Tip": {"type": "string", "valueString": "100.00", "text": "100.00", "page": + 1, "boundingBox": [5.8100000000000005, 5.345, 6.26, 5.345, 6.26, 5.455, 5.8100000000000005, + 5.455], "confidence": 1.0, "elements": ["#/analyzeResult/readResults/0/lines/36/words/1"]}, + "Merchant": {"type": "string", "valueString": "A", "text": "A", "page": 1, + "boundingBox": [1.67, 1.125, 1.7750000000000001, 1.125, 1.7750000000000001, + 1.245, 1.67, 1.245], "confidence": 1.0, "elements": ["#/analyzeResult/readResults/0/lines/0/words/1"]}, "MerchantAddress": {"type": "string", "valueString": "567 Main St. Redmond, WA", "text": "567 Main St. Redmond, WA", "page": 1, "boundingBox": [0.885, 1.845, 1.855, 1.845, 1.855, 2.2, 0.885, 2.2], "confidence": 1.0, "elements": ["#/analyzeResult/readResults/0/lines/5/words/0", "#/analyzeResult/readResults/0/lines/5/words/1", "#/analyzeResult/readResults/0/lines/5/words/2", "#/analyzeResult/readResults/0/lines/7/words/0", - "#/analyzeResult/readResults/0/lines/7/words/1"]}, "FirstItem": {"type": "string", - "valueString": "A", "text": "A", "page": 1, "boundingBox": [1.085, 3.21, 1.175, - 3.21, 1.175, 3.3200000000000003, 1.085, 3.3200000000000003], "confidence": - 1.0, "elements": ["#/analyzeResult/readResults/0/lines/13/words/0"]}}}], "errors": - []}}' + "#/analyzeResult/readResults/0/lines/7/words/1"]}, "Signature": {"type": "string", + "valueString": "Bilbo Baggins", "text": "Bilbo Baggins", "page": 1, "boundingBox": + [2.05, 6.655, 3.04, 6.655, 3.04, 6.8, 2.05, 6.8], "confidence": 1.0, "elements": + ["#/analyzeResult/readResults/0/lines/38/words/1", "#/analyzeResult/readResults/0/lines/38/words/2"]}, + "Customer2": {"type": "string", "valueString": "Frodo Baggins", "text": "Frodo + Baggins", "page": 3, "boundingBox": [6.015000000000001, 1.45, 6.95, 1.45, + 6.95, 1.595, 6.015000000000001, 1.595], "confidence": 1.0, "elements": ["#/analyzeResult/readResults/2/lines/3/words/0", + "#/analyzeResult/readResults/2/lines/3/words/1"]}, "Tax": {"type": "string", + "valueString": "30.00", "text": "30.00", "page": 1, "boundingBox": [5.835, + 5.125, 6.2, 5.125, 6.2, 5.235, 5.835, 5.235], "confidence": 1.0, "elements": + ["#/analyzeResult/readResults/0/lines/35/words/1"]}}}], "errors": []}}' headers: apim-request-id: - - 45d2d3ba-0c39-495a-9adf-86c4437c601e + - 9667c217-9002-4810-b2b0-280e3e4a7965 content-length: - '32675' content-type: - application/json; charset=utf-8 date: - - Thu, 11 Jun 2020 15:41:40 GMT + - Fri, 10 Jul 2020 18:53:52 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '130' + - '27' status: code: 200 message: OK diff --git a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_custom_forms_from_url.test_custom_form_multipage_unlabeled_transform.yaml b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_custom_forms_from_url.test_custom_form_multipage_unlabeled_transform.yaml index 775e3042ab89..377ee23357b4 100644 --- a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_custom_forms_from_url.test_custom_form_multipage_unlabeled_transform.yaml +++ b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_custom_forms_from_url.test_custom_form_multipage_unlabeled_transform.yaml @@ -14,28 +14,27 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) method: POST - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models response: body: string: '' headers: apim-request-id: - - 3a8fd570-9e02-421d-97cc-8559e50a5080 + - 05e0073f-abc7-4806-8e08-de2dacbfdbe0 content-length: - '0' date: - - Thu, 11 Jun 2020 15:41:40 GMT + - Fri, 10 Jul 2020 18:53:54 GMT location: - - https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/8862ffd2-2ed2-4427-a7ca-a50b313d7bd5 + - https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/3428023c-6c69-49a4-8fd8-6e2f4d0bd0ea strict-transport-security: - max-age=31536000; includeSubDomains; preload x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '759' + - '40' status: code: 201 message: Created @@ -49,22 +48,21 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/8862ffd2-2ed2-4427-a7ca-a50b313d7bd5?includeKeys=true + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/3428023c-6c69-49a4-8fd8-6e2f4d0bd0ea?includeKeys=true response: body: - string: '{"modelInfo": {"modelId": "8862ffd2-2ed2-4427-a7ca-a50b313d7bd5", "status": - "creating", "createdDateTime": "2020-06-11T15:41:40Z", "lastUpdatedDateTime": - "2020-06-11T15:41:40Z"}}' + string: '{"modelInfo": {"modelId": "3428023c-6c69-49a4-8fd8-6e2f4d0bd0ea", "status": + "creating", "createdDateTime": "2020-07-10T18:53:54Z", "lastUpdatedDateTime": + "2020-07-10T18:53:54Z"}}' headers: apim-request-id: - - 20008a4e-b807-4716-8d9c-9c25828e3157 + - 6ea05a98-e852-4803-970b-a1cf5b9449b2 content-type: - application/json; charset=utf-8 date: - - Thu, 11 Jun 2020 15:41:46 GMT + - Fri, 10 Jul 2020 18:53:58 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -72,7 +70,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '17' + - '20' status: code: 200 message: OK @@ -86,22 +84,21 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/8862ffd2-2ed2-4427-a7ca-a50b313d7bd5?includeKeys=true + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/3428023c-6c69-49a4-8fd8-6e2f4d0bd0ea?includeKeys=true response: body: - string: '{"modelInfo": {"modelId": "8862ffd2-2ed2-4427-a7ca-a50b313d7bd5", "status": - "creating", "createdDateTime": "2020-06-11T15:41:40Z", "lastUpdatedDateTime": - "2020-06-11T15:41:40Z"}}' + string: '{"modelInfo": {"modelId": "3428023c-6c69-49a4-8fd8-6e2f4d0bd0ea", "status": + "creating", "createdDateTime": "2020-07-10T18:53:54Z", "lastUpdatedDateTime": + "2020-07-10T18:53:54Z"}}' headers: apim-request-id: - - a0157243-0032-48d0-bd95-4d8317bb4c57 + - 73e885bd-968e-4b2c-ba4a-a66656c3717b content-type: - application/json; charset=utf-8 date: - - Thu, 11 Jun 2020 15:41:51 GMT + - Fri, 10 Jul 2020 18:54:04 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -109,7 +106,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '215' + - '18' status: code: 200 message: OK @@ -123,15 +120,14 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/8862ffd2-2ed2-4427-a7ca-a50b313d7bd5?includeKeys=true + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/3428023c-6c69-49a4-8fd8-6e2f4d0bd0ea?includeKeys=true response: body: - string: '{"modelInfo": {"modelId": "8862ffd2-2ed2-4427-a7ca-a50b313d7bd5", "status": - "ready", "createdDateTime": "2020-06-11T15:41:40Z", "lastUpdatedDateTime": - "2020-06-11T15:41:56Z"}, "keys": {"clusters": {"0": ["Address:", "Invoice + string: '{"modelInfo": {"modelId": "3428023c-6c69-49a4-8fd8-6e2f4d0bd0ea", "status": + "ready", "createdDateTime": "2020-07-10T18:53:54Z", "lastUpdatedDateTime": + "2020-07-10T18:54:07Z"}, "keys": {"clusters": {"0": ["Address:", "Invoice For:", "Item", "Price", "Quantity", "Redmond, WA", "Signature:", "Subtotal:", "Tax:", "Tip:", "Total:"]}}, "trainResult": {"trainingDocuments": [{"documentName": "multipage_invoice1.pdf", "pages": 3, "errors": [], "status": "succeeded"}, @@ -142,11 +138,11 @@ interactions: "pages": 3, "errors": [], "status": "succeeded"}], "errors": []}}' headers: apim-request-id: - - c68dcf7d-962e-4971-8a15-3e28544233e9 + - ccb255ca-f8fa-4695-a2a2-0b47706c811a content-type: - application/json; charset=utf-8 date: - - Thu, 11 Jun 2020 15:41:57 GMT + - Fri, 10 Jul 2020 18:54:09 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -154,7 +150,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '48' + - '17' status: code: 200 message: OK @@ -172,28 +168,27 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) method: POST - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/8862ffd2-2ed2-4427-a7ca-a50b313d7bd5/analyze?includeTextDetails=true + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/3428023c-6c69-49a4-8fd8-6e2f4d0bd0ea/analyze?includeTextDetails=true response: body: string: '' headers: apim-request-id: - - addee828-acf6-474b-9168-af05e8f76356 + - 8f287dee-95bd-4c91-979e-f8a64ed98cdb content-length: - '0' date: - - Thu, 11 Jun 2020 15:41:57 GMT + - Fri, 10 Jul 2020 18:54:09 GMT operation-location: - - https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/8862ffd2-2ed2-4427-a7ca-a50b313d7bd5/analyzeresults/8d6fab09-306f-4156-82a4-9f1550533870 + - https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/3428023c-6c69-49a4-8fd8-6e2f4d0bd0ea/analyzeresults/2302198b-bfba-4fe1-b24f-8bdd3c90bd37 strict-transport-security: - max-age=31536000; includeSubDomains; preload x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '119' + - '53' status: code: 202 message: Accepted @@ -207,50 +202,13 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) - method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/8862ffd2-2ed2-4427-a7ca-a50b313d7bd5/analyzeresults/8d6fab09-306f-4156-82a4-9f1550533870 - response: - body: - string: '{"status": "running", "createdDateTime": "2020-06-11T15:41:57Z", "lastUpdatedDateTime": - "2020-06-11T15:41:59Z", "analyzeResult": null}' - headers: - apim-request-id: - - c44e9f7a-22cc-4538-b640-e9cf11ae6921 - content-length: - - '134' - content-type: - - application/json; charset=utf-8 - date: - - Thu, 11 Jun 2020 15:42:03 GMT - strict-transport-security: - - max-age=31536000; includeSubDomains; preload - x-content-type-options: - - nosniff - x-envoy-upstream-service-time: - - '48' - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/8862ffd2-2ed2-4427-a7ca-a50b313d7bd5/analyzeresults/8d6fab09-306f-4156-82a4-9f1550533870 + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/3428023c-6c69-49a4-8fd8-6e2f4d0bd0ea/analyzeresults/2302198b-bfba-4fe1-b24f-8bdd3c90bd37 response: body: - string: '{"status": "succeeded", "createdDateTime": "2020-06-11T15:41:57Z", - "lastUpdatedDateTime": "2020-06-11T15:42:04Z", "analyzeResult": {"version": + string: '{"status": "succeeded", "createdDateTime": "2020-07-10T18:54:09Z", + "lastUpdatedDateTime": "2020-07-10T18:54:16Z", "analyzeResult": {"version": "2.0.0", "readResults": [{"page": 1, "angle": 0, "width": 8.5, "height": 11.0, "unit": "inch", "lines": [{"text": "Company A Invoice", "boundingBox": [0.8764, 1.1014, 2.3875, 1.1014, 2.3875, 1.2958, 0.8764, 1.2958], "words": [{"text": @@ -764,19 +722,19 @@ interactions: [], "errors": []}}' headers: apim-request-id: - - 93d87199-5b8d-4589-a352-ec10ce3c9367 + - 8a691cd9-3ad7-45b8-89ac-5752e61907f5 content-length: - '42016' content-type: - application/json; charset=utf-8 date: - - Thu, 11 Jun 2020 15:42:08 GMT + - Fri, 10 Jul 2020 18:54:20 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '56' + - '5835' status: code: 200 message: OK diff --git a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_custom_forms_from_url.test_custom_form_multipage_vendor_set_labeled_transform.yaml b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_custom_forms_from_url.test_custom_form_multipage_vendor_set_labeled_transform.yaml index 26a14d01c0bb..69d35ec2b428 100644 --- a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_custom_forms_from_url.test_custom_form_multipage_vendor_set_labeled_transform.yaml +++ b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_custom_forms_from_url.test_custom_form_multipage_vendor_set_labeled_transform.yaml @@ -14,28 +14,27 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) method: POST - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models response: body: string: '' headers: apim-request-id: - - 57dda06b-db99-4899-8063-8cc0e0d23c61 + - d86d362f-6427-4719-821d-fe66a6c5b389 content-length: - '0' date: - - Thu, 11 Jun 2020 15:42:09 GMT + - Fri, 10 Jul 2020 18:43:39 GMT location: - - https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/5173aec5-1513-426e-bc9e-25838486ae41 + - https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/b4123bdd-2a93-4185-804f-e1d182e8891c strict-transport-security: - max-age=31536000; includeSubDomains; preload x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '62' + - '5323' status: code: 201 message: Created @@ -49,15 +48,14 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/5173aec5-1513-426e-bc9e-25838486ae41?includeKeys=true + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/b4123bdd-2a93-4185-804f-e1d182e8891c?includeKeys=true response: body: - string: '{"modelInfo": {"modelId": "5173aec5-1513-426e-bc9e-25838486ae41", "status": - "ready", "createdDateTime": "2020-06-11T15:42:09Z", "lastUpdatedDateTime": - "2020-06-11T15:42:10Z"}, "trainResult": {"averageModelAccuracy": 0.971, "trainingDocuments": + string: '{"modelInfo": {"modelId": "b4123bdd-2a93-4185-804f-e1d182e8891c", "status": + "ready", "createdDateTime": "2020-07-10T18:43:39Z", "lastUpdatedDateTime": + "2020-07-10T18:43:42Z"}, "trainResult": {"averageModelAccuracy": 0.971, "trainingDocuments": [{"documentName": "multi1.pdf", "pages": 2, "status": "succeeded"}, {"documentName": "multi2.pdf", "pages": 2, "status": "succeeded"}, {"documentName": "multi3.pdf", "pages": 2, "status": "succeeded"}, {"documentName": "multi4.pdf", "pages": @@ -69,11 +67,11 @@ interactions: 1.0}], "errors": []}}' headers: apim-request-id: - - d6fd23b4-097f-446f-a8c1-f7726294ff8d + - 9bea9deb-084d-41d2-a9d8-2fcddb110f0b content-type: - application/json; charset=utf-8 date: - - Thu, 11 Jun 2020 15:42:13 GMT + - Fri, 10 Jul 2020 18:43:44 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -81,7 +79,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '48' + - '56' status: code: 200 message: OK @@ -99,28 +97,27 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) method: POST - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/5173aec5-1513-426e-bc9e-25838486ae41/analyze?includeTextDetails=true + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/b4123bdd-2a93-4185-804f-e1d182e8891c/analyze?includeTextDetails=true response: body: string: '' headers: apim-request-id: - - 369caad5-0906-49c0-92c9-7ee3631551ef + - efae073b-a680-47e8-8d76-d3ccd70a7932 content-length: - '0' date: - - Thu, 11 Jun 2020 15:42:14 GMT + - Fri, 10 Jul 2020 18:43:45 GMT operation-location: - - https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/5173aec5-1513-426e-bc9e-25838486ae41/analyzeresults/88157f4a-b7c6-463f-bf74-93162ae02454 + - https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/b4123bdd-2a93-4185-804f-e1d182e8891c/analyzeresults/249188c5-58b4-4d2e-9dec-2ca0b5f958dc strict-transport-security: - max-age=31536000; includeSubDomains; preload x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '136' + - '1016' status: code: 202 message: Accepted @@ -134,29 +131,28 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/5173aec5-1513-426e-bc9e-25838486ae41/analyzeresults/88157f4a-b7c6-463f-bf74-93162ae02454 + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/b4123bdd-2a93-4185-804f-e1d182e8891c/analyzeresults/249188c5-58b4-4d2e-9dec-2ca0b5f958dc response: body: - string: '{"status": "notStarted", "createdDateTime": "2020-06-11T15:42:14Z", - "lastUpdatedDateTime": "2020-06-11T15:42:14Z"}' + string: '{"status": "notStarted", "createdDateTime": "2020-07-10T18:43:45Z", + "lastUpdatedDateTime": "2020-07-10T18:43:47Z"}' headers: apim-request-id: - - 6a8a20f8-a47a-4cf8-8d19-72f4d9cf400a + - cefa2490-e7ec-4cce-8610-348e0441af82 content-length: - '109' content-type: - application/json; charset=utf-8 date: - - Thu, 11 Jun 2020 15:42:19 GMT + - Fri, 10 Jul 2020 18:43:50 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '48' + - '49' status: code: 200 message: OK @@ -170,29 +166,28 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/5173aec5-1513-426e-bc9e-25838486ae41/analyzeresults/88157f4a-b7c6-463f-bf74-93162ae02454 + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/b4123bdd-2a93-4185-804f-e1d182e8891c/analyzeresults/249188c5-58b4-4d2e-9dec-2ca0b5f958dc response: body: - string: '{"status": "notStarted", "createdDateTime": "2020-06-11T15:42:14Z", - "lastUpdatedDateTime": "2020-06-11T15:42:20Z"}' + string: '{"status": "notStarted", "createdDateTime": "2020-07-10T18:43:45Z", + "lastUpdatedDateTime": "2020-07-10T18:43:47Z"}' headers: apim-request-id: - - 06215a0a-971f-4f28-bcd5-b9b435cf09c1 + - 99508bef-ed18-47db-8c3d-ae6deb959e82 content-length: - '109' content-type: - application/json; charset=utf-8 date: - - Thu, 11 Jun 2020 15:42:24 GMT + - Fri, 10 Jul 2020 18:43:56 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '48' + - '50' status: code: 200 message: OK @@ -206,14 +201,13 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/5173aec5-1513-426e-bc9e-25838486ae41/analyzeresults/88157f4a-b7c6-463f-bf74-93162ae02454 + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/b4123bdd-2a93-4185-804f-e1d182e8891c/analyzeresults/249188c5-58b4-4d2e-9dec-2ca0b5f958dc response: body: - string: '{"status": "succeeded", "createdDateTime": "2020-06-11T15:42:14Z", - "lastUpdatedDateTime": "2020-06-11T15:42:29Z", "analyzeResult": {"version": + string: '{"status": "succeeded", "createdDateTime": "2020-07-10T18:43:45Z", + "lastUpdatedDateTime": "2020-07-10T18:43:57Z", "analyzeResult": {"version": "2.0.0", "readResults": [{"page": 1, "language": "en", "angle": 0, "width": 8.5, "height": 11, "unit": "inch", "lines": [{"boundingBox": [6.1276, 1.0667, 7.4833, 1.0667, 7.4833, 1.2403, 6.1276, 1.2403], "text": "Vendor #:121", "words": @@ -667,43 +661,43 @@ interactions: {"rowIndex": 19, "columnIndex": 1, "text": "advertisements", "boundingBox": [2.625, 8.7083, 5.75, 8.7083, 5.75, 8.905, 2.625, 8.905], "elements": ["#/readResults/0/lines/56/words/0"]}]}]}, {"page": 2, "tables": []}], "documentResults": [{"docType": "custom:form", - "pageRange": [1, 2], "fields": {"Contact": {"type": "string", "valueString": - "Jamie@southridgevideo.com", "text": "Jamie@southridgevideo.com", "page": - 2, "boundingBox": [1.62, 3.1, 3.575, 3.1, 3.575, 3.245, 1.62, 3.245], "confidence": - 1.0, "elements": ["#/analyzeResult/readResults/1/lines/3/words/1"]}, "CompanyName": - {"type": "string", "valueString": "Southridge Video", "text": "Southridge - Video", "page": 2, "boundingBox": [2.19, 2.77, 3.35, 2.77, 3.35, 2.915, 2.19, - 2.915], "confidence": 1.0, "elements": ["#/analyzeResult/readResults/1/lines/2/words/2", - "#/analyzeResult/readResults/1/lines/2/words/3"]}, "Bronze": {"type": "string", - "valueString": "$1,000", "text": "$1,000", "page": 1, "boundingBox": [5.835, - 6.825, 6.285, 6.825, 6.285, 6.97, 5.835, 6.97], "confidence": 1.0, "elements": - ["#/analyzeResult/readResults/0/lines/37/words/0"]}, "Half": {"type": "string", - "valueString": "$350", "text": "$350", "page": 1, "boundingBox": [5.835, 8.305, - 6.16, 8.305, 6.16, 8.45, 5.835, 8.45], "confidence": 1.0, "elements": ["#/analyzeResult/readResults/0/lines/53/words/0"]}, + "pageRange": [1, 2], "fields": {"Full": {"type": "string", "valueString": + "$600", "text": "$600", "page": 1, "boundingBox": [5.835, 7.67, 6.16, 7.67, + 6.16, 7.815, 5.835, 7.815], "confidence": 1.0, "elements": ["#/analyzeResult/readResults/0/lines/46/words/0"]}, "Silver": {"type": "string", "valueString": "$1,200", "text": "$1,200", "page": 1, "boundingBox": [5.835, 5.97, 6.285, 5.97, 6.285, 6.115, 5.835, 6.115], "confidence": 1.0, "elements": ["#/analyzeResult/readResults/0/lines/27/words/0"]}, - "Full": {"type": "string", "valueString": "$600", "text": "$600", "page": - 1, "boundingBox": [5.835, 7.67, 6.16, 7.67, 6.16, 7.815, 5.835, 7.815], "confidence": - 1.0, "elements": ["#/analyzeResult/readResults/0/lines/46/words/0"]}, "Gold": - {"type": "string", "valueString": "$1,500", "text": "$1,500", "page": 1, "boundingBox": - [5.835, 4.9, 6.285, 4.9, 6.285, 5.045, 5.835, 5.045], "confidence": 1.0, "elements": - ["#/analyzeResult/readResults/0/lines/16/words/0"]}}}], "errors": []}}' + "Bronze": {"type": "string", "valueString": "$1,000", "text": "$1,000", "page": + 1, "boundingBox": [5.835, 6.825, 6.285, 6.825, 6.285, 6.97, 5.835, 6.97], + "confidence": 1.0, "elements": ["#/analyzeResult/readResults/0/lines/37/words/0"]}, + "Contact": {"type": "string", "valueString": "Jamie@southridgevideo.com", + "text": "Jamie@southridgevideo.com", "page": 2, "boundingBox": [1.62, 3.1, + 3.575, 3.1, 3.575, 3.245, 1.62, 3.245], "confidence": 1.0, "elements": ["#/analyzeResult/readResults/1/lines/3/words/1"]}, + "Gold": {"type": "string", "valueString": "$1,500", "text": "$1,500", "page": + 1, "boundingBox": [5.835, 4.9, 6.285, 4.9, 6.285, 5.045, 5.835, 5.045], "confidence": + 1.0, "elements": ["#/analyzeResult/readResults/0/lines/16/words/0"]}, "Half": + {"type": "string", "valueString": "$350", "text": "$350", "page": 1, "boundingBox": + [5.835, 8.305, 6.16, 8.305, 6.16, 8.45, 5.835, 8.45], "confidence": 1.0, "elements": + ["#/analyzeResult/readResults/0/lines/53/words/0"]}, "CompanyName": {"type": + "string", "valueString": "Southridge Video", "text": "Southridge Video", "page": + 2, "boundingBox": [2.19, 2.77, 3.35, 2.77, 3.35, 2.915, 2.19, 2.915], "confidence": + 1.0, "elements": ["#/analyzeResult/readResults/1/lines/2/words/2", "#/analyzeResult/readResults/1/lines/2/words/3"]}}}], + "errors": []}}' headers: apim-request-id: - - 61fb3709-f4a2-42b0-b0ee-e78ce4d75c85 + - c92d77e0-cda1-409e-8e7c-58110899b2b3 content-length: - '34159' content-type: - application/json; charset=utf-8 date: - - Thu, 11 Jun 2020 15:42:30 GMT + - Fri, 10 Jul 2020 18:44:01 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '27' + - '56' status: code: 200 message: OK diff --git a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_custom_forms_from_url.test_custom_form_multipage_vendor_set_unlabeled_transform.yaml b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_custom_forms_from_url.test_custom_form_multipage_vendor_set_unlabeled_transform.yaml index 38126d6c9661..430a5995b1c6 100644 --- a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_custom_forms_from_url.test_custom_form_multipage_vendor_set_unlabeled_transform.yaml +++ b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_custom_forms_from_url.test_custom_form_multipage_vendor_set_unlabeled_transform.yaml @@ -14,28 +14,27 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) method: POST - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models response: body: string: '' headers: apim-request-id: - - 93c5438e-186f-43a2-b04a-c649b1a73f65 + - 7eb8f083-f6f3-44a0-b603-367a1f1b2673 content-length: - '0' date: - - Thu, 11 Jun 2020 15:42:31 GMT + - Fri, 10 Jul 2020 18:44:01 GMT location: - - https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/26ba3a02-90a7-4b2c-8a0b-611e526896c7 + - https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/16fbfaea-2782-464c-bc49-276c08b67b33 strict-transport-security: - max-age=31536000; includeSubDomains; preload x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '39' + - '71' status: code: 201 message: Created @@ -49,22 +48,21 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/26ba3a02-90a7-4b2c-8a0b-611e526896c7?includeKeys=true + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/16fbfaea-2782-464c-bc49-276c08b67b33?includeKeys=true response: body: - string: '{"modelInfo": {"modelId": "26ba3a02-90a7-4b2c-8a0b-611e526896c7", "status": - "creating", "createdDateTime": "2020-06-11T15:42:31Z", "lastUpdatedDateTime": - "2020-06-11T15:42:31Z"}}' + string: '{"modelInfo": {"modelId": "16fbfaea-2782-464c-bc49-276c08b67b33", "status": + "creating", "createdDateTime": "2020-07-10T18:44:02Z", "lastUpdatedDateTime": + "2020-07-10T18:44:02Z"}}' headers: apim-request-id: - - b9a8b2e1-5cd8-4f13-b695-7bf4c6509b8a + - 63f60714-5cdc-4bd1-aa73-666712828df4 content-type: - application/json; charset=utf-8 date: - - Thu, 11 Jun 2020 15:42:35 GMT + - Fri, 10 Jul 2020 18:44:07 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -72,7 +70,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '46' + - '50' status: code: 200 message: OK @@ -86,22 +84,21 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/26ba3a02-90a7-4b2c-8a0b-611e526896c7?includeKeys=true + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/16fbfaea-2782-464c-bc49-276c08b67b33?includeKeys=true response: body: - string: '{"modelInfo": {"modelId": "26ba3a02-90a7-4b2c-8a0b-611e526896c7", "status": - "creating", "createdDateTime": "2020-06-11T15:42:31Z", "lastUpdatedDateTime": - "2020-06-11T15:42:31Z"}}' + string: '{"modelInfo": {"modelId": "16fbfaea-2782-464c-bc49-276c08b67b33", "status": + "creating", "createdDateTime": "2020-07-10T18:44:02Z", "lastUpdatedDateTime": + "2020-07-10T18:44:02Z"}}' headers: apim-request-id: - - 44d13eea-fcee-4c4f-b7bb-65de80a26a92 + - 895989c0-ab5f-46f4-b081-d33f35e07782 content-type: - application/json; charset=utf-8 date: - - Thu, 11 Jun 2020 15:42:40 GMT + - Fri, 10 Jul 2020 18:44:11 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -123,15 +120,158 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + method: GET + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/16fbfaea-2782-464c-bc49-276c08b67b33?includeKeys=true + response: + body: + string: '{"modelInfo": {"modelId": "16fbfaea-2782-464c-bc49-276c08b67b33", "status": + "creating", "createdDateTime": "2020-07-10T18:44:02Z", "lastUpdatedDateTime": + "2020-07-10T18:44:02Z"}}' + headers: + apim-request-id: + - 3604cf32-ae6e-4a44-a7d7-64f076a233c4 + content-type: + - application/json; charset=utf-8 + date: + - Fri, 10 Jul 2020 18:44:17 GMT + strict-transport-security: + - max-age=31536000; includeSubDomains; preload + transfer-encoding: + - chunked + x-content-type-options: + - nosniff + x-envoy-upstream-service-time: + - '52' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/26ba3a02-90a7-4b2c-8a0b-611e526896c7?includeKeys=true + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/16fbfaea-2782-464c-bc49-276c08b67b33?includeKeys=true response: body: - string: '{"modelInfo": {"modelId": "26ba3a02-90a7-4b2c-8a0b-611e526896c7", "status": - "ready", "createdDateTime": "2020-06-11T15:42:31Z", "lastUpdatedDateTime": - "2020-06-11T15:42:44Z"}, "keys": {"clusters": {"0": ["Contoso Ltd. Conference + string: '{"modelInfo": {"modelId": "16fbfaea-2782-464c-bc49-276c08b67b33", "status": + "creating", "createdDateTime": "2020-07-10T18:44:02Z", "lastUpdatedDateTime": + "2020-07-10T18:44:02Z"}}' + headers: + apim-request-id: + - 06c4b9dd-799c-4be6-b0b9-66250e92e621 + content-type: + - application/json; charset=utf-8 + date: + - Fri, 10 Jul 2020 18:44:22 GMT + strict-transport-security: + - max-age=31536000; includeSubDomains; preload + transfer-encoding: + - chunked + x-content-type-options: + - nosniff + x-envoy-upstream-service-time: + - '49' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + method: GET + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/16fbfaea-2782-464c-bc49-276c08b67b33?includeKeys=true + response: + body: + string: '{"modelInfo": {"modelId": "16fbfaea-2782-464c-bc49-276c08b67b33", "status": + "creating", "createdDateTime": "2020-07-10T18:44:02Z", "lastUpdatedDateTime": + "2020-07-10T18:44:02Z"}}' + headers: + apim-request-id: + - 157a5e22-dd00-437e-81bb-eb1bf6495eb8 + content-type: + - application/json; charset=utf-8 + date: + - Fri, 10 Jul 2020 18:44:27 GMT + strict-transport-security: + - max-age=31536000; includeSubDomains; preload + transfer-encoding: + - chunked + x-content-type-options: + - nosniff + x-envoy-upstream-service-time: + - '50' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + method: GET + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/16fbfaea-2782-464c-bc49-276c08b67b33?includeKeys=true + response: + body: + string: '{"modelInfo": {"modelId": "16fbfaea-2782-464c-bc49-276c08b67b33", "status": + "creating", "createdDateTime": "2020-07-10T18:44:02Z", "lastUpdatedDateTime": + "2020-07-10T18:44:02Z"}}' + headers: + apim-request-id: + - cde30aa9-461f-4582-83c6-1b2081f5b61a + content-type: + - application/json; charset=utf-8 + date: + - Fri, 10 Jul 2020 18:44:32 GMT + strict-transport-security: + - max-age=31536000; includeSubDomains; preload + transfer-encoding: + - chunked + x-content-type-options: + - nosniff + x-envoy-upstream-service-time: + - '49' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + method: GET + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/16fbfaea-2782-464c-bc49-276c08b67b33?includeKeys=true + response: + body: + string: '{"modelInfo": {"modelId": "16fbfaea-2782-464c-bc49-276c08b67b33", "status": + "ready", "createdDateTime": "2020-07-10T18:44:02Z", "lastUpdatedDateTime": + "2020-07-10T18:44:34Z"}, "keys": {"clusters": {"0": ["Contoso Ltd. Conference will be held on May 28-29, 2020 at the Elm Conference Center in", "Included", "Maple City, Massachusetts. The conference has sold out of its 1,500 tickets, with a 400 person", "Package", "Price", "Rates:", "Vendor #:", "Vendor Registration", @@ -147,11 +287,11 @@ interactions: []}}' headers: apim-request-id: - - a6d7dc41-e589-471e-b7ec-e558eb8fcc90 + - d9875637-dc3b-4fd4-a34e-e3ca5d94c79b content-type: - application/json; charset=utf-8 date: - - Thu, 11 Jun 2020 15:42:46 GMT + - Fri, 10 Jul 2020 18:44:38 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -159,7 +299,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '49' + - '756' status: code: 200 message: OK @@ -177,28 +317,27 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) method: POST - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/26ba3a02-90a7-4b2c-8a0b-611e526896c7/analyze?includeTextDetails=true + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/16fbfaea-2782-464c-bc49-276c08b67b33/analyze?includeTextDetails=true response: body: string: '' headers: apim-request-id: - - 65970766-46d6-4f80-bb8e-efb4d6912a74 + - 37c04fe9-a8b5-4450-9680-f17c60781ba0 content-length: - '0' date: - - Thu, 11 Jun 2020 15:42:49 GMT + - Fri, 10 Jul 2020 18:44:39 GMT operation-location: - - https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/26ba3a02-90a7-4b2c-8a0b-611e526896c7/analyzeresults/92fe165b-84e3-4ff2-aa69-262373db1484 + - https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/16fbfaea-2782-464c-bc49-276c08b67b33/analyzeresults/eba4192c-b264-4ad2-a92f-5c44d628435f strict-transport-security: - max-age=31536000; includeSubDomains; preload x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '2712' + - '870' status: code: 202 message: Accepted @@ -212,29 +351,273 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + method: GET + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/16fbfaea-2782-464c-bc49-276c08b67b33/analyzeresults/eba4192c-b264-4ad2-a92f-5c44d628435f + response: + body: + string: '{"status": "notStarted", "createdDateTime": "2020-07-10T18:44:39Z", + "lastUpdatedDateTime": "2020-07-10T18:44:39Z"}' + headers: + apim-request-id: + - 5871d064-239b-41e4-b238-193d6afafd05 + content-length: + - '109' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 10 Jul 2020 18:44:44 GMT + strict-transport-security: + - max-age=31536000; includeSubDomains; preload + x-content-type-options: + - nosniff + x-envoy-upstream-service-time: + - '17' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/26ba3a02-90a7-4b2c-8a0b-611e526896c7/analyzeresults/92fe165b-84e3-4ff2-aa69-262373db1484 + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/16fbfaea-2782-464c-bc49-276c08b67b33/analyzeresults/eba4192c-b264-4ad2-a92f-5c44d628435f response: body: - string: '{"status": "notStarted", "createdDateTime": "2020-06-11T15:42:47Z", - "lastUpdatedDateTime": "2020-06-11T15:42:47Z"}' + string: '{"status": "notStarted", "createdDateTime": "2020-07-10T18:44:39Z", + "lastUpdatedDateTime": "2020-07-10T18:44:39Z"}' headers: apim-request-id: - - e97d99ea-89ab-4b1c-8271-20192300f453 + - 2132fc67-7f8d-45b2-8676-98eb1b429a8b content-length: - '109' content-type: - application/json; charset=utf-8 date: - - Thu, 11 Jun 2020 15:42:54 GMT + - Fri, 10 Jul 2020 18:44:49 GMT + strict-transport-security: + - max-age=31536000; includeSubDomains; preload + x-content-type-options: + - nosniff + x-envoy-upstream-service-time: + - '50' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + method: GET + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/16fbfaea-2782-464c-bc49-276c08b67b33/analyzeresults/eba4192c-b264-4ad2-a92f-5c44d628435f + response: + body: + string: '{"status": "notStarted", "createdDateTime": "2020-07-10T18:44:39Z", + "lastUpdatedDateTime": "2020-07-10T18:44:39Z"}' + headers: + apim-request-id: + - 76b3d59c-612a-440b-a6b6-6774365c15d4 + content-length: + - '109' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 10 Jul 2020 18:44:56 GMT + strict-transport-security: + - max-age=31536000; includeSubDomains; preload + x-content-type-options: + - nosniff + x-envoy-upstream-service-time: + - '1022' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + method: GET + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/16fbfaea-2782-464c-bc49-276c08b67b33/analyzeresults/eba4192c-b264-4ad2-a92f-5c44d628435f + response: + body: + string: '{"status": "notStarted", "createdDateTime": "2020-07-10T18:44:39Z", + "lastUpdatedDateTime": "2020-07-10T18:44:39Z"}' + headers: + apim-request-id: + - 8cdda87c-f159-4700-8de9-4d0c0f8adad8 + content-length: + - '109' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 10 Jul 2020 18:45:01 GMT + strict-transport-security: + - max-age=31536000; includeSubDomains; preload + x-content-type-options: + - nosniff + x-envoy-upstream-service-time: + - '47' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + method: GET + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/16fbfaea-2782-464c-bc49-276c08b67b33/analyzeresults/eba4192c-b264-4ad2-a92f-5c44d628435f + response: + body: + string: '{"status": "running", "createdDateTime": "2020-07-10T18:44:39Z", "lastUpdatedDateTime": + "2020-07-10T18:45:04Z", "analyzeResult": null}' + headers: + apim-request-id: + - dcc7373c-5f7f-47d3-9997-26d1bd782242 + content-length: + - '134' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 10 Jul 2020 18:45:06 GMT + strict-transport-security: + - max-age=31536000; includeSubDomains; preload + x-content-type-options: + - nosniff + x-envoy-upstream-service-time: + - '46' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + method: GET + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/16fbfaea-2782-464c-bc49-276c08b67b33/analyzeresults/eba4192c-b264-4ad2-a92f-5c44d628435f + response: + body: + string: '{"status": "running", "createdDateTime": "2020-07-10T18:44:39Z", "lastUpdatedDateTime": + "2020-07-10T18:45:04Z", "analyzeResult": null}' + headers: + apim-request-id: + - 175c688d-549b-46fb-bdb7-26be97ca99a7 + content-length: + - '134' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 10 Jul 2020 18:45:12 GMT + strict-transport-security: + - max-age=31536000; includeSubDomains; preload + x-content-type-options: + - nosniff + x-envoy-upstream-service-time: + - '905' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + method: GET + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/16fbfaea-2782-464c-bc49-276c08b67b33/analyzeresults/eba4192c-b264-4ad2-a92f-5c44d628435f + response: + body: + string: '{"status": "running", "createdDateTime": "2020-07-10T18:44:39Z", "lastUpdatedDateTime": + "2020-07-10T18:45:04Z", "analyzeResult": null}' + headers: + apim-request-id: + - 3dc7571e-9e1a-4ce6-bb26-053656b4fd90 + content-length: + - '134' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 10 Jul 2020 18:45:18 GMT + strict-transport-security: + - max-age=31536000; includeSubDomains; preload + x-content-type-options: + - nosniff + x-envoy-upstream-service-time: + - '48' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + method: GET + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/16fbfaea-2782-464c-bc49-276c08b67b33/analyzeresults/eba4192c-b264-4ad2-a92f-5c44d628435f + response: + body: + string: '{"status": "running", "createdDateTime": "2020-07-10T18:44:39Z", "lastUpdatedDateTime": + "2020-07-10T18:45:04Z", "analyzeResult": null}' + headers: + apim-request-id: + - c85b56ad-7c15-470f-80e2-ae93b1be078f + content-length: + - '134' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 10 Jul 2020 18:45:22 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '54' + - '18' status: code: 200 message: OK @@ -248,29 +631,28 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/26ba3a02-90a7-4b2c-8a0b-611e526896c7/analyzeresults/92fe165b-84e3-4ff2-aa69-262373db1484 + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/16fbfaea-2782-464c-bc49-276c08b67b33/analyzeresults/eba4192c-b264-4ad2-a92f-5c44d628435f response: body: - string: '{"status": "running", "createdDateTime": "2020-06-11T15:42:47Z", "lastUpdatedDateTime": - "2020-06-11T15:42:55Z", "analyzeResult": null}' + string: '{"status": "running", "createdDateTime": "2020-07-10T18:44:39Z", "lastUpdatedDateTime": + "2020-07-10T18:45:04Z", "analyzeResult": null}' headers: apim-request-id: - - ad3c51cd-e2a9-4286-ae8b-b23cab214960 + - ada0829c-c573-4b63-9196-66b8fb241a5f content-length: - '134' content-type: - application/json; charset=utf-8 date: - - Thu, 11 Jun 2020 15:42:59 GMT + - Fri, 10 Jul 2020 18:45:27 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '55' + - '16' status: code: 200 message: OK @@ -284,14 +666,13 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/26ba3a02-90a7-4b2c-8a0b-611e526896c7/analyzeresults/92fe165b-84e3-4ff2-aa69-262373db1484 + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/16fbfaea-2782-464c-bc49-276c08b67b33/analyzeresults/eba4192c-b264-4ad2-a92f-5c44d628435f response: body: - string: '{"status": "succeeded", "createdDateTime": "2020-06-11T15:42:47Z", - "lastUpdatedDateTime": "2020-06-11T15:43:01Z", "analyzeResult": {"version": + string: '{"status": "succeeded", "createdDateTime": "2020-07-10T18:44:39Z", + "lastUpdatedDateTime": "2020-07-10T18:45:10Z", "analyzeResult": {"version": "2.0.0", "readResults": [{"page": 1, "angle": 0, "width": 8.5, "height": 11.0, "unit": "inch", "lines": [{"text": "Vendor #:", "boundingBox": [6.1236, 1.0014, 7.1167, 1.0014, 7.1167, 1.3056, 6.1236, 1.3056], "words": [{"text": "Vendor", @@ -742,19 +1123,19 @@ interactions: "errors": []}}' headers: apim-request-id: - - 4e3a20a3-9609-4273-b935-76b4c752b618 + - ffadc2a9-7e65-4f2a-bd59-ae5243c94e30 content-length: - '36398' content-type: - application/json; charset=utf-8 date: - - Thu, 11 Jun 2020 15:43:05 GMT + - Fri, 10 Jul 2020 18:45:33 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '30' + - '51' status: code: 200 message: OK diff --git a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_custom_forms_from_url.test_custom_form_unlabeled.yaml b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_custom_forms_from_url.test_custom_form_unlabeled.yaml index 9ad9fc5ae84b..c5707e673626 100644 --- a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_custom_forms_from_url.test_custom_form_unlabeled.yaml +++ b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_custom_forms_from_url.test_custom_form_unlabeled.yaml @@ -14,28 +14,27 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) method: POST - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models response: body: string: '' headers: apim-request-id: - - 57a18a12-7c0b-4dc7-83d9-c7a218c1cef3 + - a51f79d3-42e1-42e7-a7f1-90b5d0111b04 content-length: - '0' date: - - Thu, 11 Jun 2020 15:43:06 GMT + - Fri, 10 Jul 2020 18:45:33 GMT location: - - https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/bb736988-d73d-4eb1-8ff6-fca968ec8209 + - https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/c7694185-4e03-4b34-85ce-d979024821b5 strict-transport-security: - max-age=31536000; includeSubDomains; preload x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '77' + - '68' status: code: 201 message: Created @@ -49,22 +48,21 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/bb736988-d73d-4eb1-8ff6-fca968ec8209?includeKeys=true + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/c7694185-4e03-4b34-85ce-d979024821b5?includeKeys=true response: body: - string: '{"modelInfo": {"modelId": "bb736988-d73d-4eb1-8ff6-fca968ec8209", "status": - "creating", "createdDateTime": "2020-06-11T15:43:06Z", "lastUpdatedDateTime": - "2020-06-11T15:43:06Z"}}' + string: '{"modelInfo": {"modelId": "c7694185-4e03-4b34-85ce-d979024821b5", "status": + "creating", "createdDateTime": "2020-07-10T18:45:34Z", "lastUpdatedDateTime": + "2020-07-10T18:45:34Z"}}' headers: apim-request-id: - - 2e80bdd3-8d36-4942-b844-8f679ce767d3 + - 767131ab-1ab1-48dd-a0b9-c568271b5d6a content-type: - application/json; charset=utf-8 date: - - Thu, 11 Jun 2020 15:43:10 GMT + - Fri, 10 Jul 2020 18:45:39 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -72,7 +70,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '45' + - '49' status: code: 200 message: OK @@ -86,22 +84,31 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/bb736988-d73d-4eb1-8ff6-fca968ec8209?includeKeys=true + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/c7694185-4e03-4b34-85ce-d979024821b5?includeKeys=true response: body: - string: '{"modelInfo": {"modelId": "bb736988-d73d-4eb1-8ff6-fca968ec8209", "status": - "creating", "createdDateTime": "2020-06-11T15:43:06Z", "lastUpdatedDateTime": - "2020-06-11T15:43:06Z"}}' + string: '{"modelInfo": {"modelId": "c7694185-4e03-4b34-85ce-d979024821b5", "status": + "ready", "createdDateTime": "2020-07-10T18:45:34Z", "lastUpdatedDateTime": + "2020-07-10T18:45:43Z"}, "keys": {"clusters": {"0": ["Additional Notes:", + "Address:", "Company Name:", "Company Phone:", "Dated As:", "Details", "Email:", + "Hero Limited", "Name:", "Phone:", "Purchase Order", "Purchase Order #:", + "Quantity", "SUBTOTAL", "Seattle, WA 93849 Phone:", "Shipped From", "Shipped + To", "TAX", "TOTAL", "Total", "Unit Price", "Vendor Name:", "Website:"]}}, + "trainResult": {"trainingDocuments": [{"documentName": "Form_1.jpg", "pages": + 1, "errors": [], "status": "succeeded"}, {"documentName": "Form_2.jpg", "pages": + 1, "errors": [], "status": "succeeded"}, {"documentName": "Form_3.jpg", "pages": + 1, "errors": [], "status": "succeeded"}, {"documentName": "Form_4.jpg", "pages": + 1, "errors": [], "status": "succeeded"}, {"documentName": "Form_5.jpg", "pages": + 1, "errors": [], "status": "succeeded"}], "errors": []}}' headers: apim-request-id: - - 9176532a-70a2-4972-85a0-2a0b00d64705 + - 971c0c5e-3fb0-4188-8540-061caa471856 content-type: - application/json; charset=utf-8 date: - - Thu, 11 Jun 2020 15:43:16 GMT + - Fri, 10 Jul 2020 18:45:45 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -109,12 +116,12 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '16' + - '153' status: code: 200 message: OK - request: - body: null + body: 'b''{"source": "https://raw.githubusercontent.com/Azure/azure-sdk-for-python/master/sdk/formrecognizer/azure-ai-formrecognizer/tests/sample_forms/forms/Form_1.jpg"}''' headers: Accept: - '*/*' @@ -122,34 +129,35 @@ interactions: - gzip, deflate Connection: - keep-alive + Content-Length: + - '160' + Content-Type: + - application/json User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) - method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/bb736988-d73d-4eb1-8ff6-fca968ec8209?includeKeys=true + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + method: POST + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/c7694185-4e03-4b34-85ce-d979024821b5/analyze?includeTextDetails=false response: body: - string: '{"modelInfo": {"modelId": "bb736988-d73d-4eb1-8ff6-fca968ec8209", "status": - "creating", "createdDateTime": "2020-06-11T15:43:06Z", "lastUpdatedDateTime": - "2020-06-11T15:43:06Z"}}' + string: '' headers: apim-request-id: - - 8f50e005-6772-46cf-9361-e1faea5896a5 - content-type: - - application/json; charset=utf-8 + - a41abe21-d105-4959-af2d-8dcb43499524 + content-length: + - '0' date: - - Thu, 11 Jun 2020 15:43:21 GMT + - Fri, 10 Jul 2020 18:45:45 GMT + operation-location: + - https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/c7694185-4e03-4b34-85ce-d979024821b5/analyzeresults/2f016343-2ced-4ed3-bf89-bffb77d4ffdf strict-transport-security: - max-age=31536000; includeSubDomains; preload - transfer-encoding: - - chunked x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '18' + - '214' status: - code: 200 - message: OK + code: 202 + message: Accepted - request: body: null headers: @@ -160,30 +168,28 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/bb736988-d73d-4eb1-8ff6-fca968ec8209?includeKeys=true + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/c7694185-4e03-4b34-85ce-d979024821b5/analyzeresults/2f016343-2ced-4ed3-bf89-bffb77d4ffdf response: body: - string: '{"modelInfo": {"modelId": "bb736988-d73d-4eb1-8ff6-fca968ec8209", "status": - "creating", "createdDateTime": "2020-06-11T15:43:06Z", "lastUpdatedDateTime": - "2020-06-11T15:43:06Z"}}' + string: '{"status": "notStarted", "createdDateTime": "2020-07-10T18:45:45Z", + "lastUpdatedDateTime": "2020-07-10T18:45:45Z"}' headers: apim-request-id: - - 40595b79-c146-4ff8-9180-12a6c2d87c29 + - 52ef1fc3-0096-4f45-901d-20f38e25ae77 + content-length: + - '109' content-type: - application/json; charset=utf-8 date: - - Thu, 11 Jun 2020 15:43:27 GMT + - Fri, 10 Jul 2020 18:45:50 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload - transfer-encoding: - - chunked x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '1002' + - '19' status: code: 200 message: OK @@ -197,30 +203,28 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/bb736988-d73d-4eb1-8ff6-fca968ec8209?includeKeys=true + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/c7694185-4e03-4b34-85ce-d979024821b5/analyzeresults/2f016343-2ced-4ed3-bf89-bffb77d4ffdf response: body: - string: '{"modelInfo": {"modelId": "bb736988-d73d-4eb1-8ff6-fca968ec8209", "status": - "creating", "createdDateTime": "2020-06-11T15:43:06Z", "lastUpdatedDateTime": - "2020-06-11T15:43:06Z"}}' + string: '{"status": "notStarted", "createdDateTime": "2020-07-10T18:45:45Z", + "lastUpdatedDateTime": "2020-07-10T18:45:45Z"}' headers: apim-request-id: - - 9e05faae-bbae-4af4-abca-37057e2aa159 + - 63c99fc9-1005-4aed-8f0f-ddbcac782c87 + content-length: + - '109' content-type: - application/json; charset=utf-8 date: - - Thu, 11 Jun 2020 15:43:32 GMT + - Fri, 10 Jul 2020 18:45:55 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload - transfer-encoding: - - chunked x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '19' + - '46' status: code: 200 message: OK @@ -234,26 +238,24 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/bb736988-d73d-4eb1-8ff6-fca968ec8209?includeKeys=true + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/c7694185-4e03-4b34-85ce-d979024821b5/analyzeresults/2f016343-2ced-4ed3-bf89-bffb77d4ffdf response: body: - string: '{"modelInfo": {"modelId": "bb736988-d73d-4eb1-8ff6-fca968ec8209", "status": - "creating", "createdDateTime": "2020-06-11T15:43:06Z", "lastUpdatedDateTime": - "2020-06-11T15:43:06Z"}}' + string: '{"status": "notStarted", "createdDateTime": "2020-07-10T18:45:45Z", + "lastUpdatedDateTime": "2020-07-10T18:45:45Z"}' headers: apim-request-id: - - a04167dc-2727-4153-945c-e820ddf07fa5 + - 0d09b0a5-7d6d-4abe-bbef-ef5a86b99660 + content-length: + - '109' content-type: - application/json; charset=utf-8 date: - - Thu, 11 Jun 2020 15:43:37 GMT + - Fri, 10 Jul 2020 18:46:00 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload - transfer-encoding: - - chunked x-content-type-options: - nosniff x-envoy-upstream-service-time: @@ -271,45 +273,33 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/bb736988-d73d-4eb1-8ff6-fca968ec8209?includeKeys=true + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/c7694185-4e03-4b34-85ce-d979024821b5/analyzeresults/2f016343-2ced-4ed3-bf89-bffb77d4ffdf response: body: - string: '{"modelInfo": {"modelId": "bb736988-d73d-4eb1-8ff6-fca968ec8209", "status": - "ready", "createdDateTime": "2020-06-11T15:43:06Z", "lastUpdatedDateTime": - "2020-06-11T15:43:38Z"}, "keys": {"clusters": {"0": ["Additional Notes:", - "Address:", "Company Name:", "Company Phone:", "Dated As:", "Details", "Email:", - "Hero Limited", "Name:", "Phone:", "Purchase Order", "Purchase Order #:", - "Quantity", "SUBTOTAL", "Seattle, WA 93849 Phone:", "Shipped From", "Shipped - To", "TAX", "TOTAL", "Total", "Unit Price", "Vendor Name:", "Website:"]}}, - "trainResult": {"trainingDocuments": [{"documentName": "Form_1.jpg", "pages": - 1, "errors": [], "status": "succeeded"}, {"documentName": "Form_2.jpg", "pages": - 1, "errors": [], "status": "succeeded"}, {"documentName": "Form_3.jpg", "pages": - 1, "errors": [], "status": "succeeded"}, {"documentName": "Form_4.jpg", "pages": - 1, "errors": [], "status": "succeeded"}, {"documentName": "Form_5.jpg", "pages": - 1, "errors": [], "status": "succeeded"}], "errors": []}}' + string: '{"status": "notStarted", "createdDateTime": "2020-07-10T18:45:45Z", + "lastUpdatedDateTime": "2020-07-10T18:45:45Z"}' headers: apim-request-id: - - c67b1a59-8fde-417b-ab11-1b45ae874a64 + - 07db740f-c62a-43ab-9ba7-45a0de361db0 + content-length: + - '109' content-type: - application/json; charset=utf-8 date: - - Thu, 11 Jun 2020 15:43:42 GMT + - Fri, 10 Jul 2020 18:46:05 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload - transfer-encoding: - - chunked x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '18' + - '19' status: code: 200 message: OK - request: - body: 'b''{"source": "https://raw.githubusercontent.com/Azure/azure-sdk-for-python/master/sdk/formrecognizer/azure-ai-formrecognizer/tests/sample_forms/forms/Form_1.jpg"}''' + body: null headers: Accept: - '*/*' @@ -317,36 +307,32 @@ interactions: - gzip, deflate Connection: - keep-alive - Content-Length: - - '160' - Content-Type: - - application/json User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) - method: POST - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/bb736988-d73d-4eb1-8ff6-fca968ec8209/analyze?includeTextDetails=false + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + method: GET + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/c7694185-4e03-4b34-85ce-d979024821b5/analyzeresults/2f016343-2ced-4ed3-bf89-bffb77d4ffdf response: body: - string: '' + string: '{"status": "notStarted", "createdDateTime": "2020-07-10T18:45:45Z", + "lastUpdatedDateTime": "2020-07-10T18:45:45Z"}' headers: apim-request-id: - - e0eabb5c-3dec-4caf-b422-97389b673aa8 + - 5102d0a7-5118-4adf-b181-f8a72d8eb2d6 content-length: - - '0' + - '109' + content-type: + - application/json; charset=utf-8 date: - - Thu, 11 Jun 2020 15:43:43 GMT - operation-location: - - https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/bb736988-d73d-4eb1-8ff6-fca968ec8209/analyzeresults/ceba15bc-74cc-47d2-aeb3-6508aa14ec4e + - Fri, 10 Jul 2020 18:46:10 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '87' + - '16' status: - code: 202 - message: Accepted + code: 200 + message: OK - request: body: null headers: @@ -357,29 +343,28 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/bb736988-d73d-4eb1-8ff6-fca968ec8209/analyzeresults/ceba15bc-74cc-47d2-aeb3-6508aa14ec4e + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/c7694185-4e03-4b34-85ce-d979024821b5/analyzeresults/2f016343-2ced-4ed3-bf89-bffb77d4ffdf response: body: - string: '{"status": "running", "createdDateTime": "2020-06-11T15:43:44Z", "lastUpdatedDateTime": - "2020-06-11T15:43:48Z", "analyzeResult": null}' + string: '{"status": "notStarted", "createdDateTime": "2020-07-10T18:45:45Z", + "lastUpdatedDateTime": "2020-07-10T18:45:45Z"}' headers: apim-request-id: - - 59986052-078f-4ba6-8189-1fdea0a9a246 + - a2a3f488-233f-488f-a436-3da4ea62d201 content-length: - - '134' + - '109' content-type: - application/json; charset=utf-8 date: - - Thu, 11 Jun 2020 15:43:49 GMT + - Fri, 10 Jul 2020 18:46:18 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '15' + - '2377' status: code: 200 message: OK @@ -393,23 +378,22 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/bb736988-d73d-4eb1-8ff6-fca968ec8209/analyzeresults/ceba15bc-74cc-47d2-aeb3-6508aa14ec4e + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/c7694185-4e03-4b34-85ce-d979024821b5/analyzeresults/2f016343-2ced-4ed3-bf89-bffb77d4ffdf response: body: - string: '{"status": "running", "createdDateTime": "2020-06-11T15:43:44Z", "lastUpdatedDateTime": - "2020-06-11T15:43:48Z", "analyzeResult": null}' + string: '{"status": "running", "createdDateTime": "2020-07-10T18:45:45Z", "lastUpdatedDateTime": + "2020-07-10T18:46:06Z", "analyzeResult": null}' headers: apim-request-id: - - 950e58f0-3fda-4d7d-98fc-43cd939919f1 + - 506ea220-a426-41a0-bf27-1e6bb198a324 content-length: - '134' content-type: - application/json; charset=utf-8 date: - - Thu, 11 Jun 2020 15:43:54 GMT + - Fri, 10 Jul 2020 18:46:24 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload x-content-type-options: @@ -429,14 +413,13 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/bb736988-d73d-4eb1-8ff6-fca968ec8209/analyzeresults/ceba15bc-74cc-47d2-aeb3-6508aa14ec4e + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/c7694185-4e03-4b34-85ce-d979024821b5/analyzeresults/2f016343-2ced-4ed3-bf89-bffb77d4ffdf response: body: - string: '{"status": "succeeded", "createdDateTime": "2020-06-11T15:43:44Z", - "lastUpdatedDateTime": "2020-06-11T15:43:54Z", "analyzeResult": {"version": + string: '{"status": "succeeded", "createdDateTime": "2020-07-10T18:45:45Z", + "lastUpdatedDateTime": "2020-07-10T18:46:26Z", "analyzeResult": {"version": "2.0.0", "readResults": [{"page": 1, "angle": 0.16, "width": 1700, "height": 2200, "unit": "pixel", "lines": []}], "pageResults": [{"page": 1, "keyValuePairs": [{"key": {"text": "Hero Limited", "boundingBox": [620.0, 203.0, 1078.0, 203.0, @@ -586,19 +569,19 @@ interactions: false}]}], "clusterId": 0}], "documentResults": [], "errors": []}}' headers: apim-request-id: - - 73e0c79f-e21b-4710-b69a-e23ea17b42c4 + - e8bc2bfd-0a50-45b5-ac16-4e2df8420f55 content-length: - '11800' content-type: - application/json; charset=utf-8 date: - - Thu, 11 Jun 2020 15:43:59 GMT + - Fri, 10 Jul 2020 18:46:28 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '882' + - '17' status: code: 200 message: OK diff --git a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_custom_forms_from_url.test_custom_form_unlabeled_transform.yaml b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_custom_forms_from_url.test_custom_form_unlabeled_transform.yaml index 8da319fec2d2..a54ae8130208 100644 --- a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_custom_forms_from_url.test_custom_form_unlabeled_transform.yaml +++ b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_custom_forms_from_url.test_custom_form_unlabeled_transform.yaml @@ -14,28 +14,27 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) method: POST - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models response: body: string: '' headers: apim-request-id: - - 7be51198-4b17-44cc-ae26-4945eaf43c9e + - 64858f51-7849-4ece-bae0-29b245aad883 content-length: - '0' date: - - Thu, 11 Jun 2020 15:44:01 GMT + - Fri, 10 Jul 2020 18:46:29 GMT location: - - https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/6534a84c-6731-472c-bc93-1a3ed5f0137c + - https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/755051cc-725e-48be-b003-517c8ab466f6 strict-transport-security: - max-age=31536000; includeSubDomains; preload x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '66' + - '98' status: code: 201 message: Created @@ -49,22 +48,21 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/6534a84c-6731-472c-bc93-1a3ed5f0137c?includeKeys=true + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/755051cc-725e-48be-b003-517c8ab466f6?includeKeys=true response: body: - string: '{"modelInfo": {"modelId": "6534a84c-6731-472c-bc93-1a3ed5f0137c", "status": - "creating", "createdDateTime": "2020-06-11T15:44:01Z", "lastUpdatedDateTime": - "2020-06-11T15:44:01Z"}}' + string: '{"modelInfo": {"modelId": "755051cc-725e-48be-b003-517c8ab466f6", "status": + "creating", "createdDateTime": "2020-07-10T18:46:29Z", "lastUpdatedDateTime": + "2020-07-10T18:46:29Z"}}' headers: apim-request-id: - - cc8add4d-b164-4d0f-b50b-69a8beae8055 + - caaba99f-16ac-4122-8aa5-937b5494bc69 content-type: - application/json; charset=utf-8 date: - - Thu, 11 Jun 2020 15:44:05 GMT + - Fri, 10 Jul 2020 18:46:35 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -72,7 +70,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '20' + - '51' status: code: 200 message: OK @@ -86,22 +84,21 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/6534a84c-6731-472c-bc93-1a3ed5f0137c?includeKeys=true + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/755051cc-725e-48be-b003-517c8ab466f6?includeKeys=true response: body: - string: '{"modelInfo": {"modelId": "6534a84c-6731-472c-bc93-1a3ed5f0137c", "status": - "creating", "createdDateTime": "2020-06-11T15:44:01Z", "lastUpdatedDateTime": - "2020-06-11T15:44:01Z"}}' + string: '{"modelInfo": {"modelId": "755051cc-725e-48be-b003-517c8ab466f6", "status": + "creating", "createdDateTime": "2020-07-10T18:46:29Z", "lastUpdatedDateTime": + "2020-07-10T18:46:29Z"}}' headers: apim-request-id: - - 50b2547a-7a48-4c4c-bfb2-3c66a8ab2360 + - 10e96b69-904a-4760-bdea-5b8406c59a12 content-type: - application/json; charset=utf-8 date: - - Thu, 11 Jun 2020 15:44:10 GMT + - Fri, 10 Jul 2020 18:46:39 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -109,7 +106,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '16' + - '146' status: code: 200 message: OK @@ -123,32 +120,21 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/6534a84c-6731-472c-bc93-1a3ed5f0137c?includeKeys=true + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/755051cc-725e-48be-b003-517c8ab466f6?includeKeys=true response: body: - string: '{"modelInfo": {"modelId": "6534a84c-6731-472c-bc93-1a3ed5f0137c", "status": - "ready", "createdDateTime": "2020-06-11T15:44:01Z", "lastUpdatedDateTime": - "2020-06-11T15:44:12Z"}, "keys": {"clusters": {"0": ["Additional Notes:", - "Address:", "Company Name:", "Company Phone:", "Dated As:", "Details", "Email:", - "Hero Limited", "Name:", "Phone:", "Purchase Order", "Purchase Order #:", - "Quantity", "SUBTOTAL", "Seattle, WA 93849 Phone:", "Shipped From", "Shipped - To", "TAX", "TOTAL", "Total", "Unit Price", "Vendor Name:", "Website:"]}}, - "trainResult": {"trainingDocuments": [{"documentName": "Form_1.jpg", "pages": - 1, "errors": [], "status": "succeeded"}, {"documentName": "Form_2.jpg", "pages": - 1, "errors": [], "status": "succeeded"}, {"documentName": "Form_3.jpg", "pages": - 1, "errors": [], "status": "succeeded"}, {"documentName": "Form_4.jpg", "pages": - 1, "errors": [], "status": "succeeded"}, {"documentName": "Form_5.jpg", "pages": - 1, "errors": [], "status": "succeeded"}], "errors": []}}' + string: '{"modelInfo": {"modelId": "755051cc-725e-48be-b003-517c8ab466f6", "status": + "creating", "createdDateTime": "2020-07-10T18:46:29Z", "lastUpdatedDateTime": + "2020-07-10T18:46:29Z"}}' headers: apim-request-id: - - 48a3d61f-e2bb-49ef-ae7d-41e6c6d4eb70 + - 7dd60152-14c2-4803-882e-a03975fe0c9b content-type: - application/json; charset=utf-8 date: - - Thu, 11 Jun 2020 15:44:16 GMT + - Fri, 10 Jul 2020 18:46:44 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -156,12 +142,12 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '19' + - '18' status: code: 200 message: OK - request: - body: 'b''{"source": "https://raw.githubusercontent.com/Azure/azure-sdk-for-python/master/sdk/formrecognizer/azure-ai-formrecognizer/tests/sample_forms/forms/Form_1.jpg"}''' + body: null headers: Accept: - '*/*' @@ -169,36 +155,33 @@ interactions: - gzip, deflate Connection: - keep-alive - Content-Length: - - '160' - Content-Type: - - application/json User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) - method: POST - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/6534a84c-6731-472c-bc93-1a3ed5f0137c/analyze?includeTextDetails=true + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + method: GET + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/755051cc-725e-48be-b003-517c8ab466f6?includeKeys=true response: body: - string: '' + string: '{"modelInfo": {"modelId": "755051cc-725e-48be-b003-517c8ab466f6", "status": + "creating", "createdDateTime": "2020-07-10T18:46:29Z", "lastUpdatedDateTime": + "2020-07-10T18:46:29Z"}}' headers: apim-request-id: - - a2005306-aeae-4a80-a02b-6e306de667e3 - content-length: - - '0' + - 06f69cf6-225b-4498-b802-580c50081081 + content-type: + - application/json; charset=utf-8 date: - - Thu, 11 Jun 2020 15:44:19 GMT - operation-location: - - https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/6534a84c-6731-472c-bc93-1a3ed5f0137c/analyzeresults/bad55ada-98ab-403b-bdea-3021c407b325 + - Fri, 10 Jul 2020 18:46:50 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload + transfer-encoding: + - chunked x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '2206' + - '17' status: - code: 202 - message: Accepted + code: 200 + message: OK - request: body: null headers: @@ -209,32 +192,152 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/6534a84c-6731-472c-bc93-1a3ed5f0137c/analyzeresults/bad55ada-98ab-403b-bdea-3021c407b325 + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/755051cc-725e-48be-b003-517c8ab466f6?includeKeys=true response: body: - string: '{"status": "running", "createdDateTime": "2020-06-11T15:44:19Z", "lastUpdatedDateTime": - "2020-06-11T15:44:21Z", "analyzeResult": null}' + string: '{"modelInfo": {"modelId": "755051cc-725e-48be-b003-517c8ab466f6", "status": + "creating", "createdDateTime": "2020-07-10T18:46:29Z", "lastUpdatedDateTime": + "2020-07-10T18:46:29Z"}}' headers: apim-request-id: - - 85e2cac7-c3f7-4ef1-9ad9-789bebcedf00 - content-length: - - '134' + - b4d38d8d-8641-4a0c-922e-2d93651b4305 + content-type: + - application/json; charset=utf-8 + date: + - Fri, 10 Jul 2020 18:46:55 GMT + strict-transport-security: + - max-age=31536000; includeSubDomains; preload + transfer-encoding: + - chunked + x-content-type-options: + - nosniff + x-envoy-upstream-service-time: + - '16' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + method: GET + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/755051cc-725e-48be-b003-517c8ab466f6?includeKeys=true + response: + body: + string: '{"modelInfo": {"modelId": "755051cc-725e-48be-b003-517c8ab466f6", "status": + "creating", "createdDateTime": "2020-07-10T18:46:29Z", "lastUpdatedDateTime": + "2020-07-10T18:46:29Z"}}' + headers: + apim-request-id: + - 4bc9dee8-7132-4678-bc39-f38ee216c75f content-type: - application/json; charset=utf-8 date: - - Thu, 11 Jun 2020 15:44:23 GMT + - Fri, 10 Jul 2020 18:47:00 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload + transfer-encoding: + - chunked x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '18' + - '16' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + method: GET + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/755051cc-725e-48be-b003-517c8ab466f6?includeKeys=true + response: + body: + string: '{"modelInfo": {"modelId": "755051cc-725e-48be-b003-517c8ab466f6", "status": + "ready", "createdDateTime": "2020-07-10T18:46:29Z", "lastUpdatedDateTime": + "2020-07-10T18:46:40Z"}, "keys": {"clusters": {"0": ["Additional Notes:", + "Address:", "Company Name:", "Company Phone:", "Dated As:", "Details", "Email:", + "Hero Limited", "Name:", "Phone:", "Purchase Order", "Purchase Order #:", + "Quantity", "SUBTOTAL", "Seattle, WA 93849 Phone:", "Shipped From", "Shipped + To", "TAX", "TOTAL", "Total", "Unit Price", "Vendor Name:", "Website:"]}}, + "trainResult": {"trainingDocuments": [{"documentName": "Form_1.jpg", "pages": + 1, "errors": [], "status": "succeeded"}, {"documentName": "Form_2.jpg", "pages": + 1, "errors": [], "status": "succeeded"}, {"documentName": "Form_3.jpg", "pages": + 1, "errors": [], "status": "succeeded"}, {"documentName": "Form_4.jpg", "pages": + 1, "errors": [], "status": "succeeded"}, {"documentName": "Form_5.jpg", "pages": + 1, "errors": [], "status": "succeeded"}], "errors": []}}' + headers: + apim-request-id: + - 373e343c-102b-41e8-a318-f615a9e29411 + content-type: + - application/json; charset=utf-8 + date: + - Fri, 10 Jul 2020 18:47:05 GMT + strict-transport-security: + - max-age=31536000; includeSubDomains; preload + transfer-encoding: + - chunked + x-content-type-options: + - nosniff + x-envoy-upstream-service-time: + - '49' status: code: 200 message: OK +- request: + body: 'b''{"source": "https://raw.githubusercontent.com/Azure/azure-sdk-for-python/master/sdk/formrecognizer/azure-ai-formrecognizer/tests/sample_forms/forms/Form_1.jpg"}''' + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '160' + Content-Type: + - application/json + User-Agent: + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + method: POST + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/755051cc-725e-48be-b003-517c8ab466f6/analyze?includeTextDetails=true + response: + body: + string: '' + headers: + apim-request-id: + - bfece0b3-1897-433f-ac2d-9728e296c1ce + content-length: + - '0' + date: + - Fri, 10 Jul 2020 18:47:06 GMT + operation-location: + - https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/755051cc-725e-48be-b003-517c8ab466f6/analyzeresults/4f363d92-60ee-4ffc-8957-7f87db6a2917 + strict-transport-security: + - max-age=31536000; includeSubDomains; preload + x-content-type-options: + - nosniff + x-envoy-upstream-service-time: + - '1031' + status: + code: 202 + message: Accepted - request: body: null headers: @@ -245,14 +348,13 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/6534a84c-6731-472c-bc93-1a3ed5f0137c/analyzeresults/bad55ada-98ab-403b-bdea-3021c407b325 + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/755051cc-725e-48be-b003-517c8ab466f6/analyzeresults/4f363d92-60ee-4ffc-8957-7f87db6a2917 response: body: - string: '{"status": "succeeded", "createdDateTime": "2020-06-11T15:44:19Z", - "lastUpdatedDateTime": "2020-06-11T15:44:27Z", "analyzeResult": {"version": + string: '{"status": "succeeded", "createdDateTime": "2020-07-10T18:47:07Z", + "lastUpdatedDateTime": "2020-07-10T18:47:12Z", "analyzeResult": {"version": "2.0.0", "readResults": [{"page": 1, "angle": 0.16, "width": 1700, "height": 2200, "unit": "pixel", "lines": [{"text": "Purchase Order", "boundingBox": [141.0, 140.0, 348.0, 140.0, 348.0, 168.0, 141.0, 168.0], "words": [{"text": @@ -705,19 +807,19 @@ interactions: [], "errors": []}}' headers: apim-request-id: - - 783d2e8e-be10-4a0c-8a03-ee1fdb7a9e88 + - 606b0db9-da3d-429b-8c60-33d8c0f805c4 content-length: - '36450' content-type: - application/json; charset=utf-8 date: - - Thu, 11 Jun 2020 15:44:29 GMT + - Fri, 10 Jul 2020 18:47:17 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '53' + - '5169' status: code: 200 message: OK diff --git a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_custom_forms_from_url.test_custom_forms_encoded_url.yaml b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_custom_forms_from_url.test_custom_forms_encoded_url.yaml index c9d7f7d50ef4..9b5fa11f7ccf 100644 --- a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_custom_forms_from_url.test_custom_forms_encoded_url.yaml +++ b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_custom_forms_from_url.test_custom_forms_encoded_url.yaml @@ -13,21 +13,20 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) method: POST - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/00000000-0000-0000-0000-000000000000/analyze?includeTextDetails=false + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/00000000-0000-0000-0000-000000000000/analyze?includeTextDetails=false response: body: string: '{"error": {"code": "1001", "message": "Specified model not found or not ready, Model Id: 00000000-0000-0000-0000-000000000000"}}' headers: apim-request-id: - - 5b94e3e4-4dbf-47f7-94d8-4e0e85982941 + - 46abbfdd-c1f0-4a4f-a473-4b3321512c43 content-type: - application/json; charset=utf-8 date: - - Mon, 15 Jun 2020 18:21:57 GMT + - Fri, 10 Jul 2020 18:47:17 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -35,7 +34,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '13' + - '14' status: code: 400 message: Bad Request diff --git a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_custom_forms_from_url.test_form_labeled_transform.yaml b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_custom_forms_from_url.test_form_labeled_transform.yaml index c67df9ab3022..f9923b1afafa 100644 --- a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_custom_forms_from_url.test_form_labeled_transform.yaml +++ b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_custom_forms_from_url.test_form_labeled_transform.yaml @@ -14,28 +14,27 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) method: POST - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models response: body: string: '' headers: apim-request-id: - - 0bd4e532-98ab-4c6b-b170-e5f3f39db03a + - e95d1f8b-d16b-440f-b73c-7c7b89a2a3d6 content-length: - '0' date: - - Thu, 11 Jun 2020 15:41:18 GMT + - Fri, 10 Jul 2020 18:47:19 GMT location: - - https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/dea69e5e-913e-4326-ab81-ba6440793fd6 + - https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/5625eb27-b227-4b71-ac44-4feb7c37654f strict-transport-security: - max-age=31536000; includeSubDomains; preload x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '209' + - '973' status: code: 201 message: Created @@ -49,15 +48,14 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/dea69e5e-913e-4326-ab81-ba6440793fd6?includeKeys=true + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/5625eb27-b227-4b71-ac44-4feb7c37654f?includeKeys=true response: body: - string: '{"modelInfo": {"modelId": "dea69e5e-913e-4326-ab81-ba6440793fd6", "status": - "ready", "createdDateTime": "2020-06-11T15:41:19Z", "lastUpdatedDateTime": - "2020-06-11T15:41:23Z"}, "trainResult": {"averageModelAccuracy": 0.973, "trainingDocuments": + string: '{"modelInfo": {"modelId": "5625eb27-b227-4b71-ac44-4feb7c37654f", "status": + "ready", "createdDateTime": "2020-07-10T18:47:19Z", "lastUpdatedDateTime": + "2020-07-10T18:47:23Z"}, "trainResult": {"averageModelAccuracy": 0.973, "trainingDocuments": [{"documentName": "Form_1.jpg", "pages": 1, "status": "succeeded"}, {"documentName": "Form_2.jpg", "pages": 1, "status": "succeeded"}, {"documentName": "Form_3.jpg", "pages": 1, "status": "succeeded"}, {"documentName": "Form_4.jpg", "pages": @@ -74,11 +72,11 @@ interactions: "errors": []}}' headers: apim-request-id: - - f7f9dd02-ed8e-4bb2-bb70-e86d00160215 + - c7a43300-bc7c-4f24-99c2-2e7972d5016d content-type: - application/json; charset=utf-8 date: - - Thu, 11 Jun 2020 15:41:29 GMT + - Fri, 10 Jul 2020 18:47:26 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -86,7 +84,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '5072' + - '2203' status: code: 200 message: OK @@ -104,28 +102,27 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) method: POST - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/dea69e5e-913e-4326-ab81-ba6440793fd6/analyze?includeTextDetails=true + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/5625eb27-b227-4b71-ac44-4feb7c37654f/analyze?includeTextDetails=true response: body: string: '' headers: apim-request-id: - - 252904f4-4603-4f97-be2e-5283c54fd823 + - a4722bf9-6b97-438c-b14c-2355ba339b94 content-length: - '0' date: - - Thu, 11 Jun 2020 15:41:29 GMT + - Fri, 10 Jul 2020 18:47:27 GMT operation-location: - - https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/dea69e5e-913e-4326-ab81-ba6440793fd6/analyzeresults/52831152-682b-446f-ab42-25123542a5c9 + - https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/5625eb27-b227-4b71-ac44-4feb7c37654f/analyzeresults/86553ef4-e5d9-400d-88d6-2b7eca7bc03a strict-transport-security: - max-age=31536000; includeSubDomains; preload x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '330' + - '83' status: code: 202 message: Accepted @@ -139,50 +136,13 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/dea69e5e-913e-4326-ab81-ba6440793fd6/analyzeresults/52831152-682b-446f-ab42-25123542a5c9 + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/5625eb27-b227-4b71-ac44-4feb7c37654f/analyzeresults/86553ef4-e5d9-400d-88d6-2b7eca7bc03a response: body: - string: '{"status": "notStarted", "createdDateTime": "2020-06-11T15:41:30Z", - "lastUpdatedDateTime": "2020-06-11T15:41:30Z"}' - headers: - apim-request-id: - - 45f064cc-9250-42a8-b39a-61b59fbbc3a2 - content-length: - - '109' - content-type: - - application/json; charset=utf-8 - date: - - Thu, 11 Jun 2020 15:41:34 GMT - strict-transport-security: - - max-age=31536000; includeSubDomains; preload - x-content-type-options: - - nosniff - x-envoy-upstream-service-time: - - '52' - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) - method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/dea69e5e-913e-4326-ab81-ba6440793fd6/analyzeresults/52831152-682b-446f-ab42-25123542a5c9 - response: - body: - string: '{"status": "succeeded", "createdDateTime": "2020-06-11T15:41:30Z", - "lastUpdatedDateTime": "2020-06-11T15:41:39Z", "analyzeResult": {"version": + string: '{"status": "succeeded", "createdDateTime": "2020-07-10T18:47:27Z", + "lastUpdatedDateTime": "2020-07-10T18:47:32Z", "analyzeResult": {"version": "2.0.0", "readResults": [{"page": 1, "language": "en", "angle": 0, "width": 1700, "height": 2200, "unit": "pixel", "lines": [{"boundingBox": [137, 140, 351, 140, 351, 167, 137, 166], "text": "Purchase Order", "words": [{"boundingBox": @@ -487,39 +447,18 @@ interactions: {"rowIndex": 4, "columnIndex": 3, "text": "100.00", "boundingBox": [1309, 1216, 1544, 1216, 1544, 1260, 1309, 1260], "elements": ["#/readResults/0/lines/40/words/0"]}]}]}], "documentResults": [{"docType": "custom:form", "pageRange": [1, 1], "fields": - {"Total": {"type": "string", "valueString": "$144.00", "text": "$144.00", - "page": 1, "boundingBox": [1429.0, 1669.0, 1530.0, 1669.0, 1530.0, 1697.0, - 1429.0, 1697.0], "confidence": 1.0, "elements": ["#/analyzeResult/readResults/0/lines/47/words/0"]}, - "PhoneNumber": {"type": "string", "valueString": "555-348-6512", "text": "555-348-6512", - "page": 1, "boundingBox": [367.0, 351.0, 529.0, 351.0, 529.0, 378.0, 367.0, - 378.0], "confidence": 1.0, "elements": ["#/analyzeResult/readResults/0/lines/2/words/2"]}, + {"Tax": {"type": "string", "valueString": "$4.00", "text": "$4.00", "page": + 1, "boundingBox": [1461.0, 1614.0, 1530.0, 1614.0, 1530.0, 1642.0, 1461.0, + 1642.0], "confidence": 1.0, "elements": ["#/analyzeResult/readResults/0/lines/44/words/0"]}, + "PurchaseOrderNumber": {"type": "string", "valueString": "948284", "text": + "948284", "page": 1, "boundingBox": [1282.0, 461.0, 1377.0, 461.0, 1377.0, + 489.0, 1282.0, 489.0], "confidence": 1.0, "elements": ["#/analyzeResult/readResults/0/lines/8/words/3"]}, + "DatedAs": {"type": "string", "valueString": "12/20/2020", "text": "12/20/2020", + "page": 1, "boundingBox": [1168.0, 420.0, 1317.0, 420.0, 1317.0, 450.0, 1168.0, + 450.0], "confidence": 1.0, "elements": ["#/analyzeResult/readResults/0/lines/6/words/2"]}, "Subtotal": {"type": "string", "valueString": "$140.00", "text": "$140.00", "page": 1, "boundingBox": [1429.0, 1570.0, 1530.0, 1570.0, 1530.0, 1599.0, 1429.0, 1599.0], "confidence": 1.0, "elements": ["#/analyzeResult/readResults/0/lines/42/words/0"]}, - "Website": {"type": "string", "valueString": "www.herolimited.com", "text": - "www.herolimited.com", "page": 1, "boundingBox": [274.0, 393.0, 529.0, 393.0, - 529.0, 419.0, 274.0, 419.0], "confidence": 1.0, "elements": ["#/analyzeResult/readResults/0/lines/4/words/1"]}, - "Tax": {"type": "string", "valueString": "$4.00", "text": "$4.00", "page": - 1, "boundingBox": [1461.0, 1614.0, 1530.0, 1614.0, 1530.0, 1642.0, 1461.0, - 1642.0], "confidence": 1.0, "elements": ["#/analyzeResult/readResults/0/lines/44/words/0"]}, - "VendorName": {"type": "string", "valueString": "Hillary Swank", "text": "Hillary - Swank", "page": 1, "boundingBox": [351.0, 609.0, 518.0, 609.0, 518.0, 641.0, - 351.0, 641.0], "confidence": 1.0, "elements": ["#/analyzeResult/readResults/0/lines/10/words/2", - "#/analyzeResult/readResults/0/lines/10/words/3"]}, "DatedAs": {"type": "string", - "valueString": "12/20/2020", "text": "12/20/2020", "page": 1, "boundingBox": - [1168.0, 420.0, 1317.0, 420.0, 1317.0, 450.0, 1168.0, 450.0], "confidence": - 1.0, "elements": ["#/analyzeResult/readResults/0/lines/6/words/2"]}, "PurchaseOrderNumber": - {"type": "string", "valueString": "948284", "text": "948284", "page": 1, "boundingBox": - [1282.0, 461.0, 1377.0, 461.0, 1377.0, 489.0, 1282.0, 489.0], "confidence": - 1.0, "elements": ["#/analyzeResult/readResults/0/lines/8/words/3"]}, "Merchant": - {"type": "string", "valueString": "Hero Limited", "text": "Hero Limited", - "page": 1, "boundingBox": [621.0, 202.0, 1075.0, 202.0, 1075.0, 266.0, 621.0, - 266.0], "confidence": 1.0, "elements": ["#/analyzeResult/readResults/0/lines/1/words/0", - "#/analyzeResult/readResults/0/lines/1/words/1"]}, "CompanyName": {"type": - "string", "valueString": "Higgly Wiggly Books", "text": "Higgly Wiggly Books", - "page": 1, "boundingBox": [378.0, 646.0, 629.0, 646.0, 629.0, 682.0, 378.0, - 682.0], "confidence": 1.0, "elements": ["#/analyzeResult/readResults/0/lines/11/words/2", - "#/analyzeResult/readResults/0/lines/11/words/3", "#/analyzeResult/readResults/0/lines/11/words/4"]}, "CompanyAddress": {"type": "string", "valueString": "938 NE Burner Road Boulder City, CO 92848", "text": "938 NE Burner Road Boulder City, CO 92848", "page": 1, "boundingBox": [277.0, 685.0, 568.0, 685.0, 568.0, 754.0, 277.0, 754.0], @@ -527,35 +466,55 @@ interactions: "#/analyzeResult/readResults/0/lines/12/words/2", "#/analyzeResult/readResults/0/lines/12/words/3", "#/analyzeResult/readResults/0/lines/12/words/4", "#/analyzeResult/readResults/0/lines/13/words/0", "#/analyzeResult/readResults/0/lines/13/words/1", "#/analyzeResult/readResults/0/lines/13/words/2", - "#/analyzeResult/readResults/0/lines/13/words/3"]}, "Email": {"type": "string", - "valueString": "accounts@herolimited.com", "text": "accounts@herolimited.com", - "page": 1, "boundingBox": [166.0, 480.0, 475.0, 480.0, 475.0, 503.0, 166.0, - 503.0], "confidence": 1.0, "elements": ["#/analyzeResult/readResults/0/lines/7/words/0"]}, - "Quantity": {"type": "number", "text": "20", "page": 1, "boundingBox": [861.0, - 1089.0, 895.0, 1089.0, 895.0, 1120.0, 861.0, 1120.0], "confidence": 1.0, "elements": - ["#/analyzeResult/readResults/0/lines/26/words/0"]}, "CompanyPhoneNumber": - {"type": "string", "valueString": "938-294-2949", "text": "938-294-2949", - "page": 1, "boundingBox": [713.0, 722.0, 884.0, 722.0, 884.0, 750.0, 713.0, - 750.0], "confidence": 1.0, "elements": ["#/analyzeResult/readResults/0/lines/14/words/1"]}, + "#/analyzeResult/readResults/0/lines/13/words/3"]}, "VendorName": {"type": + "string", "valueString": "Hillary Swank", "text": "Hillary Swank", "page": + 1, "boundingBox": [351.0, 609.0, 518.0, 609.0, 518.0, 641.0, 351.0, 641.0], + "confidence": 1.0, "elements": ["#/analyzeResult/readResults/0/lines/10/words/2", + "#/analyzeResult/readResults/0/lines/10/words/3"]}, "Website": {"type": "string", + "valueString": "www.herolimited.com", "text": "www.herolimited.com", "page": + 1, "boundingBox": [274.0, 393.0, 529.0, 393.0, 529.0, 419.0, 274.0, 419.0], + "confidence": 1.0, "elements": ["#/analyzeResult/readResults/0/lines/4/words/1"]}, + "Email": {"type": "string", "valueString": "accounts@herolimited.com", "text": + "accounts@herolimited.com", "page": 1, "boundingBox": [166.0, 480.0, 475.0, + 480.0, 475.0, 503.0, 166.0, 503.0], "confidence": 1.0, "elements": ["#/analyzeResult/readResults/0/lines/7/words/0"]}, "Signature": {"type": "string", "valueString": "Bernie Sanders", "text": "Bernie Sanders", "page": 1, "boundingBox": [482.0, 1670.0, 764.0, 1670.0, 764.0, 1709.0, 482.0, 1709.0], "confidence": 1.0, "elements": ["#/analyzeResult/readResults/0/lines/45/words/0", - "#/analyzeResult/readResults/0/lines/45/words/1"]}}}], "errors": []}}' + "#/analyzeResult/readResults/0/lines/45/words/1"]}, "Merchant": {"type": "string", + "valueString": "Hero Limited", "text": "Hero Limited", "page": 1, "boundingBox": + [621.0, 202.0, 1075.0, 202.0, 1075.0, 266.0, 621.0, 266.0], "confidence": + 1.0, "elements": ["#/analyzeResult/readResults/0/lines/1/words/0", "#/analyzeResult/readResults/0/lines/1/words/1"]}, + "CompanyPhoneNumber": {"type": "string", "valueString": "938-294-2949", "text": + "938-294-2949", "page": 1, "boundingBox": [713.0, 722.0, 884.0, 722.0, 884.0, + 750.0, 713.0, 750.0], "confidence": 1.0, "elements": ["#/analyzeResult/readResults/0/lines/14/words/1"]}, + "PhoneNumber": {"type": "string", "valueString": "555-348-6512", "text": "555-348-6512", + "page": 1, "boundingBox": [367.0, 351.0, 529.0, 351.0, 529.0, 378.0, 367.0, + 378.0], "confidence": 1.0, "elements": ["#/analyzeResult/readResults/0/lines/2/words/2"]}, + "CompanyName": {"type": "string", "valueString": "Higgly Wiggly Books", "text": + "Higgly Wiggly Books", "page": 1, "boundingBox": [378.0, 646.0, 629.0, 646.0, + 629.0, 682.0, 378.0, 682.0], "confidence": 1.0, "elements": ["#/analyzeResult/readResults/0/lines/11/words/2", + "#/analyzeResult/readResults/0/lines/11/words/3", "#/analyzeResult/readResults/0/lines/11/words/4"]}, + "Total": {"type": "string", "valueString": "$144.00", "text": "$144.00", "page": + 1, "boundingBox": [1429.0, 1669.0, 1530.0, 1669.0, 1530.0, 1697.0, 1429.0, + 1697.0], "confidence": 1.0, "elements": ["#/analyzeResult/readResults/0/lines/47/words/0"]}, + "Quantity": {"type": "number", "text": "20", "page": 1, "boundingBox": [861.0, + 1089.0, 895.0, 1089.0, 895.0, 1120.0, 861.0, 1120.0], "confidence": 1.0, "elements": + ["#/analyzeResult/readResults/0/lines/26/words/0"]}}}], "errors": []}}' headers: apim-request-id: - - 65c759d2-2d79-4d21-9ddc-81dbe72f7535 + - 4ba3a5ac-a428-4ec6-857e-0820be246a40 content-length: - '25282' content-type: - application/json; charset=utf-8 date: - - Thu, 11 Jun 2020 15:41:45 GMT + - Fri, 10 Jul 2020 18:47:32 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '5247' + - '22' status: code: 200 message: OK diff --git a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_custom_forms_from_url.test_form_multipage_labeled.yaml b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_custom_forms_from_url.test_form_multipage_labeled.yaml index 898cc92c4760..6b527b0deac3 100644 --- a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_custom_forms_from_url.test_form_multipage_labeled.yaml +++ b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_custom_forms_from_url.test_form_multipage_labeled.yaml @@ -14,28 +14,27 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) method: POST - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models response: body: string: '' headers: apim-request-id: - - e25d768e-34be-47e5-98fd-86e5dd9757bd + - 6749bb4f-cd16-4bb1-83b3-a01da7334aed content-length: - '0' date: - - Thu, 11 Jun 2020 15:41:45 GMT + - Fri, 10 Jul 2020 18:47:32 GMT location: - - https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/a39dcd7b-87fd-44b2-8cf0-8c3c44397caa + - https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/b6c589d4-b4f6-4215-b834-42522860e0b2 strict-transport-security: - max-age=31536000; includeSubDomains; preload x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '38' + - '67' status: code: 201 message: Created @@ -49,15 +48,14 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/a39dcd7b-87fd-44b2-8cf0-8c3c44397caa?includeKeys=true + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/b6c589d4-b4f6-4215-b834-42522860e0b2?includeKeys=true response: body: - string: '{"modelInfo": {"modelId": "a39dcd7b-87fd-44b2-8cf0-8c3c44397caa", "status": - "ready", "createdDateTime": "2020-06-11T15:41:46Z", "lastUpdatedDateTime": - "2020-06-11T15:41:48Z"}, "trainResult": {"averageModelAccuracy": 0.889, "trainingDocuments": + string: '{"modelInfo": {"modelId": "b6c589d4-b4f6-4215-b834-42522860e0b2", "status": + "ready", "createdDateTime": "2020-07-10T18:47:33Z", "lastUpdatedDateTime": + "2020-07-10T18:47:34Z"}, "trainResult": {"averageModelAccuracy": 0.889, "trainingDocuments": [{"documentName": "multipage_invoice1.pdf", "pages": 3, "status": "succeeded"}, {"documentName": "multipage_invoice2.pdf", "pages": 3, "status": "succeeded"}, {"documentName": "multipage_invoice3.pdf", "pages": 3, "status": "succeeded"}, @@ -76,11 +74,11 @@ interactions: 1.0}, {"fieldName": "Total2", "accuracy": 1.0}], "errors": []}}' headers: apim-request-id: - - 9848c0da-c208-4228-9fb1-3210e63a79b8 + - e0b6e118-ca6d-49d5-962b-36d3b35c7331 content-type: - application/json; charset=utf-8 date: - - Thu, 11 Jun 2020 15:41:51 GMT + - Fri, 10 Jul 2020 18:47:38 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -88,7 +86,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '51' + - '21' status: code: 200 message: OK @@ -106,28 +104,27 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) method: POST - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/a39dcd7b-87fd-44b2-8cf0-8c3c44397caa/analyze?includeTextDetails=false + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/b6c589d4-b4f6-4215-b834-42522860e0b2/analyze?includeTextDetails=false response: body: string: '' headers: apim-request-id: - - 4f59f6b6-cb7d-4a21-9df5-19046a11aea7 + - 51c18382-fe80-4ed5-bb56-6cf8db3fa8ab content-length: - '0' date: - - Thu, 11 Jun 2020 15:41:52 GMT + - Fri, 10 Jul 2020 18:47:38 GMT operation-location: - - https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/a39dcd7b-87fd-44b2-8cf0-8c3c44397caa/analyzeresults/c6f8b1a3-62b6-441e-8d77-a4b00d6c498f + - https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/b6c589d4-b4f6-4215-b834-42522860e0b2/analyzeresults/ac7e5933-4395-453e-a56e-464d6418019f strict-transport-security: - max-age=31536000; includeSubDomains; preload x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '194' + - '50' status: code: 202 message: Accepted @@ -141,50 +138,13 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/a39dcd7b-87fd-44b2-8cf0-8c3c44397caa/analyzeresults/c6f8b1a3-62b6-441e-8d77-a4b00d6c498f + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/b6c589d4-b4f6-4215-b834-42522860e0b2/analyzeresults/ac7e5933-4395-453e-a56e-464d6418019f response: body: - string: '{"status": "notStarted", "createdDateTime": "2020-06-11T15:41:52Z", - "lastUpdatedDateTime": "2020-06-11T15:41:57Z"}' - headers: - apim-request-id: - - 61b7fe60-314d-4891-88e2-d6014e83efb9 - content-length: - - '109' - content-type: - - application/json; charset=utf-8 - date: - - Thu, 11 Jun 2020 15:41:57 GMT - strict-transport-security: - - max-age=31536000; includeSubDomains; preload - x-content-type-options: - - nosniff - x-envoy-upstream-service-time: - - '17' - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) - method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/a39dcd7b-87fd-44b2-8cf0-8c3c44397caa/analyzeresults/c6f8b1a3-62b6-441e-8d77-a4b00d6c498f - response: - body: - string: '{"status": "succeeded", "createdDateTime": "2020-06-11T15:41:52Z", - "lastUpdatedDateTime": "2020-06-11T15:42:01Z", "analyzeResult": {"version": + string: '{"status": "succeeded", "createdDateTime": "2020-07-10T18:47:38Z", + "lastUpdatedDateTime": "2020-07-10T18:47:49Z", "analyzeResult": {"version": "2.0.0", "readResults": [{"page": 1, "language": "en", "angle": 0, "width": 8.5, "height": 11, "unit": "inch"}, {"page": 2, "language": "en", "angle": 0, "width": 8.4967, "height": 10.9967, "unit": "inch"}, {"page": 3, "language": @@ -272,69 +232,68 @@ interactions: 4.4181, 5.3353, 4.6281, 3.1681, 4.6281]}, {"rowIndex": 7, "columnIndex": 2, "text": "220.00", "boundingBox": [5.3353, 4.4181, 7.4997, 4.4181, 7.4997, 4.6281, 5.3353, 4.6281]}]}]}], "documentResults": [{"docType": "custom:form", - "pageRange": [1, 3], "fields": {"Merchant2": {"type": "string", "valueString": - "Company", "text": "Company", "page": 1, "boundingBox": [0.885, 1.125, 1.62, - 1.125, 1.62, 1.28, 0.885, 1.28], "confidence": 1.0}, "Signature2": {"type": - "string", "valueString": "Frodo Baggins", "text": "Frodo Baggins", "page": - 3, "boundingBox": [2.07, 6.655, 3.09, 6.655, 3.09, 6.8, 2.07, 6.8], "confidence": - 0.16}, "CustomerName": {"type": "string", "valueString": "Bilbo Baggins", - "text": "Bilbo Baggins", "page": 1, "boundingBox": [6.015000000000001, 1.45, - 6.8950000000000005, 1.45, 6.8950000000000005, 1.595, 6.015000000000001, 1.595], - "confidence": 1.0}, "Signature": {"type": "string", "valueString": "Bilbo - Baggins", "text": "Bilbo Baggins", "page": 1, "boundingBox": [2.05, 6.655, - 3.04, 6.655, 3.04, 6.8, 2.05, 6.8], "confidence": 1.0}, "Merchant": {"type": - "string", "valueString": "A", "text": "A", "page": 1, "boundingBox": [1.67, - 1.125, 1.7750000000000001, 1.125, 1.7750000000000001, 1.245, 1.67, 1.245], - "confidence": 1.0}, "FirstItem": {"type": "string", "valueString": "A", "text": - "A", "page": 1, "boundingBox": [1.085, 3.21, 1.175, 3.21, 1.175, 3.3200000000000003, - 1.085, 3.3200000000000003], "confidence": 1.0}, "MerchantPhoneNumber": {"type": - "string", "valueString": "555-555-5555", "text": "555-555-5555", "page": 1, - "boundingBox": [0.885, 2.29, 1.81, 2.29, 1.81, 2.395, 0.885, 2.395], "confidence": - 1.0}, "FirstQuantity": {"type": "string", "valueString": "1", "text": "1", - "page": 1, "boundingBox": [3.2600000000000002, 3.21, 3.3200000000000003, 3.21, - 3.3200000000000003, 3.3200000000000003, 3.2600000000000002, 3.3200000000000003], - "confidence": 1.0}, "Total2": {"type": "string", "valueString": "4300.00", - "text": "4300.00", "page": 3, "boundingBox": [5.94, 5.565, 6.48, 5.565, 6.48, - 5.675, 5.94, 5.675], "confidence": 1.0}, "Tip": {"type": "string", "valueString": - "100.00", "text": "100.00", "page": 1, "boundingBox": [5.8100000000000005, - 5.345, 6.26, 5.345, 6.26, 5.455, 5.8100000000000005, 5.455], "confidence": - 1.0}, "Customer2": {"type": "string", "valueString": "Frodo Baggins", "text": - "Frodo Baggins", "page": 3, "boundingBox": [6.015000000000001, 1.45, 6.95, - 1.45, 6.95, 1.595, 6.015000000000001, 1.595], "confidence": 1.0}, "CustomerAddress": - {"type": "string", "valueString": "123 Hobbit Lane Redmond, WA", "text": "123 - Hobbit Lane Redmond, WA", "page": 1, "boundingBox": [6.015000000000001, 1.67, - 7.1000000000000005, 1.67, 7.1000000000000005, 2.0300000000000002, 6.015000000000001, - 2.0300000000000002], "confidence": 1.0}, "MerchantAddress": {"type": "string", - "valueString": "567 Main St. Redmond, WA", "text": "567 Main St. Redmond, - WA", "page": 1, "boundingBox": [0.885, 1.845, 1.855, 1.845, 1.855, 2.2, 0.885, - 2.2], "confidence": 1.0}, "CustomerPhoneNumber": {"type": "string", "valueString": - "555-555-5555", "text": "555-555-5555", "page": 1, "boundingBox": [6.01, 2.12, - 6.9350000000000005, 2.12, 6.9350000000000005, 2.225, 6.01, 2.225], "confidence": - 1.0}, "FirstPrice": {"type": "string", "valueString": "10.99", "text": "10.99", - "page": 1, "boundingBox": [5.425, 3.21, 5.78, 3.21, 5.78, 3.3200000000000003, - 5.425, 3.3200000000000003], "confidence": 1.0}, "Subtotal": {"type": "string", - "valueString": "300.00", "text": "300.00", "page": 1, "boundingBox": [6.18, - 4.905, 6.63, 4.905, 6.63, 5.015, 6.18, 5.015], "confidence": 1.0}, "Total": - {"type": "string", "valueString": "430.00", "text": "430.00", "page": 1, "boundingBox": - [5.94, 5.565, 6.4, 5.565, 6.4, 5.675, 5.94, 5.675], "confidence": 1.0}, "Tax": - {"type": "string", "valueString": "30.00", "text": "30.00", "page": 1, "boundingBox": - [5.835, 5.125, 6.2, 5.125, 6.2, 5.235, 5.835, 5.235], "confidence": 1.0}}}], - "errors": []}}' + "pageRange": [1, 3], "fields": {"Total2": {"type": "string", "valueString": + "4300.00", "text": "4300.00", "page": 3, "boundingBox": [5.94, 5.565, 6.48, + 5.565, 6.48, 5.675, 5.94, 5.675], "confidence": 1.0}, "FirstItem": {"type": + "string", "valueString": "A", "text": "A", "page": 1, "boundingBox": [1.085, + 3.21, 1.175, 3.21, 1.175, 3.3200000000000003, 1.085, 3.3200000000000003], + "confidence": 1.0}, "Total": {"type": "string", "valueString": "430.00", "text": + "430.00", "page": 1, "boundingBox": [5.94, 5.565, 6.4, 5.565, 6.4, 5.675, + 5.94, 5.675], "confidence": 1.0}, "CustomerPhoneNumber": {"type": "string", + "valueString": "555-555-5555", "text": "555-555-5555", "page": 1, "boundingBox": + [6.01, 2.12, 6.9350000000000005, 2.12, 6.9350000000000005, 2.225, 6.01, 2.225], + "confidence": 1.0}, "Merchant2": {"type": "string", "valueString": "Company", + "text": "Company", "page": 1, "boundingBox": [0.885, 1.125, 1.62, 1.125, 1.62, + 1.28, 0.885, 1.28], "confidence": 1.0}, "FirstQuantity": {"type": "string", + "valueString": "1", "text": "1", "page": 1, "boundingBox": [3.2600000000000002, + 3.21, 3.3200000000000003, 3.21, 3.3200000000000003, 3.3200000000000003, 3.2600000000000002, + 3.3200000000000003], "confidence": 1.0}, "MerchantPhoneNumber": {"type": "string", + "valueString": "555-555-5555", "text": "555-555-5555", "page": 1, "boundingBox": + [0.885, 2.29, 1.81, 2.29, 1.81, 2.395, 0.885, 2.395], "confidence": 1.0}, + "CustomerName": {"type": "string", "valueString": "Bilbo Baggins", "text": + "Bilbo Baggins", "page": 1, "boundingBox": [6.015000000000001, 1.45, 6.8950000000000005, + 1.45, 6.8950000000000005, 1.595, 6.015000000000001, 1.595], "confidence": + 1.0}, "Subtotal": {"type": "string", "valueString": "300.00", "text": "300.00", + "page": 1, "boundingBox": [6.18, 4.905, 6.63, 4.905, 6.63, 5.015, 6.18, 5.015], + "confidence": 1.0}, "Signature2": {"type": "string", "valueString": "Frodo + Baggins", "text": "Frodo Baggins", "page": 3, "boundingBox": [2.07, 6.655, + 3.09, 6.655, 3.09, 6.8, 2.07, 6.8], "confidence": 0.16}, "FirstPrice": {"type": + "string", "valueString": "10.99", "text": "10.99", "page": 1, "boundingBox": + [5.425, 3.21, 5.78, 3.21, 5.78, 3.3200000000000003, 5.425, 3.3200000000000003], + "confidence": 1.0}, "CustomerAddress": {"type": "string", "valueString": "123 + Hobbit Lane Redmond, WA", "text": "123 Hobbit Lane Redmond, WA", "page": 1, + "boundingBox": [6.015000000000001, 1.67, 7.1000000000000005, 1.67, 7.1000000000000005, + 2.0300000000000002, 6.015000000000001, 2.0300000000000002], "confidence": + 1.0}, "Tip": {"type": "string", "valueString": "100.00", "text": "100.00", + "page": 1, "boundingBox": [5.8100000000000005, 5.345, 6.26, 5.345, 6.26, 5.455, + 5.8100000000000005, 5.455], "confidence": 1.0}, "Merchant": {"type": "string", + "valueString": "A", "text": "A", "page": 1, "boundingBox": [1.67, 1.125, 1.7750000000000001, + 1.125, 1.7750000000000001, 1.245, 1.67, 1.245], "confidence": 1.0}, "MerchantAddress": + {"type": "string", "valueString": "567 Main St. Redmond, WA", "text": "567 + Main St. Redmond, WA", "page": 1, "boundingBox": [0.885, 1.845, 1.855, 1.845, + 1.855, 2.2, 0.885, 2.2], "confidence": 1.0}, "Signature": {"type": "string", + "valueString": "Bilbo Baggins", "text": "Bilbo Baggins", "page": 1, "boundingBox": + [2.05, 6.655, 3.04, 6.655, 3.04, 6.8, 2.05, 6.8], "confidence": 1.0}, "Customer2": + {"type": "string", "valueString": "Frodo Baggins", "text": "Frodo Baggins", + "page": 3, "boundingBox": [6.015000000000001, 1.45, 6.95, 1.45, 6.95, 1.595, + 6.015000000000001, 1.595], "confidence": 1.0}, "Tax": {"type": "string", "valueString": + "30.00", "text": "30.00", "page": 1, "boundingBox": [5.835, 5.125, 6.2, 5.125, + 6.2, 5.235, 5.835, 5.235], "confidence": 1.0}}}], "errors": []}}' headers: apim-request-id: - - 4d639301-66ee-4ada-a6ce-85633ebf799a + - 8bd04a76-d0d3-4b7b-9c36-4183b042c9a4 content-length: - '9504' content-type: - application/json; charset=utf-8 date: - - Thu, 11 Jun 2020 15:42:02 GMT + - Fri, 10 Jul 2020 18:47:49 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '59' + - '5864' status: code: 200 message: OK diff --git a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_custom_forms_from_url.test_form_multipage_unlabeled.yaml b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_custom_forms_from_url.test_form_multipage_unlabeled.yaml index e344861351a0..553246e05575 100644 --- a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_custom_forms_from_url.test_form_multipage_unlabeled.yaml +++ b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_custom_forms_from_url.test_form_multipage_unlabeled.yaml @@ -14,28 +14,27 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) method: POST - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models response: body: string: '' headers: apim-request-id: - - 8e6ecec8-9c50-4500-a83c-d0243ee51311 + - 1f3df006-29ce-4e84-b4d2-fc55d1cddaa5 content-length: - '0' date: - - Thu, 11 Jun 2020 15:42:03 GMT + - Fri, 10 Jul 2020 18:47:49 GMT location: - - https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/90220581-298a-496a-97ab-f96af25b5313 + - https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/c9482a24-63fa-43ee-b8f5-15bc49cdabf7 strict-transport-security: - max-age=31536000; includeSubDomains; preload x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '89' + - '64' status: code: 201 message: Created @@ -49,22 +48,21 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/90220581-298a-496a-97ab-f96af25b5313?includeKeys=true + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/c9482a24-63fa-43ee-b8f5-15bc49cdabf7?includeKeys=true response: body: - string: '{"modelInfo": {"modelId": "90220581-298a-496a-97ab-f96af25b5313", "status": - "creating", "createdDateTime": "2020-06-11T15:42:03Z", "lastUpdatedDateTime": - "2020-06-11T15:42:03Z"}}' + string: '{"modelInfo": {"modelId": "c9482a24-63fa-43ee-b8f5-15bc49cdabf7", "status": + "creating", "createdDateTime": "2020-07-10T18:47:50Z", "lastUpdatedDateTime": + "2020-07-10T18:47:50Z"}}' headers: apim-request-id: - - a1d5eb12-d084-4484-b5f5-1c8e3417ea28 + - 4711a71d-7ebf-4115-ad36-97274de35fdb content-type: - application/json; charset=utf-8 date: - - Thu, 11 Jun 2020 15:42:08 GMT + - Fri, 10 Jul 2020 18:47:57 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -72,7 +70,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '48' + - '1708' status: code: 200 message: OK @@ -86,22 +84,21 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/90220581-298a-496a-97ab-f96af25b5313?includeKeys=true + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/c9482a24-63fa-43ee-b8f5-15bc49cdabf7?includeKeys=true response: body: - string: '{"modelInfo": {"modelId": "90220581-298a-496a-97ab-f96af25b5313", "status": - "creating", "createdDateTime": "2020-06-11T15:42:03Z", "lastUpdatedDateTime": - "2020-06-11T15:42:03Z"}}' + string: '{"modelInfo": {"modelId": "c9482a24-63fa-43ee-b8f5-15bc49cdabf7", "status": + "creating", "createdDateTime": "2020-07-10T18:47:50Z", "lastUpdatedDateTime": + "2020-07-10T18:47:50Z"}}' headers: apim-request-id: - - 55118442-db81-461f-901a-123767012186 + - 5f7f922f-6f24-46d7-ac61-ac9c4da435d1 content-type: - application/json; charset=utf-8 date: - - Thu, 11 Jun 2020 15:42:13 GMT + - Fri, 10 Jul 2020 18:48:01 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -109,7 +106,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '17' + - '20' status: code: 200 message: OK @@ -123,15 +120,14 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/90220581-298a-496a-97ab-f96af25b5313?includeKeys=true + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/c9482a24-63fa-43ee-b8f5-15bc49cdabf7?includeKeys=true response: body: - string: '{"modelInfo": {"modelId": "90220581-298a-496a-97ab-f96af25b5313", "status": - "ready", "createdDateTime": "2020-06-11T15:42:03Z", "lastUpdatedDateTime": - "2020-06-11T15:42:18Z"}, "keys": {"clusters": {"0": ["Address:", "Invoice + string: '{"modelInfo": {"modelId": "c9482a24-63fa-43ee-b8f5-15bc49cdabf7", "status": + "ready", "createdDateTime": "2020-07-10T18:47:50Z", "lastUpdatedDateTime": + "2020-07-10T18:48:04Z"}, "keys": {"clusters": {"0": ["Address:", "Invoice For:", "Item", "Price", "Quantity", "Redmond, WA", "Signature:", "Subtotal:", "Tax:", "Tip:", "Total:"]}}, "trainResult": {"trainingDocuments": [{"documentName": "multipage_invoice1.pdf", "pages": 3, "errors": [], "status": "succeeded"}, @@ -142,11 +138,11 @@ interactions: "pages": 3, "errors": [], "status": "succeeded"}], "errors": []}}' headers: apim-request-id: - - 31ffe319-3234-4544-8054-833511efcffb + - f35a4d3a-7cfc-4f8c-8af7-8066569a4afc content-type: - application/json; charset=utf-8 date: - - Thu, 11 Jun 2020 15:42:19 GMT + - Fri, 10 Jul 2020 18:48:07 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -154,7 +150,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '49' + - '18' status: code: 200 message: OK @@ -172,28 +168,27 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) method: POST - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/90220581-298a-496a-97ab-f96af25b5313/analyze?includeTextDetails=false + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/c9482a24-63fa-43ee-b8f5-15bc49cdabf7/analyze?includeTextDetails=false response: body: string: '' headers: apim-request-id: - - 75d58970-1488-48fa-ac92-46ee67f69243 + - f91849b7-49ac-49c4-8a16-279966598a53 content-length: - '0' date: - - Thu, 11 Jun 2020 15:42:19 GMT + - Fri, 10 Jul 2020 18:48:07 GMT operation-location: - - https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/90220581-298a-496a-97ab-f96af25b5313/analyzeresults/f7336de7-6cdd-4ae3-8c5c-5458c4e1219e + - https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/c9482a24-63fa-43ee-b8f5-15bc49cdabf7/analyzeresults/aa4c0783-80b4-411d-a5ce-9c8f32b6ec09 strict-transport-security: - max-age=31536000; includeSubDomains; preload x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '129' + - '187' status: code: 202 message: Accepted @@ -207,29 +202,98 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/90220581-298a-496a-97ab-f96af25b5313/analyzeresults/f7336de7-6cdd-4ae3-8c5c-5458c4e1219e + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/c9482a24-63fa-43ee-b8f5-15bc49cdabf7/analyzeresults/aa4c0783-80b4-411d-a5ce-9c8f32b6ec09 response: body: - string: '{"status": "running", "createdDateTime": "2020-06-11T15:42:19Z", "lastUpdatedDateTime": - "2020-06-11T15:42:21Z", "analyzeResult": null}' + string: '{"status": "running", "createdDateTime": "2020-07-10T18:48:07Z", "lastUpdatedDateTime": + "2020-07-10T18:48:10Z", "analyzeResult": null}' headers: apim-request-id: - - 69d3e0dd-dcb0-4d3b-b32d-76130fa748ad + - f49e9519-ad79-45bc-ad4a-1c7e98d5990e content-length: - '134' content-type: - application/json; charset=utf-8 date: - - Thu, 11 Jun 2020 15:42:24 GMT + - Fri, 10 Jul 2020 18:48:12 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '49' + - '21' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + method: GET + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/c9482a24-63fa-43ee-b8f5-15bc49cdabf7/analyzeresults/aa4c0783-80b4-411d-a5ce-9c8f32b6ec09 + response: + body: + string: '{"status": "running", "createdDateTime": "2020-07-10T18:48:07Z", "lastUpdatedDateTime": + "2020-07-10T18:48:10Z", "analyzeResult": null}' + headers: + apim-request-id: + - 2a2cfabf-6e97-4ec4-beaa-cb4677fc1263 + content-length: + - '134' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 10 Jul 2020 18:48:17 GMT + strict-transport-security: + - max-age=31536000; includeSubDomains; preload + x-content-type-options: + - nosniff + x-envoy-upstream-service-time: + - '19' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + method: GET + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/c9482a24-63fa-43ee-b8f5-15bc49cdabf7/analyzeresults/aa4c0783-80b4-411d-a5ce-9c8f32b6ec09 + response: + body: + string: '{"status": "running", "createdDateTime": "2020-07-10T18:48:07Z", "lastUpdatedDateTime": + "2020-07-10T18:48:10Z", "analyzeResult": null}' + headers: + apim-request-id: + - bf4c3b48-72fb-4791-8a84-87dbba698b57 + content-length: + - '134' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 10 Jul 2020 18:48:23 GMT + strict-transport-security: + - max-age=31536000; includeSubDomains; preload + x-content-type-options: + - nosniff + x-envoy-upstream-service-time: + - '19' status: code: 200 message: OK @@ -243,14 +307,48 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/90220581-298a-496a-97ab-f96af25b5313/analyzeresults/f7336de7-6cdd-4ae3-8c5c-5458c4e1219e + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/c9482a24-63fa-43ee-b8f5-15bc49cdabf7/analyzeresults/aa4c0783-80b4-411d-a5ce-9c8f32b6ec09 response: body: - string: '{"status": "succeeded", "createdDateTime": "2020-06-11T15:42:19Z", - "lastUpdatedDateTime": "2020-06-11T15:42:28Z", "analyzeResult": {"version": + string: '{"status": "running", "createdDateTime": "2020-07-10T18:48:07Z", "lastUpdatedDateTime": + "2020-07-10T18:48:10Z", "analyzeResult": null}' + headers: + apim-request-id: + - 3334b77a-91b3-414d-8037-8854807fbad7 + content-length: + - '134' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 10 Jul 2020 18:48:28 GMT + strict-transport-security: + - max-age=31536000; includeSubDomains; preload + x-content-type-options: + - nosniff + x-envoy-upstream-service-time: + - '18' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + method: GET + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/c9482a24-63fa-43ee-b8f5-15bc49cdabf7/analyzeresults/aa4c0783-80b4-411d-a5ce-9c8f32b6ec09 + response: + body: + string: '{"status": "succeeded", "createdDateTime": "2020-07-10T18:48:07Z", + "lastUpdatedDateTime": "2020-07-10T18:48:14Z", "analyzeResult": {"version": "2.0.0", "readResults": [{"page": 1, "angle": 0, "width": 8.5, "height": 11.0, "unit": "inch", "lines": []}, {"page": 2, "angle": 0, "width": 8.5, "height": 11.0, "unit": "inch", "lines": []}, {"page": 3, "angle": 0, "width": 8.5, @@ -475,19 +573,19 @@ interactions: false}]}], "clusterId": 0}], "documentResults": [], "errors": []}}' headers: apim-request-id: - - f29d965e-bc6d-4450-9bc8-7fe991dca0cd + - c23140ce-af57-4d61-93b1-e719b1c2f8a3 content-length: - '17652' content-type: - application/json; charset=utf-8 date: - - Thu, 11 Jun 2020 15:42:30 GMT + - Fri, 10 Jul 2020 18:48:34 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '21' + - '822' status: code: 200 message: OK diff --git a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_custom_forms_from_url.test_pass_stream_into_url.yaml b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_custom_forms_from_url.test_pass_stream_into_url.yaml index 53628ac6bfd4..d5ec66023d01 100644 --- a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_custom_forms_from_url.test_pass_stream_into_url.yaml +++ b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_custom_forms_from_url.test_pass_stream_into_url.yaml @@ -13,21 +13,20 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) method: POST - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/xxx/analyze?includeTextDetails=false + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/xxx/analyze?includeTextDetails=false response: body: string: '{"error": {"code": "1001", "message": "Specified model not found or not ready, Model Id: xxx"}}' headers: apim-request-id: - - ac3b1c57-3262-4581-a070-e36959854a1d + - db8ecc9f-94cf-48ec-8ec1-629e4cb7fa10 content-type: - application/json; charset=utf-8 date: - - Thu, 11 Jun 2020 15:42:30 GMT + - Fri, 10 Jul 2020 18:48:34 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -35,7 +34,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '17' + - '13' status: code: 400 message: Bad Request diff --git a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_custom_forms_from_url.test_passing_bad_url.yaml b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_custom_forms_from_url.test_passing_bad_url.yaml index b835e96da235..f21eab53a918 100644 --- a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_custom_forms_from_url.test_passing_bad_url.yaml +++ b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_custom_forms_from_url.test_passing_bad_url.yaml @@ -13,21 +13,20 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) method: POST - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/xx/analyze?includeTextDetails=false + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/xx/analyze?includeTextDetails=false response: body: string: '{"error": {"code": "1001", "message": "Specified model not found or not ready, Model Id: xx"}}' headers: apim-request-id: - - 9d4c00f0-3b3f-4cb9-81c7-ded67ed1f709 + - 6f17d297-9f5c-48ef-9eb6-0f6b8946945b content-type: - application/json; charset=utf-8 date: - - Thu, 11 Jun 2020 15:42:30 GMT + - Fri, 10 Jul 2020 18:48:35 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -35,7 +34,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '9' + - '13' status: code: 400 message: Bad Request diff --git a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_custom_forms_from_url.test_url_authentication_bad_key.yaml b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_custom_forms_from_url.test_url_authentication_bad_key.yaml index 49dc23bdc429..7118d0187abe 100644 --- a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_custom_forms_from_url.test_url_authentication_bad_key.yaml +++ b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_custom_forms_from_url.test_url_authentication_bad_key.yaml @@ -13,21 +13,30 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) method: POST - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/xx/analyze?includeTextDetails=false + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/xx/analyze?includeTextDetails=false response: body: string: '{"error": {"code": "401", "message": "Access denied due to invalid subscription key or wrong API endpoint. Make sure to provide a valid key for an active subscription and use a correct regional API endpoint for your resource."}}' headers: + apim-request-id: + - 08fae345-3203-4e6c-abaf-9074e1ee76cf content-length: - - '224' + - '225' + content-type: + - application/json date: - - Thu, 11 Jun 2020 15:42:31 GMT + - Fri, 10 Jul 2020 18:48:35 GMT + strict-transport-security: + - max-age=31536000; includeSubDomains; preload + www-authenticate: + - AzureApiManagementKey realm="https://centraluseuap.api.cognitive.microsoft.com/formrecognizer",name="Ocp-Apim-Subscription-Key",type="header" + x-content-type-options: + - nosniff status: code: 401 - message: PermissionDenied + message: Access Denied version: 1 diff --git a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_custom_forms_from_url_async.test_custom_form_multipage_unlabeled.yaml b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_custom_forms_from_url_async.test_custom_form_multipage_unlabeled.yaml index ca69c8aac0b0..f2979d160d85 100644 --- a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_custom_forms_from_url_async.test_custom_form_multipage_unlabeled.yaml +++ b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_custom_forms_from_url_async.test_custom_form_multipage_unlabeled.yaml @@ -8,113 +8,84 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) method: POST - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models response: body: string: '' headers: - apim-request-id: bdc68436-08d3-4d46-9e70-147fcd5aa098 + apim-request-id: d0eead19-16ea-46b6-bed1-e8ed9eb0c65c content-length: '0' - date: Thu, 11 Jun 2020 15:42:18 GMT - location: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/a782fc7c-cf57-4930-9a68-eb68b83c766e + date: Fri, 10 Jul 2020 18:49:08 GMT + location: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/8771b582-f165-449c-bcfe-469a4139c72f strict-transport-security: max-age=31536000; includeSubDomains; preload x-content-type-options: nosniff - x-envoy-upstream-service-time: '833' + x-envoy-upstream-service-time: '107' status: code: 201 message: Created - url: https://centraluseuap.api.cognitive.microsoft.com//formrecognizer/v2.0-preview/custom/models + url: https://centraluseuap.api.cognitive.microsoft.com//formrecognizer/v2.0/custom/models - request: body: null headers: User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/a782fc7c-cf57-4930-9a68-eb68b83c766e?includeKeys=true + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/8771b582-f165-449c-bcfe-469a4139c72f?includeKeys=true response: body: - string: '{"modelInfo": {"modelId": "a782fc7c-cf57-4930-9a68-eb68b83c766e", "status": - "creating", "createdDateTime": "2020-06-11T15:42:18Z", "lastUpdatedDateTime": - "2020-06-11T15:42:18Z"}}' + string: '{"modelInfo": {"modelId": "8771b582-f165-449c-bcfe-469a4139c72f", "status": + "creating", "createdDateTime": "2020-07-10T18:49:09Z", "lastUpdatedDateTime": + "2020-07-10T18:49:09Z"}}' headers: - apim-request-id: d82c160b-b1f8-442a-9f3f-1ea61194f6af + apim-request-id: 53d1764c-b30d-47f1-bccd-e046773cef99 content-type: application/json; charset=utf-8 - date: Thu, 11 Jun 2020 15:42:23 GMT + date: Fri, 10 Jul 2020 18:49:14 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '46' + x-envoy-upstream-service-time: '20' status: code: 200 message: OK - url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/a782fc7c-cf57-4930-9a68-eb68b83c766e?includeKeys=true + url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/8771b582-f165-449c-bcfe-469a4139c72f?includeKeys=true - request: body: null headers: User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/a782fc7c-cf57-4930-9a68-eb68b83c766e?includeKeys=true + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/8771b582-f165-449c-bcfe-469a4139c72f?includeKeys=true response: body: - string: '{"modelInfo": {"modelId": "a782fc7c-cf57-4930-9a68-eb68b83c766e", "status": - "creating", "createdDateTime": "2020-06-11T15:42:18Z", "lastUpdatedDateTime": - "2020-06-11T15:42:18Z"}}' + string: '{"modelInfo": {"modelId": "8771b582-f165-449c-bcfe-469a4139c72f", "status": + "creating", "createdDateTime": "2020-07-10T18:49:09Z", "lastUpdatedDateTime": + "2020-07-10T18:49:09Z"}}' headers: - apim-request-id: 36f75f70-006a-489a-aeae-039a5eec57a0 + apim-request-id: 9bd3d633-873c-4563-9082-3352b82a81de content-type: application/json; charset=utf-8 - date: Thu, 11 Jun 2020 15:42:28 GMT + date: Fri, 10 Jul 2020 18:49:19 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '17' + x-envoy-upstream-service-time: '18' status: code: 200 message: OK - url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/a782fc7c-cf57-4930-9a68-eb68b83c766e?includeKeys=true + url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/8771b582-f165-449c-bcfe-469a4139c72f?includeKeys=true - request: body: null headers: User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/a782fc7c-cf57-4930-9a68-eb68b83c766e?includeKeys=true + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/8771b582-f165-449c-bcfe-469a4139c72f?includeKeys=true response: body: - string: '{"modelInfo": {"modelId": "a782fc7c-cf57-4930-9a68-eb68b83c766e", "status": - "creating", "createdDateTime": "2020-06-11T15:42:18Z", "lastUpdatedDateTime": - "2020-06-11T15:42:18Z"}}' - headers: - apim-request-id: 9e4070b7-1d6f-4699-81bc-3fe6241ed876 - content-type: application/json; charset=utf-8 - date: Thu, 11 Jun 2020 15:42:33 GMT - strict-transport-security: max-age=31536000; includeSubDomains; preload - transfer-encoding: chunked - x-content-type-options: nosniff - x-envoy-upstream-service-time: '48' - status: - code: 200 - message: OK - url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/a782fc7c-cf57-4930-9a68-eb68b83c766e?includeKeys=true -- request: - body: null - headers: - User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) - method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/a782fc7c-cf57-4930-9a68-eb68b83c766e?includeKeys=true - response: - body: - string: '{"modelInfo": {"modelId": "a782fc7c-cf57-4930-9a68-eb68b83c766e", "status": - "ready", "createdDateTime": "2020-06-11T15:42:18Z", "lastUpdatedDateTime": - "2020-06-11T15:42:33Z"}, "keys": {"clusters": {"0": ["Address:", "Invoice + string: '{"modelInfo": {"modelId": "8771b582-f165-449c-bcfe-469a4139c72f", "status": + "ready", "createdDateTime": "2020-07-10T18:49:09Z", "lastUpdatedDateTime": + "2020-07-10T18:49:23Z"}, "keys": {"clusters": {"0": ["Address:", "Invoice For:", "Item", "Price", "Quantity", "Redmond, WA", "Signature:", "Subtotal:", "Tax:", "Tip:", "Total:"]}}, "trainResult": {"trainingDocuments": [{"documentName": "multipage_invoice1.pdf", "pages": 3, "errors": [], "status": "succeeded"}, @@ -124,17 +95,17 @@ interactions: 3, "errors": [], "status": "succeeded"}, {"documentName": "multipage_invoice5.pdf", "pages": 3, "errors": [], "status": "succeeded"}], "errors": []}}' headers: - apim-request-id: 48281369-0e6f-4131-8c3e-efb92dedf65f + apim-request-id: 791e2a6e-6c29-4374-8de1-9a8e21a191ed content-type: application/json; charset=utf-8 - date: Thu, 11 Jun 2020 15:42:39 GMT + date: Fri, 10 Jul 2020 18:49:24 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '924' + x-envoy-upstream-service-time: '23' status: code: 200 message: OK - url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/a782fc7c-cf57-4930-9a68-eb68b83c766e?includeKeys=true + url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/8771b582-f165-449c-bcfe-469a4139c72f?includeKeys=true - request: body: 'b''b\''{"source": "blob_sas_url"}\''''' headers: @@ -143,85 +114,58 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) method: POST - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/a782fc7c-cf57-4930-9a68-eb68b83c766e/analyze?includeTextDetails=false + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/8771b582-f165-449c-bcfe-469a4139c72f/analyze?includeTextDetails=false response: body: string: '' headers: - apim-request-id: 604ae8f0-0759-497c-83d4-358fa144f419 + apim-request-id: 60c900cd-8307-4964-9b8e-cca48dc5319f content-length: '0' - date: Thu, 11 Jun 2020 15:42:40 GMT - operation-location: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/a782fc7c-cf57-4930-9a68-eb68b83c766e/analyzeresults/cb0ccfd8-d7e7-4355-bc1b-0b931c485c8d + date: Fri, 10 Jul 2020 18:49:25 GMT + operation-location: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/8771b582-f165-449c-bcfe-469a4139c72f/analyzeresults/d0940597-4dd9-4c82-97fe-3749296ee9b8 strict-transport-security: max-age=31536000; includeSubDomains; preload x-content-type-options: nosniff - x-envoy-upstream-service-time: '124' + x-envoy-upstream-service-time: '103' status: code: 202 message: Accepted - url: https://centraluseuap.api.cognitive.microsoft.com//formrecognizer/v2.0-preview/custom/models/a782fc7c-cf57-4930-9a68-eb68b83c766e/analyze?includeTextDetails=false -- request: - body: null - headers: - User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) - method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/a782fc7c-cf57-4930-9a68-eb68b83c766e/analyzeresults/cb0ccfd8-d7e7-4355-bc1b-0b931c485c8d - response: - body: - string: '{"status": "running", "createdDateTime": "2020-06-11T15:42:40Z", "lastUpdatedDateTime": - "2020-06-11T15:42:42Z", "analyzeResult": null}' - headers: - apim-request-id: 09123cad-571d-4cb8-9961-43e7d6b01c23 - content-length: '134' - content-type: application/json; charset=utf-8 - date: Thu, 11 Jun 2020 15:42:44 GMT - strict-transport-security: max-age=31536000; includeSubDomains; preload - x-content-type-options: nosniff - x-envoy-upstream-service-time: '16' - status: - code: 200 - message: OK - url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/a782fc7c-cf57-4930-9a68-eb68b83c766e/analyzeresults/cb0ccfd8-d7e7-4355-bc1b-0b931c485c8d + url: https://centraluseuap.api.cognitive.microsoft.com//formrecognizer/v2.0/custom/models/8771b582-f165-449c-bcfe-469a4139c72f/analyze?includeTextDetails=false - request: body: null headers: User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/a782fc7c-cf57-4930-9a68-eb68b83c766e/analyzeresults/cb0ccfd8-d7e7-4355-bc1b-0b931c485c8d + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/8771b582-f165-449c-bcfe-469a4139c72f/analyzeresults/d0940597-4dd9-4c82-97fe-3749296ee9b8 response: body: - string: '{"status": "running", "createdDateTime": "2020-06-11T15:42:40Z", "lastUpdatedDateTime": - "2020-06-11T15:42:42Z", "analyzeResult": null}' + string: '{"status": "running", "createdDateTime": "2020-07-10T18:49:25Z", "lastUpdatedDateTime": + "2020-07-10T18:49:27Z", "analyzeResult": null}' headers: - apim-request-id: 4eb3e07a-44a5-467a-8f33-b6c79d5ccae0 + apim-request-id: 7edf65cf-1c36-4b05-ba50-a560f4ca29d6 content-length: '134' content-type: application/json; charset=utf-8 - date: Thu, 11 Jun 2020 15:42:50 GMT + date: Fri, 10 Jul 2020 18:49:30 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload x-content-type-options: nosniff - x-envoy-upstream-service-time: '49' + x-envoy-upstream-service-time: '18' status: code: 200 message: OK - url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/a782fc7c-cf57-4930-9a68-eb68b83c766e/analyzeresults/cb0ccfd8-d7e7-4355-bc1b-0b931c485c8d + url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/8771b582-f165-449c-bcfe-469a4139c72f/analyzeresults/d0940597-4dd9-4c82-97fe-3749296ee9b8 - request: body: null headers: User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/a782fc7c-cf57-4930-9a68-eb68b83c766e/analyzeresults/cb0ccfd8-d7e7-4355-bc1b-0b931c485c8d + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/8771b582-f165-449c-bcfe-469a4139c72f/analyzeresults/d0940597-4dd9-4c82-97fe-3749296ee9b8 response: body: - string: '{"status": "succeeded", "createdDateTime": "2020-06-11T15:42:40Z", - "lastUpdatedDateTime": "2020-06-11T15:42:53Z", "analyzeResult": {"version": + string: '{"status": "succeeded", "createdDateTime": "2020-07-10T18:49:25Z", + "lastUpdatedDateTime": "2020-07-10T18:49:31Z", "analyzeResult": {"version": "2.0.0", "readResults": [{"page": 1, "angle": 0, "width": 8.5, "height": 11.0, "unit": "inch", "lines": []}, {"page": 2, "angle": 0, "width": 8.5, "height": 11.0, "unit": "inch", "lines": []}, {"page": 3, "angle": 0, "width": 8.5, @@ -445,15 +389,15 @@ interactions: 1.0, "rowSpan": 1, "columnSpan": 1, "elements": null, "isHeader": false, "isFooter": false}]}], "clusterId": 0}], "documentResults": [], "errors": []}}' headers: - apim-request-id: 9ef22743-bad5-4de8-81d4-18872d076140 + apim-request-id: 6676cc69-9882-417c-9a82-8849e1507a7f content-length: '17652' content-type: application/json; charset=utf-8 - date: Thu, 11 Jun 2020 15:42:55 GMT + date: Fri, 10 Jul 2020 18:49:34 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload x-content-type-options: nosniff - x-envoy-upstream-service-time: '49' + x-envoy-upstream-service-time: '52' status: code: 200 message: OK - url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/a782fc7c-cf57-4930-9a68-eb68b83c766e/analyzeresults/cb0ccfd8-d7e7-4355-bc1b-0b931c485c8d + url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/8771b582-f165-449c-bcfe-469a4139c72f/analyzeresults/d0940597-4dd9-4c82-97fe-3749296ee9b8 version: 1 diff --git a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_custom_forms_from_url_async.test_custom_form_multipage_vendor_set_labeled_transform.yaml b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_custom_forms_from_url_async.test_custom_form_multipage_vendor_set_labeled_transform.yaml index 40eace666c98..56ea7218de75 100644 --- a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_custom_forms_from_url_async.test_custom_form_multipage_vendor_set_labeled_transform.yaml +++ b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_custom_forms_from_url_async.test_custom_form_multipage_vendor_set_labeled_transform.yaml @@ -8,38 +8,36 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) method: POST - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models response: body: string: '' headers: - apim-request-id: f1abeab8-6272-45b4-83eb-104795e8bf90 + apim-request-id: 1c1068bf-890c-4947-a852-b0b1dd112731 content-length: '0' - date: Thu, 11 Jun 2020 15:42:55 GMT - location: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/42714103-34a9-4ee3-857f-c0873e04a072 + date: Fri, 10 Jul 2020 18:49:36 GMT + location: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/223aa816-b6cc-4e33-90ef-f2bace2dee39 strict-transport-security: max-age=31536000; includeSubDomains; preload x-content-type-options: nosniff - x-envoy-upstream-service-time: '36' + x-envoy-upstream-service-time: '855' status: code: 201 message: Created - url: https://centraluseuap.api.cognitive.microsoft.com//formrecognizer/v2.0-preview/custom/models + url: https://centraluseuap.api.cognitive.microsoft.com//formrecognizer/v2.0/custom/models - request: body: null headers: User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/42714103-34a9-4ee3-857f-c0873e04a072?includeKeys=true + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/223aa816-b6cc-4e33-90ef-f2bace2dee39?includeKeys=true response: body: - string: '{"modelInfo": {"modelId": "42714103-34a9-4ee3-857f-c0873e04a072", "status": - "ready", "createdDateTime": "2020-06-11T15:42:56Z", "lastUpdatedDateTime": - "2020-06-11T15:42:57Z"}, "trainResult": {"averageModelAccuracy": 0.971, "trainingDocuments": + string: '{"modelInfo": {"modelId": "223aa816-b6cc-4e33-90ef-f2bace2dee39", "status": + "ready", "createdDateTime": "2020-07-10T18:49:36Z", "lastUpdatedDateTime": + "2020-07-10T18:49:39Z"}, "trainResult": {"averageModelAccuracy": 0.971, "trainingDocuments": [{"documentName": "multi1.pdf", "pages": 2, "status": "succeeded"}, {"documentName": "multi2.pdf", "pages": 2, "status": "succeeded"}, {"documentName": "multi3.pdf", "pages": 2, "status": "succeeded"}, {"documentName": "multi4.pdf", "pages": @@ -50,17 +48,17 @@ interactions: 1.0}, {"fieldName": "Half", "accuracy": 1.0}, {"fieldName": "Silver", "accuracy": 1.0}], "errors": []}}' headers: - apim-request-id: d1f07e4e-1e9b-4234-bca0-eae7bf0d49af + apim-request-id: e718b2fd-5046-4e6c-8f10-28ca39f876e0 content-type: application/json; charset=utf-8 - date: Thu, 11 Jun 2020 15:43:01 GMT + date: Fri, 10 Jul 2020 18:49:41 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '51' + x-envoy-upstream-service-time: '49' status: code: 200 message: OK - url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/42714103-34a9-4ee3-857f-c0873e04a072?includeKeys=true + url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/223aa816-b6cc-4e33-90ef-f2bace2dee39?includeKeys=true - request: body: 'b''b\''{"source": "blob_sas_url"}\''''' headers: @@ -69,61 +67,81 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) method: POST - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/42714103-34a9-4ee3-857f-c0873e04a072/analyze?includeTextDetails=true + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/223aa816-b6cc-4e33-90ef-f2bace2dee39/analyze?includeTextDetails=true response: body: string: '' headers: - apim-request-id: 4bb66fa6-a8a4-4717-a06e-86657b05c302 + apim-request-id: db3e367a-513b-49b1-9693-1e6730f0a6df content-length: '0' - date: Thu, 11 Jun 2020 15:43:02 GMT - operation-location: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/42714103-34a9-4ee3-857f-c0873e04a072/analyzeresults/edc37b1a-3b5e-4810-b6ed-4f8adad2d4e6 + date: Fri, 10 Jul 2020 18:49:41 GMT + operation-location: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/223aa816-b6cc-4e33-90ef-f2bace2dee39/analyzeresults/0e899026-370b-444b-9349-94aed99a1fc3 strict-transport-security: max-age=31536000; includeSubDomains; preload x-content-type-options: nosniff - x-envoy-upstream-service-time: '892' + x-envoy-upstream-service-time: '147' status: code: 202 message: Accepted - url: https://centraluseuap.api.cognitive.microsoft.com//formrecognizer/v2.0-preview/custom/models/42714103-34a9-4ee3-857f-c0873e04a072/analyze?includeTextDetails=true + url: https://centraluseuap.api.cognitive.microsoft.com//formrecognizer/v2.0/custom/models/223aa816-b6cc-4e33-90ef-f2bace2dee39/analyze?includeTextDetails=true - request: body: null headers: User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/42714103-34a9-4ee3-857f-c0873e04a072/analyzeresults/edc37b1a-3b5e-4810-b6ed-4f8adad2d4e6 + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/223aa816-b6cc-4e33-90ef-f2bace2dee39/analyzeresults/0e899026-370b-444b-9349-94aed99a1fc3 response: body: - string: '{"status": "notStarted", "createdDateTime": "2020-06-11T15:43:01Z", - "lastUpdatedDateTime": "2020-06-11T15:43:04Z"}' + string: '{"status": "notStarted", "createdDateTime": "2020-07-10T18:49:42Z", + "lastUpdatedDateTime": "2020-07-10T18:49:46Z"}' headers: - apim-request-id: 3599a12f-1bff-4ba3-9679-48f8f3571cad + apim-request-id: ccdd0645-3606-4655-aea7-595c3fcaa81d content-length: '109' content-type: application/json; charset=utf-8 - date: Thu, 11 Jun 2020 15:43:07 GMT + date: Fri, 10 Jul 2020 18:49:47 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload x-content-type-options: nosniff - x-envoy-upstream-service-time: '46' + x-envoy-upstream-service-time: '20' status: code: 200 message: OK - url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/42714103-34a9-4ee3-857f-c0873e04a072/analyzeresults/edc37b1a-3b5e-4810-b6ed-4f8adad2d4e6 + url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/223aa816-b6cc-4e33-90ef-f2bace2dee39/analyzeresults/0e899026-370b-444b-9349-94aed99a1fc3 - request: body: null headers: User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/42714103-34a9-4ee3-857f-c0873e04a072/analyzeresults/edc37b1a-3b5e-4810-b6ed-4f8adad2d4e6 + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/223aa816-b6cc-4e33-90ef-f2bace2dee39/analyzeresults/0e899026-370b-444b-9349-94aed99a1fc3 response: body: - string: '{"status": "succeeded", "createdDateTime": "2020-06-11T15:43:01Z", - "lastUpdatedDateTime": "2020-06-11T15:43:10Z", "analyzeResult": {"version": + string: '{"status": "notStarted", "createdDateTime": "2020-07-10T18:49:42Z", + "lastUpdatedDateTime": "2020-07-10T18:49:46Z"}' + headers: + apim-request-id: 5a73f9c7-5cd1-4337-bb67-c86070b20a0b + content-length: '109' + content-type: application/json; charset=utf-8 + date: Fri, 10 Jul 2020 18:49:52 GMT + strict-transport-security: max-age=31536000; includeSubDomains; preload + x-content-type-options: nosniff + x-envoy-upstream-service-time: '927' + status: + code: 200 + message: OK + url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/223aa816-b6cc-4e33-90ef-f2bace2dee39/analyzeresults/0e899026-370b-444b-9349-94aed99a1fc3 +- request: + body: null + headers: + User-Agent: + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + method: GET + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/223aa816-b6cc-4e33-90ef-f2bace2dee39/analyzeresults/0e899026-370b-444b-9349-94aed99a1fc3 + response: + body: + string: '{"status": "succeeded", "createdDateTime": "2020-07-10T18:49:42Z", + "lastUpdatedDateTime": "2020-07-10T18:49:54Z", "analyzeResult": {"version": "2.0.0", "readResults": [{"page": 1, "language": "en", "angle": 0, "width": 8.5, "height": 11, "unit": "inch", "lines": [{"boundingBox": [6.1276, 1.0667, 7.4833, 1.0667, 7.4833, 1.2403, 6.1276, 1.2403], "text": "Vendor #:121", "words": @@ -577,38 +595,38 @@ interactions: {"rowIndex": 19, "columnIndex": 1, "text": "advertisements", "boundingBox": [2.625, 8.7083, 5.75, 8.7083, 5.75, 8.905, 2.625, 8.905], "elements": ["#/readResults/0/lines/56/words/0"]}]}]}, {"page": 2, "tables": []}], "documentResults": [{"docType": "custom:form", - "pageRange": [1, 2], "fields": {"Contact": {"type": "string", "valueString": - "Jamie@southridgevideo.com", "text": "Jamie@southridgevideo.com", "page": - 2, "boundingBox": [1.62, 3.1, 3.575, 3.1, 3.575, 3.245, 1.62, 3.245], "confidence": - 1.0, "elements": ["#/analyzeResult/readResults/1/lines/3/words/1"]}, "Full": + "pageRange": [1, 2], "fields": {"CompanyName": {"type": "string", "valueString": + "Southridge Video", "text": "Southridge Video", "page": 2, "boundingBox": + [2.19, 2.77, 3.35, 2.77, 3.35, 2.915, 2.19, 2.915], "confidence": 1.0, "elements": + ["#/analyzeResult/readResults/1/lines/2/words/2", "#/analyzeResult/readResults/1/lines/2/words/3"]}, + "Bronze": {"type": "string", "valueString": "$1,000", "text": "$1,000", "page": + 1, "boundingBox": [5.835, 6.825, 6.285, 6.825, 6.285, 6.97, 5.835, 6.97], + "confidence": 1.0, "elements": ["#/analyzeResult/readResults/0/lines/37/words/0"]}, + "Silver": {"type": "string", "valueString": "$1,200", "text": "$1,200", "page": + 1, "boundingBox": [5.835, 5.97, 6.285, 5.97, 6.285, 6.115, 5.835, 6.115], + "confidence": 1.0, "elements": ["#/analyzeResult/readResults/0/lines/27/words/0"]}, + "Gold": {"type": "string", "valueString": "$1,500", "text": "$1,500", "page": + 1, "boundingBox": [5.835, 4.9, 6.285, 4.9, 6.285, 5.045, 5.835, 5.045], "confidence": + 1.0, "elements": ["#/analyzeResult/readResults/0/lines/16/words/0"]}, "Full": {"type": "string", "valueString": "$600", "text": "$600", "page": 1, "boundingBox": [5.835, 7.67, 6.16, 7.67, 6.16, 7.815, 5.835, 7.815], "confidence": 1.0, "elements": - ["#/analyzeResult/readResults/0/lines/46/words/0"]}, "Bronze": {"type": "string", - "valueString": "$1,000", "text": "$1,000", "page": 1, "boundingBox": [5.835, - 6.825, 6.285, 6.825, 6.285, 6.97, 5.835, 6.97], "confidence": 1.0, "elements": - ["#/analyzeResult/readResults/0/lines/37/words/0"]}, "CompanyName": {"type": - "string", "valueString": "Southridge Video", "text": "Southridge Video", "page": - 2, "boundingBox": [2.19, 2.77, 3.35, 2.77, 3.35, 2.915, 2.19, 2.915], "confidence": - 1.0, "elements": ["#/analyzeResult/readResults/1/lines/2/words/2", "#/analyzeResult/readResults/1/lines/2/words/3"]}, - "Half": {"type": "string", "valueString": "$350", "text": "$350", "page": - 1, "boundingBox": [5.835, 8.305, 6.16, 8.305, 6.16, 8.45, 5.835, 8.45], "confidence": - 1.0, "elements": ["#/analyzeResult/readResults/0/lines/53/words/0"]}, "Silver": - {"type": "string", "valueString": "$1,200", "text": "$1,200", "page": 1, "boundingBox": - [5.835, 5.97, 6.285, 5.97, 6.285, 6.115, 5.835, 6.115], "confidence": 1.0, - "elements": ["#/analyzeResult/readResults/0/lines/27/words/0"]}, "Gold": {"type": - "string", "valueString": "$1,500", "text": "$1,500", "page": 1, "boundingBox": - [5.835, 4.9, 6.285, 4.9, 6.285, 5.045, 5.835, 5.045], "confidence": 1.0, "elements": - ["#/analyzeResult/readResults/0/lines/16/words/0"]}}}], "errors": []}}' + ["#/analyzeResult/readResults/0/lines/46/words/0"]}, "Half": {"type": "string", + "valueString": "$350", "text": "$350", "page": 1, "boundingBox": [5.835, 8.305, + 6.16, 8.305, 6.16, 8.45, 5.835, 8.45], "confidence": 1.0, "elements": ["#/analyzeResult/readResults/0/lines/53/words/0"]}, + "Contact": {"type": "string", "valueString": "Jamie@southridgevideo.com", + "text": "Jamie@southridgevideo.com", "page": 2, "boundingBox": [1.62, 3.1, + 3.575, 3.1, 3.575, 3.245, 1.62, 3.245], "confidence": 1.0, "elements": ["#/analyzeResult/readResults/1/lines/3/words/1"]}}}], + "errors": []}}' headers: - apim-request-id: ba62a71a-8502-461d-a02e-d077ff62d857 + apim-request-id: 4c59a012-4c48-4ad5-b1af-960011840798 content-length: '34159' content-type: application/json; charset=utf-8 - date: Thu, 11 Jun 2020 15:43:12 GMT + date: Fri, 10 Jul 2020 18:49:58 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload x-content-type-options: nosniff - x-envoy-upstream-service-time: '53' + x-envoy-upstream-service-time: '164' status: code: 200 message: OK - url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/42714103-34a9-4ee3-857f-c0873e04a072/analyzeresults/edc37b1a-3b5e-4810-b6ed-4f8adad2d4e6 + url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/223aa816-b6cc-4e33-90ef-f2bace2dee39/analyzeresults/0e899026-370b-444b-9349-94aed99a1fc3 version: 1 diff --git a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_custom_forms_from_url_async.test_custom_form_multipage_vendor_set_unlabeled_transform.yaml b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_custom_forms_from_url_async.test_custom_form_multipage_vendor_set_unlabeled_transform.yaml index 541d86e81934..4c830a7b305c 100644 --- a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_custom_forms_from_url_async.test_custom_form_multipage_vendor_set_unlabeled_transform.yaml +++ b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_custom_forms_from_url_async.test_custom_form_multipage_vendor_set_unlabeled_transform.yaml @@ -8,67 +8,112 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) method: POST - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models response: body: string: '' headers: - apim-request-id: 51e68d23-d15e-405a-8ff2-23bed7c2ace5 + apim-request-id: b6ee1833-de09-4450-b244-ee5e3b0da71e content-length: '0' - date: Thu, 11 Jun 2020 15:43:12 GMT - location: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/4a7d2cb8-2174-4201-9fd9-8442091a547e + date: Fri, 10 Jul 2020 18:49:58 GMT + location: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/a9e06b8e-99e1-4362-9063-a1807976c5da strict-transport-security: max-age=31536000; includeSubDomains; preload x-content-type-options: nosniff - x-envoy-upstream-service-time: '70' + x-envoy-upstream-service-time: '64' status: code: 201 message: Created - url: https://centraluseuap.api.cognitive.microsoft.com//formrecognizer/v2.0-preview/custom/models + url: https://centraluseuap.api.cognitive.microsoft.com//formrecognizer/v2.0/custom/models +- request: + body: null + headers: + User-Agent: + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + method: GET + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/a9e06b8e-99e1-4362-9063-a1807976c5da?includeKeys=true + response: + body: + string: '{"modelInfo": {"modelId": "a9e06b8e-99e1-4362-9063-a1807976c5da", "status": + "creating", "createdDateTime": "2020-07-10T18:49:59Z", "lastUpdatedDateTime": + "2020-07-10T18:49:59Z"}}' + headers: + apim-request-id: b16ee8bb-2d4d-4e0e-b040-3164a4233d37 + content-type: application/json; charset=utf-8 + date: Fri, 10 Jul 2020 18:50:09 GMT + strict-transport-security: max-age=31536000; includeSubDomains; preload + transfer-encoding: chunked + x-content-type-options: nosniff + x-envoy-upstream-service-time: '5813' + status: + code: 200 + message: OK + url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/a9e06b8e-99e1-4362-9063-a1807976c5da?includeKeys=true - request: body: null headers: User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/4a7d2cb8-2174-4201-9fd9-8442091a547e?includeKeys=true + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/a9e06b8e-99e1-4362-9063-a1807976c5da?includeKeys=true response: body: - string: '{"modelInfo": {"modelId": "4a7d2cb8-2174-4201-9fd9-8442091a547e", "status": - "creating", "createdDateTime": "2020-06-11T15:43:13Z", "lastUpdatedDateTime": - "2020-06-11T15:43:13Z"}}' + string: '{"modelInfo": {"modelId": "a9e06b8e-99e1-4362-9063-a1807976c5da", "status": + "creating", "createdDateTime": "2020-07-10T18:49:59Z", "lastUpdatedDateTime": + "2020-07-10T18:49:59Z"}}' headers: - apim-request-id: ee8ad55d-25c2-43b4-98b8-e4b9213c313d + apim-request-id: cb76be84-d1cf-493b-9716-b1d73dcb99fe content-type: application/json; charset=utf-8 - date: Thu, 11 Jun 2020 15:43:18 GMT + date: Fri, 10 Jul 2020 18:50:14 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '18' + x-envoy-upstream-service-time: '19' status: code: 200 message: OK - url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/4a7d2cb8-2174-4201-9fd9-8442091a547e?includeKeys=true + url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/a9e06b8e-99e1-4362-9063-a1807976c5da?includeKeys=true - request: body: null headers: User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/4a7d2cb8-2174-4201-9fd9-8442091a547e?includeKeys=true + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/a9e06b8e-99e1-4362-9063-a1807976c5da?includeKeys=true response: body: - string: '{"modelInfo": {"modelId": "4a7d2cb8-2174-4201-9fd9-8442091a547e", "status": - "creating", "createdDateTime": "2020-06-11T15:43:13Z", "lastUpdatedDateTime": - "2020-06-11T15:43:13Z"}}' + string: '{"modelInfo": {"modelId": "a9e06b8e-99e1-4362-9063-a1807976c5da", "status": + "creating", "createdDateTime": "2020-07-10T18:49:59Z", "lastUpdatedDateTime": + "2020-07-10T18:49:59Z"}}' headers: - apim-request-id: 0b7c10b0-bfc7-467d-836d-6d840ffc8f32 + apim-request-id: a36a3a0a-8ffd-48e9-b0e6-8b110ec1849d content-type: application/json; charset=utf-8 - date: Thu, 11 Jun 2020 15:43:23 GMT + date: Fri, 10 Jul 2020 18:50:19 GMT + strict-transport-security: max-age=31536000; includeSubDomains; preload + transfer-encoding: chunked + x-content-type-options: nosniff + x-envoy-upstream-service-time: '19' + status: + code: 200 + message: OK + url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/a9e06b8e-99e1-4362-9063-a1807976c5da?includeKeys=true +- request: + body: null + headers: + User-Agent: + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + method: GET + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/a9e06b8e-99e1-4362-9063-a1807976c5da?includeKeys=true + response: + body: + string: '{"modelInfo": {"modelId": "a9e06b8e-99e1-4362-9063-a1807976c5da", "status": + "creating", "createdDateTime": "2020-07-10T18:49:59Z", "lastUpdatedDateTime": + "2020-07-10T18:49:59Z"}}' + headers: + apim-request-id: f09f18e0-ef6c-496d-a4f8-ccfc0b02f94b + content-type: application/json; charset=utf-8 + date: Fri, 10 Jul 2020 18:50:24 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff @@ -76,20 +121,19 @@ interactions: status: code: 200 message: OK - url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/4a7d2cb8-2174-4201-9fd9-8442091a547e?includeKeys=true + url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/a9e06b8e-99e1-4362-9063-a1807976c5da?includeKeys=true - request: body: null headers: User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/4a7d2cb8-2174-4201-9fd9-8442091a547e?includeKeys=true + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/a9e06b8e-99e1-4362-9063-a1807976c5da?includeKeys=true response: body: - string: '{"modelInfo": {"modelId": "4a7d2cb8-2174-4201-9fd9-8442091a547e", "status": - "ready", "createdDateTime": "2020-06-11T15:43:13Z", "lastUpdatedDateTime": - "2020-06-11T15:43:26Z"}, "keys": {"clusters": {"0": ["Contoso Ltd. Conference + string: '{"modelInfo": {"modelId": "a9e06b8e-99e1-4362-9063-a1807976c5da", "status": + "ready", "createdDateTime": "2020-07-10T18:49:59Z", "lastUpdatedDateTime": + "2020-07-10T18:50:10Z"}, "keys": {"clusters": {"0": ["Contoso Ltd. Conference will be held on May 28-29, 2020 at the Elm Conference Center in", "Included", "Maple City, Massachusetts. The conference has sold out of its 1,500 tickets, with a 400 person", "Package", "Price", "Rates:", "Vendor #:", "Vendor Registration", @@ -104,17 +148,17 @@ interactions: "multi5.pdf", "pages": 2, "errors": [], "status": "succeeded"}], "errors": []}}' headers: - apim-request-id: 08b0c26c-a8fb-4158-a7d9-e67b945cb2b9 + apim-request-id: 22039a7d-802b-4672-abf9-9758afb662a9 content-type: application/json; charset=utf-8 - date: Thu, 11 Jun 2020 15:43:29 GMT + date: Fri, 10 Jul 2020 18:50:30 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '64' + x-envoy-upstream-service-time: '16' status: code: 200 message: OK - url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/4a7d2cb8-2174-4201-9fd9-8442091a547e?includeKeys=true + url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/a9e06b8e-99e1-4362-9063-a1807976c5da?includeKeys=true - request: body: 'b''b\''{"source": "blob_sas_url"}\''''' headers: @@ -123,61 +167,58 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) method: POST - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/4a7d2cb8-2174-4201-9fd9-8442091a547e/analyze?includeTextDetails=true + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/a9e06b8e-99e1-4362-9063-a1807976c5da/analyze?includeTextDetails=true response: body: string: '' headers: - apim-request-id: abce99c7-6373-42c2-b0f2-04df98c4f247 + apim-request-id: 3a898168-0278-4627-a007-9ca69bf87d9a content-length: '0' - date: Thu, 11 Jun 2020 15:43:29 GMT - operation-location: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/4a7d2cb8-2174-4201-9fd9-8442091a547e/analyzeresults/f81ad727-9461-467c-9095-e3e50f7d9e14 + date: Fri, 10 Jul 2020 18:50:30 GMT + operation-location: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/a9e06b8e-99e1-4362-9063-a1807976c5da/analyzeresults/ffc5d6c4-ce85-4bb2-9eb8-8c6aff599924 strict-transport-security: max-age=31536000; includeSubDomains; preload x-content-type-options: nosniff - x-envoy-upstream-service-time: '81' + x-envoy-upstream-service-time: '82' status: code: 202 message: Accepted - url: https://centraluseuap.api.cognitive.microsoft.com//formrecognizer/v2.0-preview/custom/models/4a7d2cb8-2174-4201-9fd9-8442091a547e/analyze?includeTextDetails=true + url: https://centraluseuap.api.cognitive.microsoft.com//formrecognizer/v2.0/custom/models/a9e06b8e-99e1-4362-9063-a1807976c5da/analyze?includeTextDetails=true - request: body: null headers: User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/4a7d2cb8-2174-4201-9fd9-8442091a547e/analyzeresults/f81ad727-9461-467c-9095-e3e50f7d9e14 + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/a9e06b8e-99e1-4362-9063-a1807976c5da/analyzeresults/ffc5d6c4-ce85-4bb2-9eb8-8c6aff599924 response: body: - string: '{"status": "running", "createdDateTime": "2020-06-11T15:43:29Z", "lastUpdatedDateTime": - "2020-06-11T15:43:31Z", "analyzeResult": null}' + string: '{"status": "running", "createdDateTime": "2020-07-10T18:50:30Z", "lastUpdatedDateTime": + "2020-07-10T18:50:34Z", "analyzeResult": null}' headers: - apim-request-id: 97ef6913-ee2e-47d3-b132-ca1b1ef5773c + apim-request-id: 11fd15be-d187-419c-8cca-bdb74b3dc867 content-length: '134' content-type: application/json; charset=utf-8 - date: Thu, 11 Jun 2020 15:43:34 GMT + date: Fri, 10 Jul 2020 18:50:35 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload x-content-type-options: nosniff - x-envoy-upstream-service-time: '46' + x-envoy-upstream-service-time: '21' status: code: 200 message: OK - url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/4a7d2cb8-2174-4201-9fd9-8442091a547e/analyzeresults/f81ad727-9461-467c-9095-e3e50f7d9e14 + url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/a9e06b8e-99e1-4362-9063-a1807976c5da/analyzeresults/ffc5d6c4-ce85-4bb2-9eb8-8c6aff599924 - request: body: null headers: User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/4a7d2cb8-2174-4201-9fd9-8442091a547e/analyzeresults/f81ad727-9461-467c-9095-e3e50f7d9e14 + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/a9e06b8e-99e1-4362-9063-a1807976c5da/analyzeresults/ffc5d6c4-ce85-4bb2-9eb8-8c6aff599924 response: body: - string: '{"status": "succeeded", "createdDateTime": "2020-06-11T15:43:29Z", - "lastUpdatedDateTime": "2020-06-11T15:43:35Z", "analyzeResult": {"version": + string: '{"status": "succeeded", "createdDateTime": "2020-07-10T18:50:30Z", + "lastUpdatedDateTime": "2020-07-10T18:50:38Z", "analyzeResult": {"version": "2.0.0", "readResults": [{"page": 1, "angle": 0, "width": 8.5, "height": 11.0, "unit": "inch", "lines": [{"text": "Vendor #:", "boundingBox": [6.1236, 1.0014, 7.1167, 1.0014, 7.1167, 1.3056, 6.1236, 1.3056], "words": [{"text": "Vendor", @@ -627,15 +668,15 @@ interactions: "confidence": 1.0}], "tables": [], "clusterId": 1}], "documentResults": [], "errors": []}}' headers: - apim-request-id: 464891b1-2867-4793-bcd4-c618aba27671 + apim-request-id: 4b233fa8-465b-4ded-b1fd-8aa92a491e81 content-length: '36398' content-type: application/json; charset=utf-8 - date: Thu, 11 Jun 2020 15:43:39 GMT + date: Fri, 10 Jul 2020 18:50:40 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload x-content-type-options: nosniff - x-envoy-upstream-service-time: '60' + x-envoy-upstream-service-time: '27' status: code: 200 message: OK - url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/4a7d2cb8-2174-4201-9fd9-8442091a547e/analyzeresults/f81ad727-9461-467c-9095-e3e50f7d9e14 + url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/a9e06b8e-99e1-4362-9063-a1807976c5da/analyzeresults/ffc5d6c4-ce85-4bb2-9eb8-8c6aff599924 version: 1 diff --git a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_custom_forms_from_url_async.test_custom_forms_encoded_url.yaml b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_custom_forms_from_url_async.test_custom_forms_encoded_url.yaml index 9ffa6e6e91f2..fb9e882be748 100644 --- a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_custom_forms_from_url_async.test_custom_forms_encoded_url.yaml +++ b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_custom_forms_from_url_async.test_custom_forms_encoded_url.yaml @@ -7,24 +7,23 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) method: POST - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/00000000-0000-0000-0000-000000000000/analyze?includeTextDetails=false + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/00000000-0000-0000-0000-000000000000/analyze?includeTextDetails=false response: body: string: '{"error": {"code": "1001", "message": "Specified model not found or not ready, Model Id: 00000000-0000-0000-0000-000000000000"}}' headers: - apim-request-id: b0aacb56-81aa-4ba0-bcb0-d8ffeb7d81fb + apim-request-id: b05f2852-843e-458b-a2d3-e52a26a6795f content-type: application/json; charset=utf-8 - date: Mon, 15 Jun 2020 18:24:07 GMT + date: Fri, 10 Jul 2020 18:50:41 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '1018' + x-envoy-upstream-service-time: '13' status: code: 400 message: Bad Request - url: https://centraluseuap.api.cognitive.microsoft.com//formrecognizer/v2.0-preview/custom/models/00000000-0000-0000-0000-000000000000/analyze?includeTextDetails=false + url: https://centraluseuap.api.cognitive.microsoft.com//formrecognizer/v2.0/custom/models/00000000-0000-0000-0000-000000000000/analyze?includeTextDetails=false version: 1 diff --git a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_custom_forms_from_url_async.test_form_bad_url.yaml b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_custom_forms_from_url_async.test_form_bad_url.yaml index 02d5e459b97f..e632cbe8b948 100644 --- a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_custom_forms_from_url_async.test_form_bad_url.yaml +++ b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_custom_forms_from_url_async.test_form_bad_url.yaml @@ -8,38 +8,60 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) method: POST - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models response: body: string: '' headers: - apim-request-id: fa8a7bd1-6db3-4eac-ac46-3dce5617d023 + apim-request-id: 6e3beb66-d389-484f-9ffe-d1d071bc13cf content-length: '0' - date: Thu, 11 Jun 2020 15:42:14 GMT - location: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/5bc80bad-7923-49e5-bcd9-b5f11efb6709 + date: Fri, 10 Jul 2020 18:50:41 GMT + location: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/4bd66569-63c5-44ed-80ae-2a9d93c4b808 strict-transport-security: max-age=31536000; includeSubDomains; preload x-content-type-options: nosniff - x-envoy-upstream-service-time: '81' + x-envoy-upstream-service-time: '75' status: code: 201 message: Created - url: https://centraluseuap.api.cognitive.microsoft.com//formrecognizer/v2.0-preview/custom/models + url: https://centraluseuap.api.cognitive.microsoft.com//formrecognizer/v2.0/custom/models - request: body: null headers: User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/5bc80bad-7923-49e5-bcd9-b5f11efb6709?includeKeys=true + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/4bd66569-63c5-44ed-80ae-2a9d93c4b808?includeKeys=true response: body: - string: '{"modelInfo": {"modelId": "5bc80bad-7923-49e5-bcd9-b5f11efb6709", "status": - "ready", "createdDateTime": "2020-06-11T15:42:15Z", "lastUpdatedDateTime": - "2020-06-11T15:42:17Z"}, "trainResult": {"averageModelAccuracy": 0.973, "trainingDocuments": + string: '{"modelInfo": {"modelId": "4bd66569-63c5-44ed-80ae-2a9d93c4b808", "status": + "creating", "createdDateTime": "2020-07-10T18:50:41Z", "lastUpdatedDateTime": + "2020-07-10T18:50:41Z"}}' + headers: + apim-request-id: 33e15865-5953-40ba-b2d5-b8598b5040a0 + content-type: application/json; charset=utf-8 + date: Fri, 10 Jul 2020 18:50:47 GMT + strict-transport-security: max-age=31536000; includeSubDomains; preload + transfer-encoding: chunked + x-content-type-options: nosniff + x-envoy-upstream-service-time: '18' + status: + code: 200 + message: OK + url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/4bd66569-63c5-44ed-80ae-2a9d93c4b808?includeKeys=true +- request: + body: null + headers: + User-Agent: + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + method: GET + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/4bd66569-63c5-44ed-80ae-2a9d93c4b808?includeKeys=true + response: + body: + string: '{"modelInfo": {"modelId": "4bd66569-63c5-44ed-80ae-2a9d93c4b808", "status": + "ready", "createdDateTime": "2020-07-10T18:50:41Z", "lastUpdatedDateTime": + "2020-07-10T18:50:49Z"}, "trainResult": {"averageModelAccuracy": 0.973, "trainingDocuments": [{"documentName": "Form_1.jpg", "pages": 1, "status": "succeeded"}, {"documentName": "Form_2.jpg", "pages": 1, "status": "succeeded"}, {"documentName": "Form_3.jpg", "pages": 1, "status": "succeeded"}, {"documentName": "Form_4.jpg", "pages": @@ -55,17 +77,17 @@ interactions: "VendorName", "accuracy": 1.0}, {"fieldName": "Website", "accuracy": 1.0}], "errors": []}}' headers: - apim-request-id: dec8feeb-2271-4b50-b582-55c6578c6e58 + apim-request-id: 54cd8f4d-49e3-43d2-bcf4-c804caf3da52 content-type: application/json; charset=utf-8 - date: Thu, 11 Jun 2020 15:42:20 GMT + date: Fri, 10 Jul 2020 18:50:51 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '45' + x-envoy-upstream-service-time: '54' status: code: 200 message: OK - url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/5bc80bad-7923-49e5-bcd9-b5f11efb6709?includeKeys=true + url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/4bd66569-63c5-44ed-80ae-2a9d93c4b808?includeKeys=true - request: body: 'b''{"source": "https://badurl.jpg"}''' headers: @@ -74,49 +96,47 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) method: POST - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/5bc80bad-7923-49e5-bcd9-b5f11efb6709/analyze?includeTextDetails=false + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/4bd66569-63c5-44ed-80ae-2a9d93c4b808/analyze?includeTextDetails=false response: body: string: '' headers: - apim-request-id: 8cf76b35-bfac-4bc1-8f10-23cf8cd76428 + apim-request-id: a53fcefe-33b1-484c-a03c-bc297b3aa020 content-length: '0' - date: Thu, 11 Jun 2020 15:42:20 GMT - operation-location: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/5bc80bad-7923-49e5-bcd9-b5f11efb6709/analyzeresults/e38e6a57-0669-4a84-a927-a0046248bae7 + date: Fri, 10 Jul 2020 18:50:53 GMT + operation-location: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/4bd66569-63c5-44ed-80ae-2a9d93c4b808/analyzeresults/940baac0-bbe9-42c3-8cfc-8ac8ae5cb02a strict-transport-security: max-age=31536000; includeSubDomains; preload x-content-type-options: nosniff - x-envoy-upstream-service-time: '90' + x-envoy-upstream-service-time: '282' status: code: 202 message: Accepted - url: https://centraluseuap.api.cognitive.microsoft.com//formrecognizer/v2.0-preview/custom/models/5bc80bad-7923-49e5-bcd9-b5f11efb6709/analyze?includeTextDetails=false + url: https://centraluseuap.api.cognitive.microsoft.com//formrecognizer/v2.0/custom/models/4bd66569-63c5-44ed-80ae-2a9d93c4b808/analyze?includeTextDetails=false - request: body: null headers: User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/5bc80bad-7923-49e5-bcd9-b5f11efb6709/analyzeresults/e38e6a57-0669-4a84-a927-a0046248bae7 + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/4bd66569-63c5-44ed-80ae-2a9d93c4b808/analyzeresults/940baac0-bbe9-42c3-8cfc-8ac8ae5cb02a response: body: - string: '{"status": "failed", "createdDateTime": "2020-06-11T15:42:20Z", "lastUpdatedDateTime": - "2020-06-11T15:42:21Z", "analyzeResult": {"version": "2.0.0", "errors": [{"code": + string: '{"status": "failed", "createdDateTime": "2020-07-10T18:50:53Z", "lastUpdatedDateTime": + "2020-07-10T18:50:53Z", "analyzeResult": {"version": "2.0.0", "errors": [{"code": "3014", "message": "Generic error during prediction."}]}}' headers: - apim-request-id: 6a8d61d3-6df8-423c-9cb1-237525f00b56 + apim-request-id: c37dec93-4500-4f1a-9894-21cfd3523272 content-length: '213' content-type: application/json; charset=utf-8 - date: Thu, 11 Jun 2020 15:42:25 GMT + date: Fri, 10 Jul 2020 18:50:57 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload x-content-type-options: nosniff - x-envoy-upstream-service-time: '54' + x-envoy-upstream-service-time: '45' x-ms-cs-error-code: '3014' status: code: 200 message: OK - url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/5bc80bad-7923-49e5-bcd9-b5f11efb6709/analyzeresults/e38e6a57-0669-4a84-a927-a0046248bae7 + url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/4bd66569-63c5-44ed-80ae-2a9d93c4b808/analyzeresults/940baac0-bbe9-42c3-8cfc-8ac8ae5cb02a version: 1 diff --git a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_custom_forms_from_url_async.test_form_labeled.yaml b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_custom_forms_from_url_async.test_form_labeled.yaml index 10dd2180c912..2e09a817eaf7 100644 --- a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_custom_forms_from_url_async.test_form_labeled.yaml +++ b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_custom_forms_from_url_async.test_form_labeled.yaml @@ -8,38 +8,36 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) method: POST - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models response: body: string: '' headers: - apim-request-id: 5fcd9aa3-2f36-4557-b338-a85e41640225 + apim-request-id: ce4ae571-fa7b-48b3-aca2-33527a13a670 content-length: '0' - date: Thu, 11 Jun 2020 15:42:27 GMT - location: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/14da02b2-9c8b-4bea-b722-6854564fabb2 + date: Fri, 10 Jul 2020 18:51:00 GMT + location: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/af3127d7-1eaa-4c34-906a-77062b72e854 strict-transport-security: max-age=31536000; includeSubDomains; preload x-content-type-options: nosniff - x-envoy-upstream-service-time: '78' + x-envoy-upstream-service-time: '1818' status: code: 201 message: Created - url: https://centraluseuap.api.cognitive.microsoft.com//formrecognizer/v2.0-preview/custom/models + url: https://centraluseuap.api.cognitive.microsoft.com//formrecognizer/v2.0/custom/models - request: body: null headers: User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/14da02b2-9c8b-4bea-b722-6854564fabb2?includeKeys=true + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/af3127d7-1eaa-4c34-906a-77062b72e854?includeKeys=true response: body: - string: '{"modelInfo": {"modelId": "14da02b2-9c8b-4bea-b722-6854564fabb2", "status": - "ready", "createdDateTime": "2020-06-11T15:42:27Z", "lastUpdatedDateTime": - "2020-06-11T15:42:30Z"}, "trainResult": {"averageModelAccuracy": 0.973, "trainingDocuments": + string: '{"modelInfo": {"modelId": "af3127d7-1eaa-4c34-906a-77062b72e854", "status": + "ready", "createdDateTime": "2020-07-10T18:51:00Z", "lastUpdatedDateTime": + "2020-07-10T18:51:03Z"}, "trainResult": {"averageModelAccuracy": 0.973, "trainingDocuments": [{"documentName": "Form_1.jpg", "pages": 1, "status": "succeeded"}, {"documentName": "Form_2.jpg", "pages": 1, "status": "succeeded"}, {"documentName": "Form_3.jpg", "pages": 1, "status": "succeeded"}, {"documentName": "Form_4.jpg", "pages": @@ -55,17 +53,17 @@ interactions: "VendorName", "accuracy": 1.0}, {"fieldName": "Website", "accuracy": 1.0}], "errors": []}}' headers: - apim-request-id: 2f4ecbd8-1b09-4ec5-8106-69635d3d3c13 + apim-request-id: f78cbe43-0f29-40cb-8216-3efcba047eaa content-type: application/json; charset=utf-8 - date: Thu, 11 Jun 2020 15:42:31 GMT + date: Fri, 10 Jul 2020 18:51:05 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '49' + x-envoy-upstream-service-time: '51' status: code: 200 message: OK - url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/14da02b2-9c8b-4bea-b722-6854564fabb2?includeKeys=true + url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/af3127d7-1eaa-4c34-906a-77062b72e854?includeKeys=true - request: body: 'b''{"source": "https://raw.githubusercontent.com/Azure/azure-sdk-for-python/master/sdk/formrecognizer/azure-ai-formrecognizer/tests/sample_forms/forms/Form_1.jpg"}''' headers: @@ -74,61 +72,35 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) method: POST - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/14da02b2-9c8b-4bea-b722-6854564fabb2/analyze?includeTextDetails=false + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/af3127d7-1eaa-4c34-906a-77062b72e854/analyze?includeTextDetails=false response: body: string: '' headers: - apim-request-id: 92e4dd12-6c87-48fa-bad4-57ce2574498f + apim-request-id: f9c6c5f7-8ee9-4234-845e-e2315d5c59ee content-length: '0' - date: Thu, 11 Jun 2020 15:42:32 GMT - operation-location: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/14da02b2-9c8b-4bea-b722-6854564fabb2/analyzeresults/015cea39-8902-4bf8-bef2-8c28287c5214 + date: Fri, 10 Jul 2020 18:51:05 GMT + operation-location: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/af3127d7-1eaa-4c34-906a-77062b72e854/analyzeresults/5d221b3b-b1af-4db2-9db4-a986ead795d0 strict-transport-security: max-age=31536000; includeSubDomains; preload x-content-type-options: nosniff - x-envoy-upstream-service-time: '100' + x-envoy-upstream-service-time: '53' status: code: 202 message: Accepted - url: https://centraluseuap.api.cognitive.microsoft.com//formrecognizer/v2.0-preview/custom/models/14da02b2-9c8b-4bea-b722-6854564fabb2/analyze?includeTextDetails=false + url: https://centraluseuap.api.cognitive.microsoft.com//formrecognizer/v2.0/custom/models/af3127d7-1eaa-4c34-906a-77062b72e854/analyze?includeTextDetails=false - request: body: null headers: User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/14da02b2-9c8b-4bea-b722-6854564fabb2/analyzeresults/015cea39-8902-4bf8-bef2-8c28287c5214 + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/af3127d7-1eaa-4c34-906a-77062b72e854/analyzeresults/5d221b3b-b1af-4db2-9db4-a986ead795d0 response: body: - string: '{"status": "notStarted", "createdDateTime": "2020-06-11T15:42:32Z", - "lastUpdatedDateTime": "2020-06-11T15:42:36Z"}' - headers: - apim-request-id: be4063e7-b5df-46a5-b69b-b77eaa355dca - content-length: '109' - content-type: application/json; charset=utf-8 - date: Thu, 11 Jun 2020 15:42:37 GMT - strict-transport-security: max-age=31536000; includeSubDomains; preload - x-content-type-options: nosniff - x-envoy-upstream-service-time: '51' - status: - code: 200 - message: OK - url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/14da02b2-9c8b-4bea-b722-6854564fabb2/analyzeresults/015cea39-8902-4bf8-bef2-8c28287c5214 -- request: - body: null - headers: - User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) - method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/14da02b2-9c8b-4bea-b722-6854564fabb2/analyzeresults/015cea39-8902-4bf8-bef2-8c28287c5214 - response: - body: - string: '{"status": "succeeded", "createdDateTime": "2020-06-11T15:42:32Z", - "lastUpdatedDateTime": "2020-06-11T15:42:39Z", "analyzeResult": {"version": + string: '{"status": "succeeded", "createdDateTime": "2020-07-10T18:51:06Z", + "lastUpdatedDateTime": "2020-07-10T18:51:09Z", "analyzeResult": {"version": "2.0.0", "readResults": [{"page": 1, "language": "en", "angle": 0, "width": 1700, "height": 2200, "unit": "pixel"}], "pageResults": [{"page": 1, "tables": [{"rows": 4, "columns": 3, "cells": [{"rowIndex": 1, "columnIndex": 1, "text": @@ -173,55 +145,55 @@ interactions: 2, "text": "5,00", "boundingBox": [1072, 1216, 1309, 1216, 1309, 1260, 1072, 1260]}, {"rowIndex": 4, "columnIndex": 3, "text": "100.00", "boundingBox": [1309, 1216, 1544, 1216, 1544, 1260, 1309, 1260]}]}]}], "documentResults": - [{"docType": "custom:form", "pageRange": [1, 1], "fields": {"Total": {"type": - "string", "valueString": "$144.00", "text": "$144.00", "page": 1, "boundingBox": - [1429.0, 1669.0, 1530.0, 1669.0, 1530.0, 1697.0, 1429.0, 1697.0], "confidence": - 1.0}, "PhoneNumber": {"type": "string", "valueString": "555-348-6512", "text": - "555-348-6512", "page": 1, "boundingBox": [367.0, 351.0, 529.0, 351.0, 529.0, - 378.0, 367.0, 378.0], "confidence": 1.0}, "Subtotal": {"type": "string", "valueString": + [{"docType": "custom:form", "pageRange": [1, 1], "fields": {"DatedAs": {"type": + "string", "valueString": "12/20/2020", "text": "12/20/2020", "page": 1, "boundingBox": + [1168.0, 420.0, 1317.0, 420.0, 1317.0, 450.0, 1168.0, 450.0], "confidence": + 1.0}, "Total": {"type": "string", "valueString": "$144.00", "text": "$144.00", + "page": 1, "boundingBox": [1429.0, 1669.0, 1530.0, 1669.0, 1530.0, 1697.0, + 1429.0, 1697.0], "confidence": 1.0}, "Website": {"type": "string", "valueString": + "www.herolimited.com", "text": "www.herolimited.com", "page": 1, "boundingBox": + [274.0, 393.0, 529.0, 393.0, 529.0, 419.0, 274.0, 419.0], "confidence": 1.0}, + "PurchaseOrderNumber": {"type": "string", "valueString": "948284", "text": + "948284", "page": 1, "boundingBox": [1282.0, 461.0, 1377.0, 461.0, 1377.0, + 489.0, 1282.0, 489.0], "confidence": 1.0}, "Tax": {"type": "string", "valueString": + "$4.00", "text": "$4.00", "page": 1, "boundingBox": [1461.0, 1614.0, 1530.0, + 1614.0, 1530.0, 1642.0, 1461.0, 1642.0], "confidence": 1.0}, "VendorName": + {"type": "string", "valueString": "Hillary Swank", "text": "Hillary Swank", + "page": 1, "boundingBox": [351.0, 609.0, 518.0, 609.0, 518.0, 641.0, 351.0, + 641.0], "confidence": 1.0}, "Quantity": {"type": "number", "text": "20", "page": + 1, "boundingBox": [861.0, 1089.0, 895.0, 1089.0, 895.0, 1120.0, 861.0, 1120.0], + "confidence": 1.0}, "Signature": {"type": "string", "valueString": "Bernie + Sanders", "text": "Bernie Sanders", "page": 1, "boundingBox": [482.0, 1670.0, + 764.0, 1670.0, 764.0, 1709.0, 482.0, 1709.0], "confidence": 1.0}, "CompanyName": + {"type": "string", "valueString": "Higgly Wiggly Books", "text": "Higgly Wiggly + Books", "page": 1, "boundingBox": [378.0, 646.0, 629.0, 646.0, 629.0, 682.0, + 378.0, 682.0], "confidence": 1.0}, "Subtotal": {"type": "string", "valueString": "$140.00", "text": "$140.00", "page": 1, "boundingBox": [1429.0, 1570.0, 1530.0, - 1570.0, 1530.0, 1599.0, 1429.0, 1599.0], "confidence": 1.0}, "Website": {"type": - "string", "valueString": "www.herolimited.com", "text": "www.herolimited.com", - "page": 1, "boundingBox": [274.0, 393.0, 529.0, 393.0, 529.0, 419.0, 274.0, - 419.0], "confidence": 1.0}, "Tax": {"type": "string", "valueString": "$4.00", - "text": "$4.00", "page": 1, "boundingBox": [1461.0, 1614.0, 1530.0, 1614.0, - 1530.0, 1642.0, 1461.0, 1642.0], "confidence": 1.0}, "VendorName": {"type": - "string", "valueString": "Hillary Swank", "text": "Hillary Swank", "page": - 1, "boundingBox": [351.0, 609.0, 518.0, 609.0, 518.0, 641.0, 351.0, 641.0], - "confidence": 1.0}, "DatedAs": {"type": "string", "valueString": "12/20/2020", - "text": "12/20/2020", "page": 1, "boundingBox": [1168.0, 420.0, 1317.0, 420.0, - 1317.0, 450.0, 1168.0, 450.0], "confidence": 1.0}, "PurchaseOrderNumber": - {"type": "string", "valueString": "948284", "text": "948284", "page": 1, "boundingBox": - [1282.0, 461.0, 1377.0, 461.0, 1377.0, 489.0, 1282.0, 489.0], "confidence": - 1.0}, "Merchant": {"type": "string", "valueString": "Hero Limited", "text": - "Hero Limited", "page": 1, "boundingBox": [621.0, 202.0, 1075.0, 202.0, 1075.0, - 266.0, 621.0, 266.0], "confidence": 1.0}, "CompanyName": {"type": "string", - "valueString": "Higgly Wiggly Books", "text": "Higgly Wiggly Books", "page": - 1, "boundingBox": [378.0, 646.0, 629.0, 646.0, 629.0, 682.0, 378.0, 682.0], - "confidence": 1.0}, "CompanyAddress": {"type": "string", "valueString": "938 - NE Burner Road Boulder City, CO 92848", "text": "938 NE Burner Road Boulder + 1570.0, 1530.0, 1599.0, 1429.0, 1599.0], "confidence": 1.0}, "Email": {"type": + "string", "valueString": "accounts@herolimited.com", "text": "accounts@herolimited.com", + "page": 1, "boundingBox": [166.0, 480.0, 475.0, 480.0, 475.0, 503.0, 166.0, + 503.0], "confidence": 1.0}, "Merchant": {"type": "string", "valueString": + "Hero Limited", "text": "Hero Limited", "page": 1, "boundingBox": [621.0, + 202.0, 1075.0, 202.0, 1075.0, 266.0, 621.0, 266.0], "confidence": 1.0}, "CompanyPhoneNumber": + {"type": "string", "valueString": "938-294-2949", "text": "938-294-2949", + "page": 1, "boundingBox": [713.0, 722.0, 884.0, 722.0, 884.0, 750.0, 713.0, + 750.0], "confidence": 1.0}, "CompanyAddress": {"type": "string", "valueString": + "938 NE Burner Road Boulder City, CO 92848", "text": "938 NE Burner Road Boulder City, CO 92848", "page": 1, "boundingBox": [277.0, 685.0, 568.0, 685.0, 568.0, - 754.0, 277.0, 754.0], "confidence": 1.0}, "Email": {"type": "string", "valueString": - "accounts@herolimited.com", "text": "accounts@herolimited.com", "page": 1, - "boundingBox": [166.0, 480.0, 475.0, 480.0, 475.0, 503.0, 166.0, 503.0], "confidence": - 1.0}, "Quantity": {"type": "number", "text": "20", "page": 1, "boundingBox": - [861.0, 1089.0, 895.0, 1089.0, 895.0, 1120.0, 861.0, 1120.0], "confidence": - 1.0}, "CompanyPhoneNumber": {"type": "string", "valueString": "938-294-2949", - "text": "938-294-2949", "page": 1, "boundingBox": [713.0, 722.0, 884.0, 722.0, - 884.0, 750.0, 713.0, 750.0], "confidence": 1.0}, "Signature": {"type": "string", - "valueString": "Bernie Sanders", "text": "Bernie Sanders", "page": 1, "boundingBox": - [482.0, 1670.0, 764.0, 1670.0, 764.0, 1709.0, 482.0, 1709.0], "confidence": - 1.0}}}], "errors": []}}' + 754.0, 277.0, 754.0], "confidence": 1.0}, "PhoneNumber": {"type": "string", + "valueString": "555-348-6512", "text": "555-348-6512", "page": 1, "boundingBox": + [367.0, 351.0, 529.0, 351.0, 529.0, 378.0, 367.0, 378.0], "confidence": 1.0}}}], + "errors": []}}' headers: - apim-request-id: 5cc4cbda-edb4-4255-b96a-a3b15ab23527 + apim-request-id: b32bcd55-38f6-481a-a6b0-65c17397871c content-length: '5839' content-type: application/json; charset=utf-8 - date: Thu, 11 Jun 2020 15:42:43 GMT + date: Fri, 10 Jul 2020 18:51:10 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload x-content-type-options: nosniff - x-envoy-upstream-service-time: '979' + x-envoy-upstream-service-time: '20' status: code: 200 message: OK - url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/14da02b2-9c8b-4bea-b722-6854564fabb2/analyzeresults/015cea39-8902-4bf8-bef2-8c28287c5214 + url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/af3127d7-1eaa-4c34-906a-77062b72e854/analyzeresults/5d221b3b-b1af-4db2-9db4-a986ead795d0 version: 1 diff --git a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_custom_forms_from_url_async.test_form_labeled_transform.yaml b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_custom_forms_from_url_async.test_form_labeled_transform.yaml index fefd4b1ae35d..f24df9becbe7 100644 --- a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_custom_forms_from_url_async.test_form_labeled_transform.yaml +++ b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_custom_forms_from_url_async.test_form_labeled_transform.yaml @@ -8,38 +8,36 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) method: POST - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models response: body: string: '' headers: - apim-request-id: 93841999-4455-4a9f-af2c-57affd733d19 + apim-request-id: 940d01ae-5467-48c7-8ae4-d61f47a6422f content-length: '0' - date: Thu, 11 Jun 2020 15:42:43 GMT - location: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/dcbcf915-011f-4b72-b556-1dcd40a9b64d + date: Fri, 10 Jul 2020 18:51:11 GMT + location: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/97718f69-ce25-4d95-9178-4799ff66db2c strict-transport-security: max-age=31536000; includeSubDomains; preload x-content-type-options: nosniff - x-envoy-upstream-service-time: '68' + x-envoy-upstream-service-time: '38' status: code: 201 message: Created - url: https://centraluseuap.api.cognitive.microsoft.com//formrecognizer/v2.0-preview/custom/models + url: https://centraluseuap.api.cognitive.microsoft.com//formrecognizer/v2.0/custom/models - request: body: null headers: User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/dcbcf915-011f-4b72-b556-1dcd40a9b64d?includeKeys=true + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/97718f69-ce25-4d95-9178-4799ff66db2c?includeKeys=true response: body: - string: '{"modelInfo": {"modelId": "dcbcf915-011f-4b72-b556-1dcd40a9b64d", "status": - "ready", "createdDateTime": "2020-06-11T15:42:44Z", "lastUpdatedDateTime": - "2020-06-11T15:42:47Z"}, "trainResult": {"averageModelAccuracy": 0.973, "trainingDocuments": + string: '{"modelInfo": {"modelId": "97718f69-ce25-4d95-9178-4799ff66db2c", "status": + "ready", "createdDateTime": "2020-07-10T18:51:11Z", "lastUpdatedDateTime": + "2020-07-10T18:51:14Z"}, "trainResult": {"averageModelAccuracy": 0.973, "trainingDocuments": [{"documentName": "Form_1.jpg", "pages": 1, "status": "succeeded"}, {"documentName": "Form_2.jpg", "pages": 1, "status": "succeeded"}, {"documentName": "Form_3.jpg", "pages": 1, "status": "succeeded"}, {"documentName": "Form_4.jpg", "pages": @@ -55,17 +53,17 @@ interactions: "VendorName", "accuracy": 1.0}, {"fieldName": "Website", "accuracy": 1.0}], "errors": []}}' headers: - apim-request-id: de89124e-1398-48db-b3cf-cd0522469a1e + apim-request-id: bddbe132-0286-41d6-8c29-0cb71cfdb26f content-type: application/json; charset=utf-8 - date: Thu, 11 Jun 2020 15:42:49 GMT + date: Fri, 10 Jul 2020 18:51:16 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '17' + x-envoy-upstream-service-time: '55' status: code: 200 message: OK - url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/dcbcf915-011f-4b72-b556-1dcd40a9b64d?includeKeys=true + url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/97718f69-ce25-4d95-9178-4799ff66db2c?includeKeys=true - request: body: 'b''{"source": "https://raw.githubusercontent.com/Azure/azure-sdk-for-python/master/sdk/formrecognizer/azure-ai-formrecognizer/tests/sample_forms/forms/Form_1.jpg"}''' headers: @@ -74,61 +72,35 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) method: POST - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/dcbcf915-011f-4b72-b556-1dcd40a9b64d/analyze?includeTextDetails=true + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/97718f69-ce25-4d95-9178-4799ff66db2c/analyze?includeTextDetails=true response: body: string: '' headers: - apim-request-id: 5b18b7d7-c0ac-4b40-a249-4fc85cf72ad1 + apim-request-id: 6da52bde-3f45-4c83-8254-87c8e19d10fc content-length: '0' - date: Thu, 11 Jun 2020 15:42:49 GMT - operation-location: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/dcbcf915-011f-4b72-b556-1dcd40a9b64d/analyzeresults/01e2147d-bed5-4612-8a2a-caf9e7a74df4 + date: Fri, 10 Jul 2020 18:51:16 GMT + operation-location: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/97718f69-ce25-4d95-9178-4799ff66db2c/analyzeresults/ac887997-9d57-4384-a850-797914d02db2 strict-transport-security: max-age=31536000; includeSubDomains; preload x-content-type-options: nosniff - x-envoy-upstream-service-time: '84' + x-envoy-upstream-service-time: '86' status: code: 202 message: Accepted - url: https://centraluseuap.api.cognitive.microsoft.com//formrecognizer/v2.0-preview/custom/models/dcbcf915-011f-4b72-b556-1dcd40a9b64d/analyze?includeTextDetails=true + url: https://centraluseuap.api.cognitive.microsoft.com//formrecognizer/v2.0/custom/models/97718f69-ce25-4d95-9178-4799ff66db2c/analyze?includeTextDetails=true - request: body: null headers: User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/dcbcf915-011f-4b72-b556-1dcd40a9b64d/analyzeresults/01e2147d-bed5-4612-8a2a-caf9e7a74df4 + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/97718f69-ce25-4d95-9178-4799ff66db2c/analyzeresults/ac887997-9d57-4384-a850-797914d02db2 response: body: - string: '{"status": "notStarted", "createdDateTime": "2020-06-11T15:42:50Z", - "lastUpdatedDateTime": "2020-06-11T15:42:50Z"}' - headers: - apim-request-id: 57821bb2-4b0b-4aac-9b72-e7c3cd09b646 - content-length: '109' - content-type: application/json; charset=utf-8 - date: Thu, 11 Jun 2020 15:42:54 GMT - strict-transport-security: max-age=31536000; includeSubDomains; preload - x-content-type-options: nosniff - x-envoy-upstream-service-time: '48' - status: - code: 200 - message: OK - url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/dcbcf915-011f-4b72-b556-1dcd40a9b64d/analyzeresults/01e2147d-bed5-4612-8a2a-caf9e7a74df4 -- request: - body: null - headers: - User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) - method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/dcbcf915-011f-4b72-b556-1dcd40a9b64d/analyzeresults/01e2147d-bed5-4612-8a2a-caf9e7a74df4 - response: - body: - string: '{"status": "succeeded", "createdDateTime": "2020-06-11T15:42:50Z", - "lastUpdatedDateTime": "2020-06-11T15:42:59Z", "analyzeResult": {"version": + string: '{"status": "succeeded", "createdDateTime": "2020-07-10T18:51:16Z", + "lastUpdatedDateTime": "2020-07-10T18:51:21Z", "analyzeResult": {"version": "2.0.0", "readResults": [{"page": 1, "language": "en", "angle": 0, "width": 1700, "height": 2200, "unit": "pixel", "lines": [{"boundingBox": [137, 140, 351, 140, 351, 167, 137, 166], "text": "Purchase Order", "words": [{"boundingBox": @@ -433,69 +405,71 @@ interactions: {"rowIndex": 4, "columnIndex": 3, "text": "100.00", "boundingBox": [1309, 1216, 1544, 1216, 1544, 1260, 1309, 1260], "elements": ["#/readResults/0/lines/40/words/0"]}]}]}], "documentResults": [{"docType": "custom:form", "pageRange": [1, 1], "fields": - {"Quantity": {"type": "number", "text": "20", "page": 1, "boundingBox": [861.0, - 1089.0, 895.0, 1089.0, 895.0, 1120.0, 861.0, 1120.0], "confidence": 1.0, "elements": - ["#/analyzeResult/readResults/0/lines/26/words/0"]}, "CompanyAddress": {"type": - "string", "valueString": "938 NE Burner Road Boulder City, CO 92848", "text": - "938 NE Burner Road Boulder City, CO 92848", "page": 1, "boundingBox": [277.0, - 685.0, 568.0, 685.0, 568.0, 754.0, 277.0, 754.0], "confidence": 1.0, "elements": - ["#/analyzeResult/readResults/0/lines/12/words/1", "#/analyzeResult/readResults/0/lines/12/words/2", - "#/analyzeResult/readResults/0/lines/12/words/3", "#/analyzeResult/readResults/0/lines/12/words/4", - "#/analyzeResult/readResults/0/lines/13/words/0", "#/analyzeResult/readResults/0/lines/13/words/1", - "#/analyzeResult/readResults/0/lines/13/words/2", "#/analyzeResult/readResults/0/lines/13/words/3"]}, - "Subtotal": {"type": "string", "valueString": "$140.00", "text": "$140.00", - "page": 1, "boundingBox": [1429.0, 1570.0, 1530.0, 1570.0, 1530.0, 1599.0, - 1429.0, 1599.0], "confidence": 1.0, "elements": ["#/analyzeResult/readResults/0/lines/42/words/0"]}, - "Email": {"type": "string", "valueString": "accounts@herolimited.com", "text": - "accounts@herolimited.com", "page": 1, "boundingBox": [166.0, 480.0, 475.0, - 480.0, 475.0, 503.0, 166.0, 503.0], "confidence": 1.0, "elements": ["#/analyzeResult/readResults/0/lines/7/words/0"]}, - "DatedAs": {"type": "string", "valueString": "12/20/2020", "text": "12/20/2020", - "page": 1, "boundingBox": [1168.0, 420.0, 1317.0, 420.0, 1317.0, 450.0, 1168.0, - 450.0], "confidence": 1.0, "elements": ["#/analyzeResult/readResults/0/lines/6/words/2"]}, - "Website": {"type": "string", "valueString": "www.herolimited.com", "text": - "www.herolimited.com", "page": 1, "boundingBox": [274.0, 393.0, 529.0, 393.0, - 529.0, 419.0, 274.0, 419.0], "confidence": 1.0, "elements": ["#/analyzeResult/readResults/0/lines/4/words/1"]}, - "PurchaseOrderNumber": {"type": "string", "valueString": "948284", "text": - "948284", "page": 1, "boundingBox": [1282.0, 461.0, 1377.0, 461.0, 1377.0, - 489.0, 1282.0, 489.0], "confidence": 1.0, "elements": ["#/analyzeResult/readResults/0/lines/8/words/3"]}, - "PhoneNumber": {"type": "string", "valueString": "555-348-6512", "text": "555-348-6512", - "page": 1, "boundingBox": [367.0, 351.0, 529.0, 351.0, 529.0, 378.0, 367.0, - 378.0], "confidence": 1.0, "elements": ["#/analyzeResult/readResults/0/lines/2/words/2"]}, - "Signature": {"type": "string", "valueString": "Bernie Sanders", "text": "Bernie - Sanders", "page": 1, "boundingBox": [482.0, 1670.0, 764.0, 1670.0, 764.0, - 1709.0, 482.0, 1709.0], "confidence": 1.0, "elements": ["#/analyzeResult/readResults/0/lines/45/words/0", - "#/analyzeResult/readResults/0/lines/45/words/1"]}, "CompanyName": {"type": - "string", "valueString": "Higgly Wiggly Books", "text": "Higgly Wiggly Books", - "page": 1, "boundingBox": [378.0, 646.0, 629.0, 646.0, 629.0, 682.0, 378.0, - 682.0], "confidence": 1.0, "elements": ["#/analyzeResult/readResults/0/lines/11/words/2", + {"CompanyName": {"type": "string", "valueString": "Higgly Wiggly Books", "text": + "Higgly Wiggly Books", "page": 1, "boundingBox": [378.0, 646.0, 629.0, 646.0, + 629.0, 682.0, 378.0, 682.0], "confidence": 1.0, "elements": ["#/analyzeResult/readResults/0/lines/11/words/2", "#/analyzeResult/readResults/0/lines/11/words/3", "#/analyzeResult/readResults/0/lines/11/words/4"]}, - "CompanyPhoneNumber": {"type": "string", "valueString": "938-294-2949", "text": - "938-294-2949", "page": 1, "boundingBox": [713.0, 722.0, 884.0, 722.0, 884.0, - 750.0, 713.0, 750.0], "confidence": 1.0, "elements": ["#/analyzeResult/readResults/0/lines/14/words/1"]}, + "CompanyAddress": {"type": "string", "valueString": "938 NE Burner Road Boulder + City, CO 92848", "text": "938 NE Burner Road Boulder City, CO 92848", "page": + 1, "boundingBox": [277.0, 685.0, 568.0, 685.0, 568.0, 754.0, 277.0, 754.0], + "confidence": 1.0, "elements": ["#/analyzeResult/readResults/0/lines/12/words/1", + "#/analyzeResult/readResults/0/lines/12/words/2", "#/analyzeResult/readResults/0/lines/12/words/3", + "#/analyzeResult/readResults/0/lines/12/words/4", "#/analyzeResult/readResults/0/lines/13/words/0", + "#/analyzeResult/readResults/0/lines/13/words/1", "#/analyzeResult/readResults/0/lines/13/words/2", + "#/analyzeResult/readResults/0/lines/13/words/3"]}, "CompanyPhoneNumber": + {"type": "string", "valueString": "938-294-2949", "text": "938-294-2949", + "page": 1, "boundingBox": [713.0, 722.0, 884.0, 722.0, 884.0, 750.0, 713.0, + 750.0], "confidence": 1.0, "elements": ["#/analyzeResult/readResults/0/lines/14/words/1"]}, + "VendorName": {"type": "string", "valueString": "Hillary Swank", "text": "Hillary + Swank", "page": 1, "boundingBox": [351.0, 609.0, 518.0, 609.0, 518.0, 641.0, + 351.0, 641.0], "confidence": 1.0, "elements": ["#/analyzeResult/readResults/0/lines/10/words/2", + "#/analyzeResult/readResults/0/lines/10/words/3"]}, "Signature": {"type": + "string", "valueString": "Bernie Sanders", "text": "Bernie Sanders", "page": + 1, "boundingBox": [482.0, 1670.0, 764.0, 1670.0, 764.0, 1709.0, 482.0, 1709.0], + "confidence": 1.0, "elements": ["#/analyzeResult/readResults/0/lines/45/words/0", + "#/analyzeResult/readResults/0/lines/45/words/1"]}, "DatedAs": {"type": "string", + "valueString": "12/20/2020", "text": "12/20/2020", "page": 1, "boundingBox": + [1168.0, 420.0, 1317.0, 420.0, 1317.0, 450.0, 1168.0, 450.0], "confidence": + 1.0, "elements": ["#/analyzeResult/readResults/0/lines/6/words/2"]}, "Email": + {"type": "string", "valueString": "accounts@herolimited.com", "text": "accounts@herolimited.com", + "page": 1, "boundingBox": [166.0, 480.0, 475.0, 480.0, 475.0, 503.0, 166.0, + 503.0], "confidence": 1.0, "elements": ["#/analyzeResult/readResults/0/lines/7/words/0"]}, + "Tax": {"type": "string", "valueString": "$4.00", "text": "$4.00", "page": + 1, "boundingBox": [1461.0, 1614.0, 1530.0, 1614.0, 1530.0, 1642.0, 1461.0, + 1642.0], "confidence": 1.0, "elements": ["#/analyzeResult/readResults/0/lines/44/words/0"]}, + "Quantity": {"type": "number", "text": "20", "page": 1, "boundingBox": [861.0, + 1089.0, 895.0, 1089.0, 895.0, 1120.0, 861.0, 1120.0], "confidence": 1.0, "elements": + ["#/analyzeResult/readResults/0/lines/26/words/0"]}, "Website": {"type": "string", + "valueString": "www.herolimited.com", "text": "www.herolimited.com", "page": + 1, "boundingBox": [274.0, 393.0, 529.0, 393.0, 529.0, 419.0, 274.0, 419.0], + "confidence": 1.0, "elements": ["#/analyzeResult/readResults/0/lines/4/words/1"]}, "Merchant": {"type": "string", "valueString": "Hero Limited", "text": "Hero Limited", "page": 1, "boundingBox": [621.0, 202.0, 1075.0, 202.0, 1075.0, 266.0, 621.0, 266.0], "confidence": 1.0, "elements": ["#/analyzeResult/readResults/0/lines/1/words/0", - "#/analyzeResult/readResults/0/lines/1/words/1"]}, "Tax": {"type": "string", - "valueString": "$4.00", "text": "$4.00", "page": 1, "boundingBox": [1461.0, - 1614.0, 1530.0, 1614.0, 1530.0, 1642.0, 1461.0, 1642.0], "confidence": 1.0, - "elements": ["#/analyzeResult/readResults/0/lines/44/words/0"]}, "Total": + "#/analyzeResult/readResults/0/lines/1/words/1"]}, "Subtotal": {"type": "string", + "valueString": "$140.00", "text": "$140.00", "page": 1, "boundingBox": [1429.0, + 1570.0, 1530.0, 1570.0, 1530.0, 1599.0, 1429.0, 1599.0], "confidence": 1.0, + "elements": ["#/analyzeResult/readResults/0/lines/42/words/0"]}, "Total": {"type": "string", "valueString": "$144.00", "text": "$144.00", "page": 1, "boundingBox": [1429.0, 1669.0, 1530.0, 1669.0, 1530.0, 1697.0, 1429.0, 1697.0], "confidence": 1.0, "elements": ["#/analyzeResult/readResults/0/lines/47/words/0"]}, - "VendorName": {"type": "string", "valueString": "Hillary Swank", "text": "Hillary - Swank", "page": 1, "boundingBox": [351.0, 609.0, 518.0, 609.0, 518.0, 641.0, - 351.0, 641.0], "confidence": 1.0, "elements": ["#/analyzeResult/readResults/0/lines/10/words/2", - "#/analyzeResult/readResults/0/lines/10/words/3"]}}}], "errors": []}}' + "PurchaseOrderNumber": {"type": "string", "valueString": "948284", "text": + "948284", "page": 1, "boundingBox": [1282.0, 461.0, 1377.0, 461.0, 1377.0, + 489.0, 1282.0, 489.0], "confidence": 1.0, "elements": ["#/analyzeResult/readResults/0/lines/8/words/3"]}, + "PhoneNumber": {"type": "string", "valueString": "555-348-6512", "text": "555-348-6512", + "page": 1, "boundingBox": [367.0, 351.0, 529.0, 351.0, 529.0, 378.0, 367.0, + 378.0], "confidence": 1.0, "elements": ["#/analyzeResult/readResults/0/lines/2/words/2"]}}}], + "errors": []}}' headers: - apim-request-id: 66f3fde5-9a4f-4b24-893a-1cd21400465a + apim-request-id: f62f389c-30ef-4341-93ef-bd33e7372995 content-length: '25282' content-type: application/json; charset=utf-8 - date: Thu, 11 Jun 2020 15:42:59 GMT + date: Fri, 10 Jul 2020 18:51:22 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload x-content-type-options: nosniff - x-envoy-upstream-service-time: '63' + x-envoy-upstream-service-time: '719' status: code: 200 message: OK - url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/dcbcf915-011f-4b72-b556-1dcd40a9b64d/analyzeresults/01e2147d-bed5-4612-8a2a-caf9e7a74df4 + url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/97718f69-ce25-4d95-9178-4799ff66db2c/analyzeresults/ac887997-9d57-4384-a850-797914d02db2 version: 1 diff --git a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_custom_forms_from_url_async.test_form_multipage_labeled.yaml b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_custom_forms_from_url_async.test_form_multipage_labeled.yaml index d863b31bdd1b..9bc838a7b303 100644 --- a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_custom_forms_from_url_async.test_form_multipage_labeled.yaml +++ b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_custom_forms_from_url_async.test_form_multipage_labeled.yaml @@ -8,88 +8,36 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) method: POST - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models response: body: string: '' headers: - apim-request-id: 8ca1fd70-0735-48c8-aeb1-026e3f37f645 + apim-request-id: e5b2c640-a25a-4614-bdf2-fd41344bda17 content-length: '0' - date: Thu, 11 Jun 2020 15:43:01 GMT - location: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/29111250-4c48-48f0-a854-fa30a5e19cd4 + date: Fri, 10 Jul 2020 18:51:24 GMT + location: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/7b2cb383-41d0-4b8c-b15d-be005d115a29 strict-transport-security: max-age=31536000; includeSubDomains; preload x-content-type-options: nosniff - x-envoy-upstream-service-time: '86' + x-envoy-upstream-service-time: '1691' status: code: 201 message: Created - url: https://centraluseuap.api.cognitive.microsoft.com//formrecognizer/v2.0-preview/custom/models + url: https://centraluseuap.api.cognitive.microsoft.com//formrecognizer/v2.0/custom/models - request: body: null headers: User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/29111250-4c48-48f0-a854-fa30a5e19cd4?includeKeys=true + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/7b2cb383-41d0-4b8c-b15d-be005d115a29?includeKeys=true response: body: - string: '{"modelInfo": {"modelId": "29111250-4c48-48f0-a854-fa30a5e19cd4", "status": - "creating", "createdDateTime": "2020-06-11T15:43:01Z", "lastUpdatedDateTime": - "2020-06-11T15:43:01Z"}}' - headers: - apim-request-id: 294d9bc2-b5e0-45f8-95cd-eef15b4f1ca4 - content-type: application/json; charset=utf-8 - date: Thu, 11 Jun 2020 15:43:05 GMT - strict-transport-security: max-age=31536000; includeSubDomains; preload - transfer-encoding: chunked - x-content-type-options: nosniff - x-envoy-upstream-service-time: '52' - status: - code: 200 - message: OK - url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/29111250-4c48-48f0-a854-fa30a5e19cd4?includeKeys=true -- request: - body: null - headers: - User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) - method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/29111250-4c48-48f0-a854-fa30a5e19cd4?includeKeys=true - response: - body: - string: '{"modelInfo": {"modelId": "29111250-4c48-48f0-a854-fa30a5e19cd4", "status": - "creating", "createdDateTime": "2020-06-11T15:43:01Z", "lastUpdatedDateTime": - "2020-06-11T15:43:01Z"}}' - headers: - apim-request-id: 2165cc1c-0a5a-4ba9-b4b0-abc97f0ba76b - content-type: application/json; charset=utf-8 - date: Thu, 11 Jun 2020 15:43:10 GMT - strict-transport-security: max-age=31536000; includeSubDomains; preload - transfer-encoding: chunked - x-content-type-options: nosniff - x-envoy-upstream-service-time: '20' - status: - code: 200 - message: OK - url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/29111250-4c48-48f0-a854-fa30a5e19cd4?includeKeys=true -- request: - body: null - headers: - User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) - method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/29111250-4c48-48f0-a854-fa30a5e19cd4?includeKeys=true - response: - body: - string: '{"modelInfo": {"modelId": "29111250-4c48-48f0-a854-fa30a5e19cd4", "status": - "ready", "createdDateTime": "2020-06-11T15:43:01Z", "lastUpdatedDateTime": - "2020-06-11T15:43:11Z"}, "trainResult": {"averageModelAccuracy": 0.889, "trainingDocuments": + string: '{"modelInfo": {"modelId": "7b2cb383-41d0-4b8c-b15d-be005d115a29", "status": + "ready", "createdDateTime": "2020-07-10T18:51:23Z", "lastUpdatedDateTime": + "2020-07-10T18:51:26Z"}, "trainResult": {"averageModelAccuracy": 0.889, "trainingDocuments": [{"documentName": "multipage_invoice1.pdf", "pages": 3, "status": "succeeded"}, {"documentName": "multipage_invoice2.pdf", "pages": 3, "status": "succeeded"}, {"documentName": "multipage_invoice3.pdf", "pages": 3, "status": "succeeded"}, @@ -107,17 +55,17 @@ interactions: 1.0}, {"fieldName": "Tip", "accuracy": 1.0}, {"fieldName": "Total", "accuracy": 1.0}, {"fieldName": "Total2", "accuracy": 1.0}], "errors": []}}' headers: - apim-request-id: b5692d9e-5b06-48df-bd96-e4d3b0b5730b + apim-request-id: 08e3c8c6-a1a4-4269-9ca7-56a1cdc03da3 content-type: application/json; charset=utf-8 - date: Thu, 11 Jun 2020 15:43:16 GMT + date: Fri, 10 Jul 2020 18:51:30 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '47' + x-envoy-upstream-service-time: '20' status: code: 200 message: OK - url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/29111250-4c48-48f0-a854-fa30a5e19cd4?includeKeys=true + url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/7b2cb383-41d0-4b8c-b15d-be005d115a29?includeKeys=true - request: body: 'b''b\''{"source": "blob_sas_url"}\''''' headers: @@ -126,37 +74,58 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) method: POST - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/29111250-4c48-48f0-a854-fa30a5e19cd4/analyze?includeTextDetails=false + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/7b2cb383-41d0-4b8c-b15d-be005d115a29/analyze?includeTextDetails=false response: body: string: '' headers: - apim-request-id: 4c4ad507-83e1-4ff5-8da1-0f38cc8a79f3 + apim-request-id: ddf94e04-832b-4db9-a64c-6500f5332be2 content-length: '0' - date: Thu, 11 Jun 2020 15:43:16 GMT - operation-location: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/29111250-4c48-48f0-a854-fa30a5e19cd4/analyzeresults/30b57968-0559-4abf-9999-136199750f3d + date: Fri, 10 Jul 2020 18:51:30 GMT + operation-location: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/7b2cb383-41d0-4b8c-b15d-be005d115a29/analyzeresults/5a355e0c-7440-4dd1-989f-c54d63e4e720 strict-transport-security: max-age=31536000; includeSubDomains; preload x-content-type-options: nosniff - x-envoy-upstream-service-time: '55' + x-envoy-upstream-service-time: '95' status: code: 202 message: Accepted - url: https://centraluseuap.api.cognitive.microsoft.com//formrecognizer/v2.0-preview/custom/models/29111250-4c48-48f0-a854-fa30a5e19cd4/analyze?includeTextDetails=false + url: https://centraluseuap.api.cognitive.microsoft.com//formrecognizer/v2.0/custom/models/7b2cb383-41d0-4b8c-b15d-be005d115a29/analyze?includeTextDetails=false +- request: + body: null + headers: + User-Agent: + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + method: GET + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/7b2cb383-41d0-4b8c-b15d-be005d115a29/analyzeresults/5a355e0c-7440-4dd1-989f-c54d63e4e720 + response: + body: + string: '{"status": "notStarted", "createdDateTime": "2020-07-10T18:51:30Z", + "lastUpdatedDateTime": "2020-07-10T18:51:34Z"}' + headers: + apim-request-id: 1e95988f-f9b1-4472-ab41-ed14ef1b6b64 + content-length: '109' + content-type: application/json; charset=utf-8 + date: Fri, 10 Jul 2020 18:51:35 GMT + strict-transport-security: max-age=31536000; includeSubDomains; preload + x-content-type-options: nosniff + x-envoy-upstream-service-time: '50' + status: + code: 200 + message: OK + url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/7b2cb383-41d0-4b8c-b15d-be005d115a29/analyzeresults/5a355e0c-7440-4dd1-989f-c54d63e4e720 - request: body: null headers: User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/29111250-4c48-48f0-a854-fa30a5e19cd4/analyzeresults/30b57968-0559-4abf-9999-136199750f3d + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/7b2cb383-41d0-4b8c-b15d-be005d115a29/analyzeresults/5a355e0c-7440-4dd1-989f-c54d63e4e720 response: body: - string: '{"status": "succeeded", "createdDateTime": "2020-06-11T15:43:16Z", - "lastUpdatedDateTime": "2020-06-11T15:43:21Z", "analyzeResult": {"version": + string: '{"status": "succeeded", "createdDateTime": "2020-07-10T18:51:30Z", + "lastUpdatedDateTime": "2020-07-10T18:51:38Z", "analyzeResult": {"version": "2.0.0", "readResults": [{"page": 1, "language": "en", "angle": 0, "width": 8.5, "height": 11, "unit": "inch"}, {"page": 2, "language": "en", "angle": 0, "width": 8.4967, "height": 10.9967, "unit": "inch"}, {"page": 3, "language": @@ -244,63 +213,63 @@ interactions: 4.4181, 5.3353, 4.6281, 3.1681, 4.6281]}, {"rowIndex": 7, "columnIndex": 2, "text": "220.00", "boundingBox": [5.3353, 4.4181, 7.4997, 4.4181, 7.4997, 4.6281, 5.3353, 4.6281]}]}]}], "documentResults": [{"docType": "custom:form", - "pageRange": [1, 3], "fields": {"Merchant": {"type": "string", "valueString": - "A", "text": "A", "page": 1, "boundingBox": [1.67, 1.125, 1.7750000000000001, - 1.125, 1.7750000000000001, 1.245, 1.67, 1.245], "confidence": 1.0}, "Customer2": - {"type": "string", "valueString": "Frodo Baggins", "text": "Frodo Baggins", - "page": 3, "boundingBox": [6.015000000000001, 1.45, 6.95, 1.45, 6.95, 1.595, - 6.015000000000001, 1.595], "confidence": 1.0}, "Signature": {"type": "string", - "valueString": "Bilbo Baggins", "text": "Bilbo Baggins", "page": 1, "boundingBox": - [2.05, 6.655, 3.04, 6.655, 3.04, 6.8, 2.05, 6.8], "confidence": 1.0}, "Total": - {"type": "string", "valueString": "430.00", "text": "430.00", "page": 1, "boundingBox": - [5.94, 5.565, 6.4, 5.565, 6.4, 5.675, 5.94, 5.675], "confidence": 1.0}, "MerchantPhoneNumber": - {"type": "string", "valueString": "555-555-5555", "text": "555-555-5555", - "page": 1, "boundingBox": [0.885, 2.29, 1.81, 2.29, 1.81, 2.395, 0.885, 2.395], - "confidence": 1.0}, "Tax": {"type": "string", "valueString": "30.00", "text": - "30.00", "page": 1, "boundingBox": [5.835, 5.125, 6.2, 5.125, 6.2, 5.235, - 5.835, 5.235], "confidence": 1.0}, "FirstItem": {"type": "string", "valueString": - "A", "text": "A", "page": 1, "boundingBox": [1.085, 3.21, 1.175, 3.21, 1.175, - 3.3200000000000003, 1.085, 3.3200000000000003], "confidence": 1.0}, "Total2": - {"type": "string", "valueString": "4300.00", "text": "4300.00", "page": 3, - "boundingBox": [5.94, 5.565, 6.48, 5.565, 6.48, 5.675, 5.94, 5.675], "confidence": - 1.0}, "MerchantAddress": {"type": "string", "valueString": "567 Main St. Redmond, - WA", "text": "567 Main St. Redmond, WA", "page": 1, "boundingBox": [0.885, - 1.845, 1.855, 1.845, 1.855, 2.2, 0.885, 2.2], "confidence": 1.0}, "FirstPrice": - {"type": "string", "valueString": "10.99", "text": "10.99", "page": 1, "boundingBox": - [5.425, 3.21, 5.78, 3.21, 5.78, 3.3200000000000003, 5.425, 3.3200000000000003], - "confidence": 1.0}, "CustomerName": {"type": "string", "valueString": "Bilbo - Baggins", "text": "Bilbo Baggins", "page": 1, "boundingBox": [6.015000000000001, - 1.45, 6.8950000000000005, 1.45, 6.8950000000000005, 1.595, 6.015000000000001, - 1.595], "confidence": 1.0}, "CustomerAddress": {"type": "string", "valueString": - "123 Hobbit Lane Redmond, WA", "text": "123 Hobbit Lane Redmond, WA", "page": - 1, "boundingBox": [6.015000000000001, 1.67, 7.1000000000000005, 1.67, 7.1000000000000005, - 2.0300000000000002, 6.015000000000001, 2.0300000000000002], "confidence": - 1.0}, "Merchant2": {"type": "string", "valueString": "Company", "text": "Company", - "page": 1, "boundingBox": [0.885, 1.125, 1.62, 1.125, 1.62, 1.28, 0.885, 1.28], - "confidence": 1.0}, "Tip": {"type": "string", "valueString": "100.00", "text": - "100.00", "page": 1, "boundingBox": [5.8100000000000005, 5.345, 6.26, 5.345, - 6.26, 5.455, 5.8100000000000005, 5.455], "confidence": 1.0}, "Subtotal": {"type": - "string", "valueString": "300.00", "text": "300.00", "page": 1, "boundingBox": - [6.18, 4.905, 6.63, 4.905, 6.63, 5.015, 6.18, 5.015], "confidence": 1.0}, + "pageRange": [1, 3], "fields": {"Total": {"type": "string", "valueString": + "430.00", "text": "430.00", "page": 1, "boundingBox": [5.94, 5.565, 6.4, 5.565, + 6.4, 5.675, 5.94, 5.675], "confidence": 1.0}, "Merchant": {"type": "string", + "valueString": "A", "text": "A", "page": 1, "boundingBox": [1.67, 1.125, 1.7750000000000001, + 1.125, 1.7750000000000001, 1.245, 1.67, 1.245], "confidence": 1.0}, "Tax": + {"type": "string", "valueString": "30.00", "text": "30.00", "page": 1, "boundingBox": + [5.835, 5.125, 6.2, 5.125, 6.2, 5.235, 5.835, 5.235], "confidence": 1.0}, + "Total2": {"type": "string", "valueString": "4300.00", "text": "4300.00", + "page": 3, "boundingBox": [5.94, 5.565, 6.48, 5.565, 6.48, 5.675, 5.94, 5.675], + "confidence": 1.0}, "Subtotal": {"type": "string", "valueString": "300.00", + "text": "300.00", "page": 1, "boundingBox": [6.18, 4.905, 6.63, 4.905, 6.63, + 5.015, 6.18, 5.015], "confidence": 1.0}, "MerchantPhoneNumber": {"type": "string", + "valueString": "555-555-5555", "text": "555-555-5555", "page": 1, "boundingBox": + [0.885, 2.29, 1.81, 2.29, 1.81, 2.395, 0.885, 2.395], "confidence": 1.0}, "Signature2": {"type": "string", "valueString": "Frodo Baggins", "text": "Frodo Baggins", "page": 3, "boundingBox": [2.07, 6.655, 3.09, 6.655, 3.09, 6.8, - 2.07, 6.8], "confidence": 0.16}, "CustomerPhoneNumber": {"type": "string", - "valueString": "555-555-5555", "text": "555-555-5555", "page": 1, "boundingBox": - [6.01, 2.12, 6.9350000000000005, 2.12, 6.9350000000000005, 2.225, 6.01, 2.225], - "confidence": 1.0}, "FirstQuantity": {"type": "string", "valueString": "1", - "text": "1", "page": 1, "boundingBox": [3.2600000000000002, 3.21, 3.3200000000000003, - 3.21, 3.3200000000000003, 3.3200000000000003, 3.2600000000000002, 3.3200000000000003], - "confidence": 1.0}}}], "errors": []}}' + 2.07, 6.8], "confidence": 0.16}, "Customer2": {"type": "string", "valueString": + "Frodo Baggins", "text": "Frodo Baggins", "page": 3, "boundingBox": [6.015000000000001, + 1.45, 6.95, 1.45, 6.95, 1.595, 6.015000000000001, 1.595], "confidence": 1.0}, + "Signature": {"type": "string", "valueString": "Bilbo Baggins", "text": "Bilbo + Baggins", "page": 1, "boundingBox": [2.05, 6.655, 3.04, 6.655, 3.04, 6.8, + 2.05, 6.8], "confidence": 1.0}, "Merchant2": {"type": "string", "valueString": + "Company", "text": "Company", "page": 1, "boundingBox": [0.885, 1.125, 1.62, + 1.125, 1.62, 1.28, 0.885, 1.28], "confidence": 1.0}, "CustomerAddress": {"type": + "string", "valueString": "123 Hobbit Lane Redmond, WA", "text": "123 Hobbit + Lane Redmond, WA", "page": 1, "boundingBox": [6.015000000000001, 1.67, 7.1000000000000005, + 1.67, 7.1000000000000005, 2.0300000000000002, 6.015000000000001, 2.0300000000000002], + "confidence": 1.0}, "FirstItem": {"type": "string", "valueString": "A", "text": + "A", "page": 1, "boundingBox": [1.085, 3.21, 1.175, 3.21, 1.175, 3.3200000000000003, + 1.085, 3.3200000000000003], "confidence": 1.0}, "FirstQuantity": {"type": + "string", "valueString": "1", "text": "1", "page": 1, "boundingBox": [3.2600000000000002, + 3.21, 3.3200000000000003, 3.21, 3.3200000000000003, 3.3200000000000003, 3.2600000000000002, + 3.3200000000000003], "confidence": 1.0}, "MerchantAddress": {"type": "string", + "valueString": "567 Main St. Redmond, WA", "text": "567 Main St. Redmond, + WA", "page": 1, "boundingBox": [0.885, 1.845, 1.855, 1.845, 1.855, 2.2, 0.885, + 2.2], "confidence": 1.0}, "Tip": {"type": "string", "valueString": "100.00", + "text": "100.00", "page": 1, "boundingBox": [5.8100000000000005, 5.345, 6.26, + 5.345, 6.26, 5.455, 5.8100000000000005, 5.455], "confidence": 1.0}, "FirstPrice": + {"type": "string", "valueString": "10.99", "text": "10.99", "page": 1, "boundingBox": + [5.425, 3.21, 5.78, 3.21, 5.78, 3.3200000000000003, 5.425, 3.3200000000000003], + "confidence": 1.0}, "CustomerPhoneNumber": {"type": "string", "valueString": + "555-555-5555", "text": "555-555-5555", "page": 1, "boundingBox": [6.01, 2.12, + 6.9350000000000005, 2.12, 6.9350000000000005, 2.225, 6.01, 2.225], "confidence": + 1.0}, "CustomerName": {"type": "string", "valueString": "Bilbo Baggins", "text": + "Bilbo Baggins", "page": 1, "boundingBox": [6.015000000000001, 1.45, 6.8950000000000005, + 1.45, 6.8950000000000005, 1.595, 6.015000000000001, 1.595], "confidence": + 1.0}}}], "errors": []}}' headers: - apim-request-id: 35537d17-5966-459d-9b10-c9761437e662 + apim-request-id: ac47d3d3-51c8-4d1e-aa74-25eb9f7c04a6 content-length: '9504' content-type: application/json; charset=utf-8 - date: Thu, 11 Jun 2020 15:43:21 GMT + date: Fri, 10 Jul 2020 18:51:39 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload x-content-type-options: nosniff - x-envoy-upstream-service-time: '18' + x-envoy-upstream-service-time: '21' status: code: 200 message: OK - url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/29111250-4c48-48f0-a854-fa30a5e19cd4/analyzeresults/30b57968-0559-4abf-9999-136199750f3d + url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/7b2cb383-41d0-4b8c-b15d-be005d115a29/analyzeresults/5a355e0c-7440-4dd1-989f-c54d63e4e720 version: 1 diff --git a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_custom_forms_from_url_async.test_form_unlabeled.yaml b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_custom_forms_from_url_async.test_form_unlabeled.yaml index 634ae9e9d56d..8dd86a274305 100644 --- a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_custom_forms_from_url_async.test_form_unlabeled.yaml +++ b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_custom_forms_from_url_async.test_form_unlabeled.yaml @@ -8,113 +8,84 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) method: POST - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models response: body: string: '' headers: - apim-request-id: bb86785a-b62c-43c7-b88d-37de2d8f92eb + apim-request-id: 90e2259f-137b-46f0-9a76-f0e04eaaee39 content-length: '0' - date: Thu, 11 Jun 2020 15:43:22 GMT - location: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/84255cda-c40b-4dbf-a06a-9b8fffde2b9e + date: Fri, 10 Jul 2020 18:51:39 GMT + location: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/0ed199d8-3344-436d-9352-6cd44b380b3a strict-transport-security: max-age=31536000; includeSubDomains; preload x-content-type-options: nosniff - x-envoy-upstream-service-time: '66' + x-envoy-upstream-service-time: '46' status: code: 201 message: Created - url: https://centraluseuap.api.cognitive.microsoft.com//formrecognizer/v2.0-preview/custom/models + url: https://centraluseuap.api.cognitive.microsoft.com//formrecognizer/v2.0/custom/models - request: body: null headers: User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/84255cda-c40b-4dbf-a06a-9b8fffde2b9e?includeKeys=true + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/0ed199d8-3344-436d-9352-6cd44b380b3a?includeKeys=true response: body: - string: '{"modelInfo": {"modelId": "84255cda-c40b-4dbf-a06a-9b8fffde2b9e", "status": - "creating", "createdDateTime": "2020-06-11T15:43:22Z", "lastUpdatedDateTime": - "2020-06-11T15:43:22Z"}}' + string: '{"modelInfo": {"modelId": "0ed199d8-3344-436d-9352-6cd44b380b3a", "status": + "creating", "createdDateTime": "2020-07-10T18:51:40Z", "lastUpdatedDateTime": + "2020-07-10T18:51:40Z"}}' headers: - apim-request-id: bb72c807-62b4-42a0-a4f6-d83f97568a38 + apim-request-id: 20fc426b-2d3d-485c-b06b-f6dba9ee2434 content-type: application/json; charset=utf-8 - date: Thu, 11 Jun 2020 15:43:27 GMT + date: Fri, 10 Jul 2020 18:51:46 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '15' - status: - code: 200 - message: OK - url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/84255cda-c40b-4dbf-a06a-9b8fffde2b9e?includeKeys=true -- request: - body: null - headers: - User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) - method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/84255cda-c40b-4dbf-a06a-9b8fffde2b9e?includeKeys=true - response: - body: - string: '{"modelInfo": {"modelId": "84255cda-c40b-4dbf-a06a-9b8fffde2b9e", "status": - "creating", "createdDateTime": "2020-06-11T15:43:22Z", "lastUpdatedDateTime": - "2020-06-11T15:43:22Z"}}' - headers: - apim-request-id: 7ff890c8-5099-4322-af24-9c99edf28874 - content-type: application/json; charset=utf-8 - date: Thu, 11 Jun 2020 15:43:32 GMT - strict-transport-security: max-age=31536000; includeSubDomains; preload - transfer-encoding: chunked - x-content-type-options: nosniff - x-envoy-upstream-service-time: '17' + x-envoy-upstream-service-time: '16' status: code: 200 message: OK - url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/84255cda-c40b-4dbf-a06a-9b8fffde2b9e?includeKeys=true + url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/0ed199d8-3344-436d-9352-6cd44b380b3a?includeKeys=true - request: body: null headers: User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/84255cda-c40b-4dbf-a06a-9b8fffde2b9e?includeKeys=true + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/0ed199d8-3344-436d-9352-6cd44b380b3a?includeKeys=true response: body: - string: '{"modelInfo": {"modelId": "84255cda-c40b-4dbf-a06a-9b8fffde2b9e", "status": - "creating", "createdDateTime": "2020-06-11T15:43:22Z", "lastUpdatedDateTime": - "2020-06-11T15:43:22Z"}}' + string: '{"modelInfo": {"modelId": "0ed199d8-3344-436d-9352-6cd44b380b3a", "status": + "creating", "createdDateTime": "2020-07-10T18:51:40Z", "lastUpdatedDateTime": + "2020-07-10T18:51:40Z"}}' headers: - apim-request-id: 1b2c6c75-7b67-4660-802f-8fa3c1a85f43 + apim-request-id: 301d8fbf-5176-462c-84cd-279de815e5a9 content-type: application/json; charset=utf-8 - date: Thu, 11 Jun 2020 15:43:37 GMT + date: Fri, 10 Jul 2020 18:51:50 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '16' + x-envoy-upstream-service-time: '19' status: code: 200 message: OK - url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/84255cda-c40b-4dbf-a06a-9b8fffde2b9e?includeKeys=true + url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/0ed199d8-3344-436d-9352-6cd44b380b3a?includeKeys=true - request: body: null headers: User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/84255cda-c40b-4dbf-a06a-9b8fffde2b9e?includeKeys=true + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/0ed199d8-3344-436d-9352-6cd44b380b3a?includeKeys=true response: body: - string: '{"modelInfo": {"modelId": "84255cda-c40b-4dbf-a06a-9b8fffde2b9e", "status": - "ready", "createdDateTime": "2020-06-11T15:43:22Z", "lastUpdatedDateTime": - "2020-06-11T15:43:37Z"}, "keys": {"clusters": {"0": ["Additional Notes:", + string: '{"modelInfo": {"modelId": "0ed199d8-3344-436d-9352-6cd44b380b3a", "status": + "ready", "createdDateTime": "2020-07-10T18:51:40Z", "lastUpdatedDateTime": + "2020-07-10T18:51:52Z"}, "keys": {"clusters": {"0": ["Additional Notes:", "Address:", "Company Name:", "Company Phone:", "Dated As:", "Details", "Email:", "Hero Limited", "Name:", "Phone:", "Purchase Order", "Purchase Order #:", "Quantity", "SUBTOTAL", "Seattle, WA 93849 Phone:", "Shipped From", "Shipped @@ -126,17 +97,17 @@ interactions: 1, "errors": [], "status": "succeeded"}, {"documentName": "Form_5.jpg", "pages": 1, "errors": [], "status": "succeeded"}], "errors": []}}' headers: - apim-request-id: 13e7eb59-2d26-430a-80b0-5424da12697b + apim-request-id: 668c7dad-c1b9-4801-b90b-8f8bb48e1ee0 content-type: application/json; charset=utf-8 - date: Thu, 11 Jun 2020 15:43:42 GMT + date: Fri, 10 Jul 2020 18:51:56 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '47' + x-envoy-upstream-service-time: '48' status: code: 200 message: OK - url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/84255cda-c40b-4dbf-a06a-9b8fffde2b9e?includeKeys=true + url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/0ed199d8-3344-436d-9352-6cd44b380b3a?includeKeys=true - request: body: 'b''{"source": "https://raw.githubusercontent.com/Azure/azure-sdk-for-python/master/sdk/formrecognizer/azure-ai-formrecognizer/tests/sample_forms/forms/Form_1.jpg"}''' headers: @@ -145,85 +116,58 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) method: POST - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/84255cda-c40b-4dbf-a06a-9b8fffde2b9e/analyze?includeTextDetails=false + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/0ed199d8-3344-436d-9352-6cd44b380b3a/analyze?includeTextDetails=false response: body: string: '' headers: - apim-request-id: 2cad2140-bdb1-40c3-8385-5d83104e665b + apim-request-id: 84525f72-f5be-43d0-8f6f-3a145ab8e57a content-length: '0' - date: Thu, 11 Jun 2020 15:43:43 GMT - operation-location: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/84255cda-c40b-4dbf-a06a-9b8fffde2b9e/analyzeresults/e74c2320-7efe-416d-b710-1b577797a2ea + date: Fri, 10 Jul 2020 18:51:56 GMT + operation-location: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/0ed199d8-3344-436d-9352-6cd44b380b3a/analyzeresults/2efdee3d-4177-495a-b5ab-b7664958ec6d strict-transport-security: max-age=31536000; includeSubDomains; preload x-content-type-options: nosniff - x-envoy-upstream-service-time: '83' + x-envoy-upstream-service-time: '90' status: code: 202 message: Accepted - url: https://centraluseuap.api.cognitive.microsoft.com//formrecognizer/v2.0-preview/custom/models/84255cda-c40b-4dbf-a06a-9b8fffde2b9e/analyze?includeTextDetails=false + url: https://centraluseuap.api.cognitive.microsoft.com//formrecognizer/v2.0/custom/models/0ed199d8-3344-436d-9352-6cd44b380b3a/analyze?includeTextDetails=false - request: body: null headers: User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/84255cda-c40b-4dbf-a06a-9b8fffde2b9e/analyzeresults/e74c2320-7efe-416d-b710-1b577797a2ea + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/0ed199d8-3344-436d-9352-6cd44b380b3a/analyzeresults/2efdee3d-4177-495a-b5ab-b7664958ec6d response: body: - string: '{"status": "running", "createdDateTime": "2020-06-11T15:43:44Z", "lastUpdatedDateTime": - "2020-06-11T15:43:46Z", "analyzeResult": null}' + string: '{"status": "running", "createdDateTime": "2020-07-10T18:51:56Z", "lastUpdatedDateTime": + "2020-07-10T18:51:58Z", "analyzeResult": null}' headers: - apim-request-id: 3240bc4f-c37a-4f1a-ab5c-18055cd37ad5 + apim-request-id: c078b72d-d2e0-45a6-98b6-1a4753a2624d content-length: '134' content-type: application/json; charset=utf-8 - date: Thu, 11 Jun 2020 15:43:48 GMT + date: Fri, 10 Jul 2020 18:52:01 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload x-content-type-options: nosniff - x-envoy-upstream-service-time: '34' + x-envoy-upstream-service-time: '20' status: code: 200 message: OK - url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/84255cda-c40b-4dbf-a06a-9b8fffde2b9e/analyzeresults/e74c2320-7efe-416d-b710-1b577797a2ea + url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/0ed199d8-3344-436d-9352-6cd44b380b3a/analyzeresults/2efdee3d-4177-495a-b5ab-b7664958ec6d - request: body: null headers: User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/84255cda-c40b-4dbf-a06a-9b8fffde2b9e/analyzeresults/e74c2320-7efe-416d-b710-1b577797a2ea + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/0ed199d8-3344-436d-9352-6cd44b380b3a/analyzeresults/2efdee3d-4177-495a-b5ab-b7664958ec6d response: body: - string: '{"status": "running", "createdDateTime": "2020-06-11T15:43:44Z", "lastUpdatedDateTime": - "2020-06-11T15:43:46Z", "analyzeResult": null}' - headers: - apim-request-id: 3632b6b9-e14a-4ac4-b65e-6739895b1750 - content-length: '134' - content-type: application/json; charset=utf-8 - date: Thu, 11 Jun 2020 15:43:54 GMT - strict-transport-security: max-age=31536000; includeSubDomains; preload - x-content-type-options: nosniff - x-envoy-upstream-service-time: '24' - status: - code: 200 - message: OK - url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/84255cda-c40b-4dbf-a06a-9b8fffde2b9e/analyzeresults/e74c2320-7efe-416d-b710-1b577797a2ea -- request: - body: null - headers: - User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) - method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/84255cda-c40b-4dbf-a06a-9b8fffde2b9e/analyzeresults/e74c2320-7efe-416d-b710-1b577797a2ea - response: - body: - string: '{"status": "succeeded", "createdDateTime": "2020-06-11T15:43:44Z", - "lastUpdatedDateTime": "2020-06-11T15:43:56Z", "analyzeResult": {"version": + string: '{"status": "succeeded", "createdDateTime": "2020-07-10T18:51:56Z", + "lastUpdatedDateTime": "2020-07-10T18:52:01Z", "analyzeResult": {"version": "2.0.0", "readResults": [{"page": 1, "angle": 0.16, "width": 1700, "height": 2200, "unit": "pixel", "lines": []}], "pageResults": [{"page": 1, "keyValuePairs": [{"key": {"text": "Hero Limited", "boundingBox": [620.0, 203.0, 1078.0, 203.0, @@ -372,15 +316,15 @@ interactions: 1.0, "rowSpan": 1, "columnSpan": 1, "elements": null, "isHeader": false, "isFooter": false}]}], "clusterId": 0}], "documentResults": [], "errors": []}}' headers: - apim-request-id: 2b828545-1c17-4320-8020-e23989500e12 + apim-request-id: e52a0f32-34ab-45f0-a58e-100bba495bb6 content-length: '11800' content-type: application/json; charset=utf-8 - date: Thu, 11 Jun 2020 15:43:59 GMT + date: Fri, 10 Jul 2020 18:52:06 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload x-content-type-options: nosniff - x-envoy-upstream-service-time: '19' + x-envoy-upstream-service-time: '50' status: code: 200 message: OK - url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/84255cda-c40b-4dbf-a06a-9b8fffde2b9e/analyzeresults/e74c2320-7efe-416d-b710-1b577797a2ea + url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/0ed199d8-3344-436d-9352-6cd44b380b3a/analyzeresults/2efdee3d-4177-495a-b5ab-b7664958ec6d version: 1 diff --git a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_custom_forms_from_url_async.test_form_unlabeled_transform.yaml b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_custom_forms_from_url_async.test_form_unlabeled_transform.yaml index 34612df09010..379e91ac3d63 100644 --- a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_custom_forms_from_url_async.test_form_unlabeled_transform.yaml +++ b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_custom_forms_from_url_async.test_form_unlabeled_transform.yaml @@ -8,88 +8,60 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) method: POST - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models response: body: string: '' headers: - apim-request-id: 0c6d868f-90e7-466e-9e7b-25b7f2498f57 + apim-request-id: 01ddbf32-ea23-4403-93a9-fabbe10f59b8 content-length: '0' - date: Thu, 11 Jun 2020 15:42:32 GMT - location: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/4dd23fb0-3706-4b4a-bdb5-a9827502df16 + date: Fri, 10 Jul 2020 18:52:07 GMT + location: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/a8cbd7d8-6b0c-4930-b8ca-ce6d112c4f93 strict-transport-security: max-age=31536000; includeSubDomains; preload x-content-type-options: nosniff - x-envoy-upstream-service-time: '68' + x-envoy-upstream-service-time: '80' status: code: 201 message: Created - url: https://centraluseuap.api.cognitive.microsoft.com//formrecognizer/v2.0-preview/custom/models + url: https://centraluseuap.api.cognitive.microsoft.com//formrecognizer/v2.0/custom/models - request: body: null headers: User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/4dd23fb0-3706-4b4a-bdb5-a9827502df16?includeKeys=true + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/a8cbd7d8-6b0c-4930-b8ca-ce6d112c4f93?includeKeys=true response: body: - string: '{"modelInfo": {"modelId": "4dd23fb0-3706-4b4a-bdb5-a9827502df16", "status": - "creating", "createdDateTime": "2020-06-11T15:42:32Z", "lastUpdatedDateTime": - "2020-06-11T15:42:32Z"}}' + string: '{"modelInfo": {"modelId": "a8cbd7d8-6b0c-4930-b8ca-ce6d112c4f93", "status": + "creating", "createdDateTime": "2020-07-10T18:52:07Z", "lastUpdatedDateTime": + "2020-07-10T18:52:07Z"}}' headers: - apim-request-id: 7c706eab-d082-4211-b360-62f4380a179f + apim-request-id: c24bd569-47c7-4b85-85aa-c17f1b085427 content-type: application/json; charset=utf-8 - date: Thu, 11 Jun 2020 15:42:36 GMT + date: Fri, 10 Jul 2020 18:52:12 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '49' + x-envoy-upstream-service-time: '21' status: code: 200 message: OK - url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/4dd23fb0-3706-4b4a-bdb5-a9827502df16?includeKeys=true + url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/a8cbd7d8-6b0c-4930-b8ca-ce6d112c4f93?includeKeys=true - request: body: null headers: User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/4dd23fb0-3706-4b4a-bdb5-a9827502df16?includeKeys=true + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/a8cbd7d8-6b0c-4930-b8ca-ce6d112c4f93?includeKeys=true response: body: - string: '{"modelInfo": {"modelId": "4dd23fb0-3706-4b4a-bdb5-a9827502df16", "status": - "creating", "createdDateTime": "2020-06-11T15:42:32Z", "lastUpdatedDateTime": - "2020-06-11T15:42:32Z"}}' - headers: - apim-request-id: 7fd8f569-0a46-4a02-bbc6-494751d8bc02 - content-type: application/json; charset=utf-8 - date: Thu, 11 Jun 2020 15:42:42 GMT - strict-transport-security: max-age=31536000; includeSubDomains; preload - transfer-encoding: chunked - x-content-type-options: nosniff - x-envoy-upstream-service-time: '47' - status: - code: 200 - message: OK - url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/4dd23fb0-3706-4b4a-bdb5-a9827502df16?includeKeys=true -- request: - body: null - headers: - User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) - method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/4dd23fb0-3706-4b4a-bdb5-a9827502df16?includeKeys=true - response: - body: - string: '{"modelInfo": {"modelId": "4dd23fb0-3706-4b4a-bdb5-a9827502df16", "status": - "ready", "createdDateTime": "2020-06-11T15:42:32Z", "lastUpdatedDateTime": - "2020-06-11T15:42:43Z"}, "keys": {"clusters": {"0": ["Additional Notes:", + string: '{"modelInfo": {"modelId": "a8cbd7d8-6b0c-4930-b8ca-ce6d112c4f93", "status": + "ready", "createdDateTime": "2020-07-10T18:52:07Z", "lastUpdatedDateTime": + "2020-07-10T18:52:16Z"}, "keys": {"clusters": {"0": ["Additional Notes:", "Address:", "Company Name:", "Company Phone:", "Dated As:", "Details", "Email:", "Hero Limited", "Name:", "Phone:", "Purchase Order", "Purchase Order #:", "Quantity", "SUBTOTAL", "Seattle, WA 93849 Phone:", "Shipped From", "Shipped @@ -101,17 +73,17 @@ interactions: 1, "errors": [], "status": "succeeded"}, {"documentName": "Form_5.jpg", "pages": 1, "errors": [], "status": "succeeded"}], "errors": []}}' headers: - apim-request-id: 5df30fd4-9537-4eca-bea1-6d07ddd917e2 + apim-request-id: 8e1881d0-28ee-44f5-977d-d1287e4ea23a content-type: application/json; charset=utf-8 - date: Thu, 11 Jun 2020 15:42:49 GMT + date: Fri, 10 Jul 2020 18:52:17 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '2472' + x-envoy-upstream-service-time: '18' status: code: 200 message: OK - url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/4dd23fb0-3706-4b4a-bdb5-a9827502df16?includeKeys=true + url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/a8cbd7d8-6b0c-4930-b8ca-ce6d112c4f93?includeKeys=true - request: body: 'b''{"source": "https://raw.githubusercontent.com/Azure/azure-sdk-for-python/master/sdk/formrecognizer/azure-ai-formrecognizer/tests/sample_forms/forms/Form_1.jpg"}''' headers: @@ -120,157 +92,127 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) method: POST - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/4dd23fb0-3706-4b4a-bdb5-a9827502df16/analyze?includeTextDetails=true + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/a8cbd7d8-6b0c-4930-b8ca-ce6d112c4f93/analyze?includeTextDetails=true response: body: string: '' headers: - apim-request-id: 3207967a-57ac-4090-b3c1-f8b44a218ce6 + apim-request-id: 16605c9e-1acf-4af5-90b0-31e1bd653a4c content-length: '0' - date: Thu, 11 Jun 2020 15:42:50 GMT - operation-location: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/4dd23fb0-3706-4b4a-bdb5-a9827502df16/analyzeresults/4f137e22-c11c-4c8e-8f57-10ed86cdbb5e + date: Fri, 10 Jul 2020 18:52:17 GMT + operation-location: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/a8cbd7d8-6b0c-4930-b8ca-ce6d112c4f93/analyzeresults/e81658aa-200e-45c1-9926-9973f6359fe2 strict-transport-security: max-age=31536000; includeSubDomains; preload x-content-type-options: nosniff - x-envoy-upstream-service-time: '121' + x-envoy-upstream-service-time: '52' status: code: 202 message: Accepted - url: https://centraluseuap.api.cognitive.microsoft.com//formrecognizer/v2.0-preview/custom/models/4dd23fb0-3706-4b4a-bdb5-a9827502df16/analyze?includeTextDetails=true -- request: - body: null - headers: - User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) - method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/4dd23fb0-3706-4b4a-bdb5-a9827502df16/analyzeresults/4f137e22-c11c-4c8e-8f57-10ed86cdbb5e - response: - body: - string: '{"status": "notStarted", "createdDateTime": "2020-06-11T15:42:50Z", - "lastUpdatedDateTime": "2020-06-11T15:42:50Z"}' - headers: - apim-request-id: d163e7d9-9d63-4eec-9d69-b89d9e80efd5 - content-length: '109' - content-type: application/json; charset=utf-8 - date: Thu, 11 Jun 2020 15:42:55 GMT - strict-transport-security: max-age=31536000; includeSubDomains; preload - x-content-type-options: nosniff - x-envoy-upstream-service-time: '46' - status: - code: 200 - message: OK - url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/4dd23fb0-3706-4b4a-bdb5-a9827502df16/analyzeresults/4f137e22-c11c-4c8e-8f57-10ed86cdbb5e + url: https://centraluseuap.api.cognitive.microsoft.com//formrecognizer/v2.0/custom/models/a8cbd7d8-6b0c-4930-b8ca-ce6d112c4f93/analyze?includeTextDetails=true - request: body: null headers: User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/4dd23fb0-3706-4b4a-bdb5-a9827502df16/analyzeresults/4f137e22-c11c-4c8e-8f57-10ed86cdbb5e + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/a8cbd7d8-6b0c-4930-b8ca-ce6d112c4f93/analyzeresults/e81658aa-200e-45c1-9926-9973f6359fe2 response: body: - string: '{"status": "notStarted", "createdDateTime": "2020-06-11T15:42:50Z", - "lastUpdatedDateTime": "2020-06-11T15:42:50Z"}' + string: '{"status": "notStarted", "createdDateTime": "2020-07-10T18:52:17Z", + "lastUpdatedDateTime": "2020-07-10T18:52:17Z"}' headers: - apim-request-id: 9656215d-b3cd-49dd-843a-7eeb258ce32b + apim-request-id: 4a993132-4bcf-459a-8fda-8d9c54eb903e content-length: '109' content-type: application/json; charset=utf-8 - date: Thu, 11 Jun 2020 15:43:01 GMT + date: Fri, 10 Jul 2020 18:52:22 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload x-content-type-options: nosniff - x-envoy-upstream-service-time: '841' + x-envoy-upstream-service-time: '53' status: code: 200 message: OK - url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/4dd23fb0-3706-4b4a-bdb5-a9827502df16/analyzeresults/4f137e22-c11c-4c8e-8f57-10ed86cdbb5e + url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/a8cbd7d8-6b0c-4930-b8ca-ce6d112c4f93/analyzeresults/e81658aa-200e-45c1-9926-9973f6359fe2 - request: body: null headers: User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/4dd23fb0-3706-4b4a-bdb5-a9827502df16/analyzeresults/4f137e22-c11c-4c8e-8f57-10ed86cdbb5e + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/a8cbd7d8-6b0c-4930-b8ca-ce6d112c4f93/analyzeresults/e81658aa-200e-45c1-9926-9973f6359fe2 response: body: - string: '{"status": "notStarted", "createdDateTime": "2020-06-11T15:42:50Z", - "lastUpdatedDateTime": "2020-06-11T15:42:50Z"}' + string: '{"status": "notStarted", "createdDateTime": "2020-07-10T18:52:17Z", + "lastUpdatedDateTime": "2020-07-10T18:52:17Z"}' headers: - apim-request-id: 9b0af472-05ae-4636-9d49-936bc8cedd5e + apim-request-id: 336c2c87-1fbd-4fa0-b931-acc2c06e4898 content-length: '109' content-type: application/json; charset=utf-8 - date: Thu, 11 Jun 2020 15:43:06 GMT + date: Fri, 10 Jul 2020 18:52:27 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload x-content-type-options: nosniff - x-envoy-upstream-service-time: '17' + x-envoy-upstream-service-time: '16' status: code: 200 message: OK - url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/4dd23fb0-3706-4b4a-bdb5-a9827502df16/analyzeresults/4f137e22-c11c-4c8e-8f57-10ed86cdbb5e + url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/a8cbd7d8-6b0c-4930-b8ca-ce6d112c4f93/analyzeresults/e81658aa-200e-45c1-9926-9973f6359fe2 - request: body: null headers: User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/4dd23fb0-3706-4b4a-bdb5-a9827502df16/analyzeresults/4f137e22-c11c-4c8e-8f57-10ed86cdbb5e + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/a8cbd7d8-6b0c-4930-b8ca-ce6d112c4f93/analyzeresults/e81658aa-200e-45c1-9926-9973f6359fe2 response: body: - string: '{"status": "notStarted", "createdDateTime": "2020-06-11T15:42:50Z", - "lastUpdatedDateTime": "2020-06-11T15:42:50Z"}' + string: '{"status": "notStarted", "createdDateTime": "2020-07-10T18:52:17Z", + "lastUpdatedDateTime": "2020-07-10T18:52:17Z"}' headers: - apim-request-id: d17da60c-38e8-48b2-9b23-ed3a70ce4ace + apim-request-id: 2555ea68-4000-44e9-8a40-69375a51e386 content-length: '109' content-type: application/json; charset=utf-8 - date: Thu, 11 Jun 2020 15:43:12 GMT + date: Fri, 10 Jul 2020 18:52:33 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload x-content-type-options: nosniff - x-envoy-upstream-service-time: '51' + x-envoy-upstream-service-time: '53' status: code: 200 message: OK - url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/4dd23fb0-3706-4b4a-bdb5-a9827502df16/analyzeresults/4f137e22-c11c-4c8e-8f57-10ed86cdbb5e + url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/a8cbd7d8-6b0c-4930-b8ca-ce6d112c4f93/analyzeresults/e81658aa-200e-45c1-9926-9973f6359fe2 - request: body: null headers: User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/4dd23fb0-3706-4b4a-bdb5-a9827502df16/analyzeresults/4f137e22-c11c-4c8e-8f57-10ed86cdbb5e + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/a8cbd7d8-6b0c-4930-b8ca-ce6d112c4f93/analyzeresults/e81658aa-200e-45c1-9926-9973f6359fe2 response: body: - string: '{"status": "running", "createdDateTime": "2020-06-11T15:42:50Z", "lastUpdatedDateTime": - "2020-06-11T15:43:15Z", "analyzeResult": null}' + string: '{"status": "running", "createdDateTime": "2020-07-10T18:52:17Z", "lastUpdatedDateTime": + "2020-07-10T18:52:36Z", "analyzeResult": null}' headers: - apim-request-id: 5f684e69-55ef-483a-8f71-8e314591a3a0 + apim-request-id: 8c62fc2b-dd18-4a8b-b474-e962aa417f06 content-length: '134' content-type: application/json; charset=utf-8 - date: Thu, 11 Jun 2020 15:43:17 GMT + date: Fri, 10 Jul 2020 18:52:38 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload x-content-type-options: nosniff - x-envoy-upstream-service-time: '17' + x-envoy-upstream-service-time: '18' status: code: 200 message: OK - url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/4dd23fb0-3706-4b4a-bdb5-a9827502df16/analyzeresults/4f137e22-c11c-4c8e-8f57-10ed86cdbb5e + url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/a8cbd7d8-6b0c-4930-b8ca-ce6d112c4f93/analyzeresults/e81658aa-200e-45c1-9926-9973f6359fe2 - request: body: null headers: User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/4dd23fb0-3706-4b4a-bdb5-a9827502df16/analyzeresults/4f137e22-c11c-4c8e-8f57-10ed86cdbb5e + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/a8cbd7d8-6b0c-4930-b8ca-ce6d112c4f93/analyzeresults/e81658aa-200e-45c1-9926-9973f6359fe2 response: body: - string: '{"status": "succeeded", "createdDateTime": "2020-06-11T15:42:50Z", - "lastUpdatedDateTime": "2020-06-11T15:43:21Z", "analyzeResult": {"version": + string: '{"status": "succeeded", "createdDateTime": "2020-07-10T18:52:17Z", + "lastUpdatedDateTime": "2020-07-10T18:52:40Z", "analyzeResult": {"version": "2.0.0", "readResults": [{"page": 1, "angle": 0.16, "width": 1700, "height": 2200, "unit": "pixel", "lines": [{"text": "Purchase Order", "boundingBox": [141.0, 140.0, 348.0, 140.0, 348.0, 168.0, 141.0, 168.0], "words": [{"text": @@ -722,15 +664,15 @@ interactions: "isHeader": false, "isFooter": false}]}], "clusterId": 0}], "documentResults": [], "errors": []}}' headers: - apim-request-id: fa0789ce-0ec9-49fa-9331-ee46fd74e80a + apim-request-id: a428f27d-db3b-4d96-aaf5-d4d7f761ee21 content-length: '36450' content-type: application/json; charset=utf-8 - date: Thu, 11 Jun 2020 15:43:22 GMT + date: Fri, 10 Jul 2020 18:52:43 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload x-content-type-options: nosniff - x-envoy-upstream-service-time: '23' + x-envoy-upstream-service-time: '159' status: code: 200 message: OK - url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/4dd23fb0-3706-4b4a-bdb5-a9827502df16/analyzeresults/4f137e22-c11c-4c8e-8f57-10ed86cdbb5e + url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/a8cbd7d8-6b0c-4930-b8ca-ce6d112c4f93/analyzeresults/e81658aa-200e-45c1-9926-9973f6359fe2 version: 1 diff --git a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_custom_forms_from_url_async.test_multipage_labeled_transform.yaml b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_custom_forms_from_url_async.test_multipage_labeled_transform.yaml index dc41a05dabec..22d938de6a4e 100644 --- a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_custom_forms_from_url_async.test_multipage_labeled_transform.yaml +++ b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_custom_forms_from_url_async.test_multipage_labeled_transform.yaml @@ -8,38 +8,36 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) method: POST - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models response: body: string: '' headers: - apim-request-id: 201b350d-e61d-44aa-85df-675890a15bc1 + apim-request-id: a6a13c1a-473e-4f0d-9db1-5211935f99bf content-length: '0' - date: Thu, 11 Jun 2020 15:43:23 GMT - location: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/8b7b2d5b-5f1c-4838-9714-e348b635881d + date: Fri, 10 Jul 2020 18:52:43 GMT + location: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/9a9bb54a-3a35-42af-ad6a-c71cad6690e4 strict-transport-security: max-age=31536000; includeSubDomains; preload x-content-type-options: nosniff - x-envoy-upstream-service-time: '36' + x-envoy-upstream-service-time: '67' status: code: 201 message: Created - url: https://centraluseuap.api.cognitive.microsoft.com//formrecognizer/v2.0-preview/custom/models + url: https://centraluseuap.api.cognitive.microsoft.com//formrecognizer/v2.0/custom/models - request: body: null headers: User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/8b7b2d5b-5f1c-4838-9714-e348b635881d?includeKeys=true + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/9a9bb54a-3a35-42af-ad6a-c71cad6690e4?includeKeys=true response: body: - string: '{"modelInfo": {"modelId": "8b7b2d5b-5f1c-4838-9714-e348b635881d", "status": - "ready", "createdDateTime": "2020-06-11T15:43:23Z", "lastUpdatedDateTime": - "2020-06-11T15:43:24Z"}, "trainResult": {"averageModelAccuracy": 0.889, "trainingDocuments": + string: '{"modelInfo": {"modelId": "9a9bb54a-3a35-42af-ad6a-c71cad6690e4", "status": + "ready", "createdDateTime": "2020-07-10T18:52:44Z", "lastUpdatedDateTime": + "2020-07-10T18:52:46Z"}, "trainResult": {"averageModelAccuracy": 0.889, "trainingDocuments": [{"documentName": "multipage_invoice1.pdf", "pages": 3, "status": "succeeded"}, {"documentName": "multipage_invoice2.pdf", "pages": 3, "status": "succeeded"}, {"documentName": "multipage_invoice3.pdf", "pages": 3, "status": "succeeded"}, @@ -57,17 +55,17 @@ interactions: 1.0}, {"fieldName": "Tip", "accuracy": 1.0}, {"fieldName": "Total", "accuracy": 1.0}, {"fieldName": "Total2", "accuracy": 1.0}], "errors": []}}' headers: - apim-request-id: 59b0d088-b894-477f-abd9-af8daab5e10f + apim-request-id: 85c78a7a-35a3-4b07-b269-7d247b460ffd content-type: application/json; charset=utf-8 - date: Thu, 11 Jun 2020 15:43:28 GMT + date: Fri, 10 Jul 2020 18:52:48 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '18' + x-envoy-upstream-service-time: '21' status: code: 200 message: OK - url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/8b7b2d5b-5f1c-4838-9714-e348b635881d?includeKeys=true + url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/9a9bb54a-3a35-42af-ad6a-c71cad6690e4?includeKeys=true - request: body: 'b''b\''{"source": "blob_sas_url"}\''''' headers: @@ -76,37 +74,58 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) method: POST - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/8b7b2d5b-5f1c-4838-9714-e348b635881d/analyze?includeTextDetails=true + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/9a9bb54a-3a35-42af-ad6a-c71cad6690e4/analyze?includeTextDetails=true response: body: string: '' headers: - apim-request-id: 0b3974b1-ec25-4df2-80cb-72477a216bd6 + apim-request-id: f31385ef-de7d-460c-8abd-1746072dd521 content-length: '0' - date: Thu, 11 Jun 2020 15:43:28 GMT - operation-location: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/8b7b2d5b-5f1c-4838-9714-e348b635881d/analyzeresults/81ca3259-4243-48fd-b3f4-3b66f234b81b + date: Fri, 10 Jul 2020 18:52:48 GMT + operation-location: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/9a9bb54a-3a35-42af-ad6a-c71cad6690e4/analyzeresults/3c408a20-42d2-4916-a7be-d3c8c2130237 strict-transport-security: max-age=31536000; includeSubDomains; preload x-content-type-options: nosniff - x-envoy-upstream-service-time: '119' + x-envoy-upstream-service-time: '100' status: code: 202 message: Accepted - url: https://centraluseuap.api.cognitive.microsoft.com//formrecognizer/v2.0-preview/custom/models/8b7b2d5b-5f1c-4838-9714-e348b635881d/analyze?includeTextDetails=true + url: https://centraluseuap.api.cognitive.microsoft.com//formrecognizer/v2.0/custom/models/9a9bb54a-3a35-42af-ad6a-c71cad6690e4/analyze?includeTextDetails=true - request: body: null headers: User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/8b7b2d5b-5f1c-4838-9714-e348b635881d/analyzeresults/81ca3259-4243-48fd-b3f4-3b66f234b81b + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/9a9bb54a-3a35-42af-ad6a-c71cad6690e4/analyzeresults/3c408a20-42d2-4916-a7be-d3c8c2130237 response: body: - string: '{"status": "succeeded", "createdDateTime": "2020-06-11T15:43:28Z", - "lastUpdatedDateTime": "2020-06-11T15:43:33Z", "analyzeResult": {"version": + string: '{"status": "notStarted", "createdDateTime": "2020-07-10T18:52:49Z", + "lastUpdatedDateTime": "2020-07-10T18:52:53Z"}' + headers: + apim-request-id: fe81485a-4418-4ad5-842a-1b6fb718f64a + content-length: '109' + content-type: application/json; charset=utf-8 + date: Fri, 10 Jul 2020 18:52:54 GMT + strict-transport-security: max-age=31536000; includeSubDomains; preload + x-content-type-options: nosniff + x-envoy-upstream-service-time: '47' + status: + code: 200 + message: OK + url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/9a9bb54a-3a35-42af-ad6a-c71cad6690e4/analyzeresults/3c408a20-42d2-4916-a7be-d3c8c2130237 +- request: + body: null + headers: + User-Agent: + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + method: GET + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/9a9bb54a-3a35-42af-ad6a-c71cad6690e4/analyzeresults/3c408a20-42d2-4916-a7be-d3c8c2130237 + response: + body: + string: '{"status": "succeeded", "createdDateTime": "2020-07-10T18:52:49Z", + "lastUpdatedDateTime": "2020-07-10T18:52:56Z", "analyzeResult": {"version": "2.0.0", "readResults": [{"page": 1, "language": "en", "angle": 0, "width": 8.5, "height": 11, "unit": "inch", "lines": [{"boundingBox": [0.8861, 1.1217, 2.3783, 1.1217, 2.3783, 1.2812, 0.8861, 1.2812], "text": "Company A Invoice", @@ -487,80 +506,81 @@ interactions: {"rowIndex": 7, "columnIndex": 2, "text": "220.00", "boundingBox": [5.3353, 4.4181, 7.4997, 4.4181, 7.4997, 4.6281, 5.3353, 4.6281], "elements": ["#/readResults/2/lines/33/words/0"]}]}]}], "documentResults": [{"docType": "custom:form", "pageRange": [1, 3], "fields": - {"MerchantAddress": {"type": "string", "valueString": "567 Main St. Redmond, - WA", "text": "567 Main St. Redmond, WA", "page": 1, "boundingBox": [0.885, - 1.845, 1.855, 1.845, 1.855, 2.2, 0.885, 2.2], "confidence": 1.0, "elements": - ["#/analyzeResult/readResults/0/lines/5/words/0", "#/analyzeResult/readResults/0/lines/5/words/1", - "#/analyzeResult/readResults/0/lines/5/words/2", "#/analyzeResult/readResults/0/lines/7/words/0", - "#/analyzeResult/readResults/0/lines/7/words/1"]}, "FirstItem": {"type": "string", - "valueString": "A", "text": "A", "page": 1, "boundingBox": [1.085, 3.21, 1.175, - 3.21, 1.175, 3.3200000000000003, 1.085, 3.3200000000000003], "confidence": - 1.0, "elements": ["#/analyzeResult/readResults/0/lines/13/words/0"]}, "Merchant2": + {"Customer2": {"type": "string", "valueString": "Frodo Baggins", "text": "Frodo + Baggins", "page": 3, "boundingBox": [6.015000000000001, 1.45, 6.95, 1.45, + 6.95, 1.595, 6.015000000000001, 1.595], "confidence": 1.0, "elements": ["#/analyzeResult/readResults/2/lines/3/words/0", + "#/analyzeResult/readResults/2/lines/3/words/1"]}, "MerchantPhoneNumber": + {"type": "string", "valueString": "555-555-5555", "text": "555-555-5555", + "page": 1, "boundingBox": [0.885, 2.29, 1.81, 2.29, 1.81, 2.395, 0.885, 2.395], + "confidence": 1.0, "elements": ["#/analyzeResult/readResults/0/lines/9/words/0"]}, + "Tip": {"type": "string", "valueString": "100.00", "text": "100.00", "page": + 1, "boundingBox": [5.8100000000000005, 5.345, 6.26, 5.345, 6.26, 5.455, 5.8100000000000005, + 5.455], "confidence": 1.0, "elements": ["#/analyzeResult/readResults/0/lines/36/words/1"]}, + "Total": {"type": "string", "valueString": "430.00", "text": "430.00", "page": + 1, "boundingBox": [5.94, 5.565, 6.4, 5.565, 6.4, 5.675, 5.94, 5.675], "confidence": + 1.0, "elements": ["#/analyzeResult/readResults/0/lines/37/words/1"]}, "Tax": + {"type": "string", "valueString": "30.00", "text": "30.00", "page": 1, "boundingBox": + [5.835, 5.125, 6.2, 5.125, 6.2, 5.235, 5.835, 5.235], "confidence": 1.0, "elements": + ["#/analyzeResult/readResults/0/lines/35/words/1"]}, "FirstPrice": {"type": + "string", "valueString": "10.99", "text": "10.99", "page": 1, "boundingBox": + [5.425, 3.21, 5.78, 3.21, 5.78, 3.3200000000000003, 5.425, 3.3200000000000003], + "confidence": 1.0, "elements": ["#/analyzeResult/readResults/0/lines/15/words/0"]}, + "Signature": {"type": "string", "valueString": "Bilbo Baggins", "text": "Bilbo + Baggins", "page": 1, "boundingBox": [2.05, 6.655, 3.04, 6.655, 3.04, 6.8, + 2.05, 6.8], "confidence": 1.0, "elements": ["#/analyzeResult/readResults/0/lines/38/words/1", + "#/analyzeResult/readResults/0/lines/38/words/2"]}, "MerchantAddress": {"type": + "string", "valueString": "567 Main St. Redmond, WA", "text": "567 Main St. + Redmond, WA", "page": 1, "boundingBox": [0.885, 1.845, 1.855, 1.845, 1.855, + 2.2, 0.885, 2.2], "confidence": 1.0, "elements": ["#/analyzeResult/readResults/0/lines/5/words/0", + "#/analyzeResult/readResults/0/lines/5/words/1", "#/analyzeResult/readResults/0/lines/5/words/2", + "#/analyzeResult/readResults/0/lines/7/words/0", "#/analyzeResult/readResults/0/lines/7/words/1"]}, + "Signature2": {"type": "string", "valueString": "Frodo Baggins", "text": "Frodo + Baggins", "page": 3, "boundingBox": [2.07, 6.655, 3.09, 6.655, 3.09, 6.8, + 2.07, 6.8], "confidence": 0.16, "elements": ["#/analyzeResult/readResults/2/lines/38/words/1", + "#/analyzeResult/readResults/2/lines/38/words/2"]}, "CustomerPhoneNumber": + {"type": "string", "valueString": "555-555-5555", "text": "555-555-5555", + "page": 1, "boundingBox": [6.01, 2.12, 6.9350000000000005, 2.12, 6.9350000000000005, + 2.225, 6.01, 2.225], "confidence": 1.0, "elements": ["#/analyzeResult/readResults/0/lines/8/words/0"]}, + "FirstItem": {"type": "string", "valueString": "A", "text": "A", "page": 1, + "boundingBox": [1.085, 3.21, 1.175, 3.21, 1.175, 3.3200000000000003, 1.085, + 3.3200000000000003], "confidence": 1.0, "elements": ["#/analyzeResult/readResults/0/lines/13/words/0"]}, + "FirstQuantity": {"type": "string", "valueString": "1", "text": "1", "page": + 1, "boundingBox": [3.2600000000000002, 3.21, 3.3200000000000003, 3.21, 3.3200000000000003, + 3.3200000000000003, 3.2600000000000002, 3.3200000000000003], "confidence": + 1.0, "elements": ["#/analyzeResult/readResults/0/lines/14/words/0"]}, "Merchant2": {"type": "string", "valueString": "Company", "text": "Company", "page": 1, "boundingBox": [0.885, 1.125, 1.62, 1.125, 1.62, 1.28, 0.885, 1.28], "confidence": - 1.0, "elements": ["#/analyzeResult/readResults/0/lines/0/words/0"]}, "CustomerAddress": - {"type": "string", "valueString": "123 Hobbit Lane Redmond, WA", "text": "123 - Hobbit Lane Redmond, WA", "page": 1, "boundingBox": [6.015000000000001, 1.67, - 7.1000000000000005, 1.67, 7.1000000000000005, 2.0300000000000002, 6.015000000000001, + 1.0, "elements": ["#/analyzeResult/readResults/0/lines/0/words/0"]}, "Merchant": + {"type": "string", "valueString": "A", "text": "A", "page": 1, "boundingBox": + [1.67, 1.125, 1.7750000000000001, 1.125, 1.7750000000000001, 1.245, 1.67, + 1.245], "confidence": 1.0, "elements": ["#/analyzeResult/readResults/0/lines/0/words/1"]}, + "CustomerAddress": {"type": "string", "valueString": "123 Hobbit Lane Redmond, + WA", "text": "123 Hobbit Lane Redmond, WA", "page": 1, "boundingBox": [6.015000000000001, + 1.67, 7.1000000000000005, 1.67, 7.1000000000000005, 2.0300000000000002, 6.015000000000001, 2.0300000000000002], "confidence": 1.0, "elements": ["#/analyzeResult/readResults/0/lines/4/words/0", "#/analyzeResult/readResults/0/lines/4/words/1", "#/analyzeResult/readResults/0/lines/4/words/2", "#/analyzeResult/readResults/0/lines/6/words/0", "#/analyzeResult/readResults/0/lines/6/words/1"]}, - "Tax": {"type": "string", "valueString": "30.00", "text": "30.00", "page": - 1, "boundingBox": [5.835, 5.125, 6.2, 5.125, 6.2, 5.235, 5.835, 5.235], "confidence": - 1.0, "elements": ["#/analyzeResult/readResults/0/lines/35/words/1"]}, "Total": - {"type": "string", "valueString": "430.00", "text": "430.00", "page": 1, "boundingBox": - [5.94, 5.565, 6.4, 5.565, 6.4, 5.675, 5.94, 5.675], "confidence": 1.0, "elements": - ["#/analyzeResult/readResults/0/lines/37/words/1"]}, "MerchantPhoneNumber": - {"type": "string", "valueString": "555-555-5555", "text": "555-555-5555", - "page": 1, "boundingBox": [0.885, 2.29, 1.81, 2.29, 1.81, 2.395, 0.885, 2.395], - "confidence": 1.0, "elements": ["#/analyzeResult/readResults/0/lines/9/words/0"]}, + "CustomerName": {"type": "string", "valueString": "Bilbo Baggins", "text": + "Bilbo Baggins", "page": 1, "boundingBox": [6.015000000000001, 1.45, 6.8950000000000005, + 1.45, 6.8950000000000005, 1.595, 6.015000000000001, 1.595], "confidence": + 1.0, "elements": ["#/analyzeResult/readResults/0/lines/3/words/0", "#/analyzeResult/readResults/0/lines/3/words/1"]}, + "Subtotal": {"type": "string", "valueString": "300.00", "text": "300.00", + "page": 1, "boundingBox": [6.18, 4.905, 6.63, 4.905, 6.63, 5.015, 6.18, 5.015], + "confidence": 1.0, "elements": ["#/analyzeResult/readResults/0/lines/34/words/1"]}, "Total2": {"type": "string", "valueString": "4300.00", "text": "4300.00", "page": 3, "boundingBox": [5.94, 5.565, 6.48, 5.565, 6.48, 5.675, 5.94, 5.675], - "confidence": 1.0, "elements": ["#/analyzeResult/readResults/2/lines/37/words/1"]}, - "Customer2": {"type": "string", "valueString": "Frodo Baggins", "text": "Frodo - Baggins", "page": 3, "boundingBox": [6.015000000000001, 1.45, 6.95, 1.45, - 6.95, 1.595, 6.015000000000001, 1.595], "confidence": 1.0, "elements": ["#/analyzeResult/readResults/2/lines/3/words/0", - "#/analyzeResult/readResults/2/lines/3/words/1"]}, "FirstQuantity": {"type": - "string", "valueString": "1", "text": "1", "page": 1, "boundingBox": [3.2600000000000002, - 3.21, 3.3200000000000003, 3.21, 3.3200000000000003, 3.3200000000000003, 3.2600000000000002, - 3.3200000000000003], "confidence": 1.0, "elements": ["#/analyzeResult/readResults/0/lines/14/words/0"]}, - "FirstPrice": {"type": "string", "valueString": "10.99", "text": "10.99", - "page": 1, "boundingBox": [5.425, 3.21, 5.78, 3.21, 5.78, 3.3200000000000003, - 5.425, 3.3200000000000003], "confidence": 1.0, "elements": ["#/analyzeResult/readResults/0/lines/15/words/0"]}, - "Signature": {"type": "string", "valueString": "Bilbo Baggins", "text": "Bilbo - Baggins", "page": 1, "boundingBox": [2.05, 6.655, 3.04, 6.655, 3.04, 6.8, - 2.05, 6.8], "confidence": 1.0, "elements": ["#/analyzeResult/readResults/0/lines/38/words/1", - "#/analyzeResult/readResults/0/lines/38/words/2"]}, "Subtotal": {"type": "string", - "valueString": "300.00", "text": "300.00", "page": 1, "boundingBox": [6.18, - 4.905, 6.63, 4.905, 6.63, 5.015, 6.18, 5.015], "confidence": 1.0, "elements": - ["#/analyzeResult/readResults/0/lines/34/words/1"]}, "CustomerName": {"type": - "string", "valueString": "Bilbo Baggins", "text": "Bilbo Baggins", "page": - 1, "boundingBox": [6.015000000000001, 1.45, 6.8950000000000005, 1.45, 6.8950000000000005, - 1.595, 6.015000000000001, 1.595], "confidence": 1.0, "elements": ["#/analyzeResult/readResults/0/lines/3/words/0", - "#/analyzeResult/readResults/0/lines/3/words/1"]}, "Signature2": {"type": - "string", "valueString": "Frodo Baggins", "text": "Frodo Baggins", "page": - 3, "boundingBox": [2.07, 6.655, 3.09, 6.655, 3.09, 6.8, 2.07, 6.8], "confidence": - 0.16, "elements": ["#/analyzeResult/readResults/2/lines/38/words/1", "#/analyzeResult/readResults/2/lines/38/words/2"]}, - "Tip": {"type": "string", "valueString": "100.00", "text": "100.00", "page": - 1, "boundingBox": [5.8100000000000005, 5.345, 6.26, 5.345, 6.26, 5.455, 5.8100000000000005, - 5.455], "confidence": 1.0, "elements": ["#/analyzeResult/readResults/0/lines/36/words/1"]}, - "CustomerPhoneNumber": {"type": "string", "valueString": "555-555-5555", "text": - "555-555-5555", "page": 1, "boundingBox": [6.01, 2.12, 6.9350000000000005, - 2.12, 6.9350000000000005, 2.225, 6.01, 2.225], "confidence": 1.0, "elements": - ["#/analyzeResult/readResults/0/lines/8/words/0"]}, "Merchant": {"type": "string", - "valueString": "A", "text": "A", "page": 1, "boundingBox": [1.67, 1.125, 1.7750000000000001, - 1.125, 1.7750000000000001, 1.245, 1.67, 1.245], "confidence": 1.0, "elements": - ["#/analyzeResult/readResults/0/lines/0/words/1"]}}}], "errors": []}}' + "confidence": 1.0, "elements": ["#/analyzeResult/readResults/2/lines/37/words/1"]}}}], + "errors": []}}' headers: - apim-request-id: 8ddd5a43-f249-44b4-a2a5-ba293eed6c05 + apim-request-id: e77b640c-bed3-4406-a648-2bc38ef14eba content-length: '32675' content-type: application/json; charset=utf-8 - date: Thu, 11 Jun 2020 15:43:32 GMT + date: Fri, 10 Jul 2020 18:52:59 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload x-content-type-options: nosniff - x-envoy-upstream-service-time: '57' + x-envoy-upstream-service-time: '59' status: code: 200 message: OK - url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/8b7b2d5b-5f1c-4838-9714-e348b635881d/analyzeresults/81ca3259-4243-48fd-b3f4-3b66f234b81b + url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/9a9bb54a-3a35-42af-ad6a-c71cad6690e4/analyzeresults/3c408a20-42d2-4916-a7be-d3c8c2130237 version: 1 diff --git a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_custom_forms_from_url_async.test_multipage_unlabeled_transform.yaml b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_custom_forms_from_url_async.test_multipage_unlabeled_transform.yaml index 6efc5ac1daf0..c7dbf6663a49 100644 --- a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_custom_forms_from_url_async.test_multipage_unlabeled_transform.yaml +++ b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_custom_forms_from_url_async.test_multipage_unlabeled_transform.yaml @@ -8,113 +8,180 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) method: POST - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models response: body: string: '' headers: - apim-request-id: ea03cd4c-d697-4532-9615-bbbb7190ef62 + apim-request-id: 9dfa4842-053e-402b-8ee3-c3063ce90615 content-length: '0' - date: Thu, 11 Jun 2020 15:43:34 GMT - location: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/3b1628d6-67f9-4ee0-8c44-f01a42570d9b + date: Fri, 10 Jul 2020 18:49:25 GMT + location: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/5effb484-6d5e-4a33-b547-dc025a4f352d strict-transport-security: max-age=31536000; includeSubDomains; preload x-content-type-options: nosniff - x-envoy-upstream-service-time: '39' + x-envoy-upstream-service-time: '220' status: code: 201 message: Created - url: https://centraluseuap.api.cognitive.microsoft.com//formrecognizer/v2.0-preview/custom/models + url: https://centraluseuap.api.cognitive.microsoft.com//formrecognizer/v2.0/custom/models - request: body: null headers: User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/3b1628d6-67f9-4ee0-8c44-f01a42570d9b?includeKeys=true + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/5effb484-6d5e-4a33-b547-dc025a4f352d?includeKeys=true response: body: - string: '{"modelInfo": {"modelId": "3b1628d6-67f9-4ee0-8c44-f01a42570d9b", "status": - "creating", "createdDateTime": "2020-06-11T15:43:34Z", "lastUpdatedDateTime": - "2020-06-11T15:43:34Z"}}' + string: '{"modelInfo": {"modelId": "5effb484-6d5e-4a33-b547-dc025a4f352d", "status": + "creating", "createdDateTime": "2020-07-10T18:49:25Z", "lastUpdatedDateTime": + "2020-07-10T18:49:25Z"}}' headers: - apim-request-id: 7faea0ce-ac72-4f3b-957b-125271414335 + apim-request-id: b0bf7e5c-987c-4eb5-b632-784402c811ed content-type: application/json; charset=utf-8 - date: Thu, 11 Jun 2020 15:43:38 GMT + date: Fri, 10 Jul 2020 18:49:30 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '16' + x-envoy-upstream-service-time: '52' status: code: 200 message: OK - url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/3b1628d6-67f9-4ee0-8c44-f01a42570d9b?includeKeys=true + url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/5effb484-6d5e-4a33-b547-dc025a4f352d?includeKeys=true - request: body: null headers: User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/3b1628d6-67f9-4ee0-8c44-f01a42570d9b?includeKeys=true + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/5effb484-6d5e-4a33-b547-dc025a4f352d?includeKeys=true response: body: - string: '{"modelInfo": {"modelId": "3b1628d6-67f9-4ee0-8c44-f01a42570d9b", "status": - "creating", "createdDateTime": "2020-06-11T15:43:34Z", "lastUpdatedDateTime": - "2020-06-11T15:43:34Z"}}' + string: '{"modelInfo": {"modelId": "5effb484-6d5e-4a33-b547-dc025a4f352d", "status": + "creating", "createdDateTime": "2020-07-10T18:49:25Z", "lastUpdatedDateTime": + "2020-07-10T18:49:25Z"}}' headers: - apim-request-id: 00db791a-fb9e-492a-8640-66bfbb9f7af1 + apim-request-id: dec21e50-4618-458c-a5f1-3e57e85ef5bb content-type: application/json; charset=utf-8 - date: Thu, 11 Jun 2020 15:43:44 GMT + date: Fri, 10 Jul 2020 18:49:35 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '55' + x-envoy-upstream-service-time: '18' + status: + code: 200 + message: OK + url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/5effb484-6d5e-4a33-b547-dc025a4f352d?includeKeys=true +- request: + body: null + headers: + User-Agent: + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + method: GET + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/5effb484-6d5e-4a33-b547-dc025a4f352d?includeKeys=true + response: + body: + string: '{"modelInfo": {"modelId": "5effb484-6d5e-4a33-b547-dc025a4f352d", "status": + "creating", "createdDateTime": "2020-07-10T18:49:25Z", "lastUpdatedDateTime": + "2020-07-10T18:49:25Z"}}' + headers: + apim-request-id: 8ceafbfa-2f05-45f5-ba79-9d2319cda437 + content-type: application/json; charset=utf-8 + date: Fri, 10 Jul 2020 18:49:41 GMT + strict-transport-security: max-age=31536000; includeSubDomains; preload + transfer-encoding: chunked + x-content-type-options: nosniff + x-envoy-upstream-service-time: '48' status: code: 200 message: OK - url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/3b1628d6-67f9-4ee0-8c44-f01a42570d9b?includeKeys=true + url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/5effb484-6d5e-4a33-b547-dc025a4f352d?includeKeys=true - request: body: null headers: User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/3b1628d6-67f9-4ee0-8c44-f01a42570d9b?includeKeys=true + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/5effb484-6d5e-4a33-b547-dc025a4f352d?includeKeys=true response: body: - string: '{"modelInfo": {"modelId": "3b1628d6-67f9-4ee0-8c44-f01a42570d9b", "status": - "creating", "createdDateTime": "2020-06-11T15:43:34Z", "lastUpdatedDateTime": - "2020-06-11T15:43:34Z"}}' + string: '{"modelInfo": {"modelId": "5effb484-6d5e-4a33-b547-dc025a4f352d", "status": + "creating", "createdDateTime": "2020-07-10T18:49:25Z", "lastUpdatedDateTime": + "2020-07-10T18:49:25Z"}}' headers: - apim-request-id: ee817312-7f4b-41f2-82d9-e808ea5f27ca + apim-request-id: a38c37b5-e470-45e0-b11f-600f57c5f99d content-type: application/json; charset=utf-8 - date: Thu, 11 Jun 2020 15:43:48 GMT + date: Fri, 10 Jul 2020 18:49:46 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '17' + x-envoy-upstream-service-time: '50' status: code: 200 message: OK - url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/3b1628d6-67f9-4ee0-8c44-f01a42570d9b?includeKeys=true + url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/5effb484-6d5e-4a33-b547-dc025a4f352d?includeKeys=true - request: body: null headers: User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/3b1628d6-67f9-4ee0-8c44-f01a42570d9b?includeKeys=true + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/5effb484-6d5e-4a33-b547-dc025a4f352d?includeKeys=true response: body: - string: '{"modelInfo": {"modelId": "3b1628d6-67f9-4ee0-8c44-f01a42570d9b", "status": - "ready", "createdDateTime": "2020-06-11T15:43:34Z", "lastUpdatedDateTime": - "2020-06-11T15:43:50Z"}, "keys": {"clusters": {"0": ["Address:", "Invoice + string: '{"modelInfo": {"modelId": "5effb484-6d5e-4a33-b547-dc025a4f352d", "status": + "creating", "createdDateTime": "2020-07-10T18:49:25Z", "lastUpdatedDateTime": + "2020-07-10T18:49:25Z"}}' + headers: + apim-request-id: 929a29f0-3eb4-4c08-b817-17fcb12db67e + content-type: application/json; charset=utf-8 + date: Fri, 10 Jul 2020 18:49:51 GMT + strict-transport-security: max-age=31536000; includeSubDomains; preload + transfer-encoding: chunked + x-content-type-options: nosniff + x-envoy-upstream-service-time: '45' + status: + code: 200 + message: OK + url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/5effb484-6d5e-4a33-b547-dc025a4f352d?includeKeys=true +- request: + body: null + headers: + User-Agent: + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + method: GET + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/5effb484-6d5e-4a33-b547-dc025a4f352d?includeKeys=true + response: + body: + string: '{"modelInfo": {"modelId": "5effb484-6d5e-4a33-b547-dc025a4f352d", "status": + "creating", "createdDateTime": "2020-07-10T18:49:25Z", "lastUpdatedDateTime": + "2020-07-10T18:49:25Z"}}' + headers: + apim-request-id: cce37fbd-2e27-4256-b8c4-1e6f4246c3d0 + content-type: application/json; charset=utf-8 + date: Fri, 10 Jul 2020 18:49:56 GMT + strict-transport-security: max-age=31536000; includeSubDomains; preload + transfer-encoding: chunked + x-content-type-options: nosniff + x-envoy-upstream-service-time: '48' + status: + code: 200 + message: OK + url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/5effb484-6d5e-4a33-b547-dc025a4f352d?includeKeys=true +- request: + body: null + headers: + User-Agent: + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + method: GET + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/5effb484-6d5e-4a33-b547-dc025a4f352d?includeKeys=true + response: + body: + string: '{"modelInfo": {"modelId": "5effb484-6d5e-4a33-b547-dc025a4f352d", "status": + "ready", "createdDateTime": "2020-07-10T18:49:25Z", "lastUpdatedDateTime": + "2020-07-10T18:49:57Z"}, "keys": {"clusters": {"0": ["Address:", "Invoice For:", "Item", "Price", "Quantity", "Redmond, WA", "Signature:", "Subtotal:", "Tax:", "Tip:", "Total:"]}}, "trainResult": {"trainingDocuments": [{"documentName": "multipage_invoice1.pdf", "pages": 3, "errors": [], "status": "succeeded"}, @@ -124,17 +191,17 @@ interactions: 3, "errors": [], "status": "succeeded"}, {"documentName": "multipage_invoice5.pdf", "pages": 3, "errors": [], "status": "succeeded"}], "errors": []}}' headers: - apim-request-id: 0367ee3a-8726-479f-8558-3d9badae13f4 + apim-request-id: 84103c87-53fb-401f-a2e5-1cc4e98bfe01 content-type: application/json; charset=utf-8 - date: Thu, 11 Jun 2020 15:43:54 GMT + date: Fri, 10 Jul 2020 18:50:02 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '25' + x-envoy-upstream-service-time: '165' status: code: 200 message: OK - url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/3b1628d6-67f9-4ee0-8c44-f01a42570d9b?includeKeys=true + url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/5effb484-6d5e-4a33-b547-dc025a4f352d?includeKeys=true - request: body: 'b''b\''{"source": "blob_sas_url"}\''''' headers: @@ -143,61 +210,58 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) method: POST - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/3b1628d6-67f9-4ee0-8c44-f01a42570d9b/analyze?includeTextDetails=true + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/5effb484-6d5e-4a33-b547-dc025a4f352d/analyze?includeTextDetails=true response: body: string: '' headers: - apim-request-id: 4c672ba8-2523-461d-8c21-f7076201af3d + apim-request-id: f0bf1e07-c350-401b-b23a-4d128dadbe95 content-length: '0' - date: Thu, 11 Jun 2020 15:43:54 GMT - operation-location: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/3b1628d6-67f9-4ee0-8c44-f01a42570d9b/analyzeresults/beef18c7-21b7-4294-8c4b-7bb5e41f6d3e + date: Fri, 10 Jul 2020 18:50:04 GMT + operation-location: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/5effb484-6d5e-4a33-b547-dc025a4f352d/analyzeresults/30b2a54a-3d43-4453-8f53-294b5beb5145 strict-transport-security: max-age=31536000; includeSubDomains; preload x-content-type-options: nosniff - x-envoy-upstream-service-time: '84' + x-envoy-upstream-service-time: '2427' status: code: 202 message: Accepted - url: https://centraluseuap.api.cognitive.microsoft.com//formrecognizer/v2.0-preview/custom/models/3b1628d6-67f9-4ee0-8c44-f01a42570d9b/analyze?includeTextDetails=true + url: https://centraluseuap.api.cognitive.microsoft.com//formrecognizer/v2.0/custom/models/5effb484-6d5e-4a33-b547-dc025a4f352d/analyze?includeTextDetails=true - request: body: null headers: User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/3b1628d6-67f9-4ee0-8c44-f01a42570d9b/analyzeresults/beef18c7-21b7-4294-8c4b-7bb5e41f6d3e + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/5effb484-6d5e-4a33-b547-dc025a4f352d/analyzeresults/30b2a54a-3d43-4453-8f53-294b5beb5145 response: body: - string: '{"status": "running", "createdDateTime": "2020-06-11T15:43:55Z", "lastUpdatedDateTime": - "2020-06-11T15:43:56Z", "analyzeResult": null}' + string: '{"status": "running", "createdDateTime": "2020-07-10T18:50:04Z", "lastUpdatedDateTime": + "2020-07-10T18:50:06Z", "analyzeResult": null}' headers: - apim-request-id: 35687d23-09d1-4159-a58e-3c4e92152306 + apim-request-id: ae666f67-1503-4df3-9c16-7bbfc3429399 content-length: '134' content-type: application/json; charset=utf-8 - date: Thu, 11 Jun 2020 15:43:59 GMT + date: Fri, 10 Jul 2020 18:50:09 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload x-content-type-options: nosniff - x-envoy-upstream-service-time: '18' + x-envoy-upstream-service-time: '823' status: code: 200 message: OK - url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/3b1628d6-67f9-4ee0-8c44-f01a42570d9b/analyzeresults/beef18c7-21b7-4294-8c4b-7bb5e41f6d3e + url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/5effb484-6d5e-4a33-b547-dc025a4f352d/analyzeresults/30b2a54a-3d43-4453-8f53-294b5beb5145 - request: body: null headers: User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/3b1628d6-67f9-4ee0-8c44-f01a42570d9b/analyzeresults/beef18c7-21b7-4294-8c4b-7bb5e41f6d3e + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/5effb484-6d5e-4a33-b547-dc025a4f352d/analyzeresults/30b2a54a-3d43-4453-8f53-294b5beb5145 response: body: - string: '{"status": "succeeded", "createdDateTime": "2020-06-11T15:43:55Z", - "lastUpdatedDateTime": "2020-06-11T15:44:01Z", "analyzeResult": {"version": + string: '{"status": "succeeded", "createdDateTime": "2020-07-10T18:50:04Z", + "lastUpdatedDateTime": "2020-07-10T18:50:11Z", "analyzeResult": {"version": "2.0.0", "readResults": [{"page": 1, "angle": 0, "width": 8.5, "height": 11.0, "unit": "inch", "lines": [{"text": "Company A Invoice", "boundingBox": [0.8764, 1.1014, 2.3875, 1.1014, 2.3875, 1.2958, 0.8764, 1.2958], "words": [{"text": @@ -710,15 +774,15 @@ interactions: "isHeader": false, "isFooter": false}]}], "clusterId": 0}], "documentResults": [], "errors": []}}' headers: - apim-request-id: 69c16355-d1ff-4cfd-91c5-87cdc2d2e2aa + apim-request-id: 84a9aa83-029d-4044-a8de-c85c5caf784d content-length: '42016' content-type: application/json; charset=utf-8 - date: Thu, 11 Jun 2020 15:44:05 GMT + date: Fri, 10 Jul 2020 18:50:15 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload x-content-type-options: nosniff - x-envoy-upstream-service-time: '27' + x-envoy-upstream-service-time: '57' status: code: 200 message: OK - url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/3b1628d6-67f9-4ee0-8c44-f01a42570d9b/analyzeresults/beef18c7-21b7-4294-8c4b-7bb5e41f6d3e + url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/5effb484-6d5e-4a33-b547-dc025a4f352d/analyzeresults/30b2a54a-3d43-4453-8f53-294b5beb5145 version: 1 diff --git a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_custom_forms_from_url_async.test_pass_stream_into_url.yaml b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_custom_forms_from_url_async.test_pass_stream_into_url.yaml index 6f11222fa80e..7f423d18e120 100644 --- a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_custom_forms_from_url_async.test_pass_stream_into_url.yaml +++ b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_custom_forms_from_url_async.test_pass_stream_into_url.yaml @@ -7,24 +7,23 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) method: POST - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/xxx/analyze?includeTextDetails=false + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/xxx/analyze?includeTextDetails=false response: body: string: '{"error": {"code": "1001", "message": "Specified model not found or not ready, Model Id: xxx"}}' headers: - apim-request-id: 679fff2b-953a-46c9-bee2-7520e592b7af + apim-request-id: 6d98750f-da04-4259-8af8-192f3fdbe7b9 content-type: application/json; charset=utf-8 - date: Thu, 11 Jun 2020 15:44:05 GMT + date: Fri, 10 Jul 2020 18:50:15 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '16' + x-envoy-upstream-service-time: '14' status: code: 400 message: Bad Request - url: https://centraluseuap.api.cognitive.microsoft.com//formrecognizer/v2.0-preview/custom/models/xxx/analyze?includeTextDetails=false + url: https://centraluseuap.api.cognitive.microsoft.com//formrecognizer/v2.0/custom/models/xxx/analyze?includeTextDetails=false version: 1 diff --git a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_custom_forms_from_url_async.test_passing_bad_url.yaml b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_custom_forms_from_url_async.test_passing_bad_url.yaml index fa180010bdc3..9004a7173c5c 100644 --- a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_custom_forms_from_url_async.test_passing_bad_url.yaml +++ b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_custom_forms_from_url_async.test_passing_bad_url.yaml @@ -7,24 +7,23 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) method: POST - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/xx/analyze?includeTextDetails=false + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/xx/analyze?includeTextDetails=false response: body: string: '{"error": {"code": "1001", "message": "Specified model not found or not ready, Model Id: xx"}}' headers: - apim-request-id: b19f44e4-3fdc-41c4-8130-44ef4dfcbc1a + apim-request-id: b37dfab7-16c5-47a0-8a0b-dfcb46a5f97c content-type: application/json; charset=utf-8 - date: Thu, 11 Jun 2020 15:44:06 GMT + date: Fri, 10 Jul 2020 18:50:17 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '14' + x-envoy-upstream-service-time: '793' status: code: 400 message: Bad Request - url: https://centraluseuap.api.cognitive.microsoft.com//formrecognizer/v2.0-preview/custom/models/xx/analyze?includeTextDetails=false + url: https://centraluseuap.api.cognitive.microsoft.com//formrecognizer/v2.0/custom/models/xx/analyze?includeTextDetails=false version: 1 diff --git a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_custom_forms_from_url_async.test_url_authentication_bad_key.yaml b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_custom_forms_from_url_async.test_url_authentication_bad_key.yaml index 0d0cc225bae4..57189c79f199 100644 --- a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_custom_forms_from_url_async.test_url_authentication_bad_key.yaml +++ b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_custom_forms_from_url_async.test_url_authentication_bad_key.yaml @@ -7,20 +7,24 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) method: POST - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/xx/analyze?includeTextDetails=false + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/xx/analyze?includeTextDetails=false response: body: string: '{"error": {"code": "401", "message": "Access denied due to invalid subscription key or wrong API endpoint. Make sure to provide a valid key for an active subscription and use a correct regional API endpoint for your resource."}}' headers: - content-length: '224' - date: Thu, 11 Jun 2020 15:44:06 GMT + apim-request-id: be03547c-5098-42d5-93bc-8653838ed73a + content-length: '225' + content-type: application/json + date: Fri, 10 Jul 2020 18:50:17 GMT + strict-transport-security: max-age=31536000; includeSubDomains; preload + www-authenticate: AzureApiManagementKey realm="https://centraluseuap.api.cognitive.microsoft.com/formrecognizer",name="Ocp-Apim-Subscription-Key",type="header" + x-content-type-options: nosniff status: code: 401 - message: PermissionDenied - url: https://centraluseuap.api.cognitive.microsoft.com//formrecognizer/v2.0-preview/custom/models/xx/analyze?includeTextDetails=false + message: Access Denied + url: https://centraluseuap.api.cognitive.microsoft.com//formrecognizer/v2.0/custom/models/xx/analyze?includeTextDetails=false version: 1 diff --git a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_mgmt.test_account_properties.yaml b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_mgmt.test_account_properties.yaml index f040b7556afb..e31031494ab5 100644 --- a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_mgmt.test_account_properties.yaml +++ b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_mgmt.test_account_properties.yaml @@ -9,20 +9,19 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models?op=summary + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models?op=summary response: body: - string: '{"summary": {"count": 5, "limit": 5000, "lastUpdatedDateTime": "2020-06-11T15:43:28Z"}}' + string: '{"summary": {"count": 17, "limit": 5000, "lastUpdatedDateTime": "2020-07-10T18:50:18Z"}}' headers: apim-request-id: - - d343ddd2-c5fd-4549-a2c9-193dd262bbba + - 35ae0452-248b-427f-9f8b-32cdb174985e content-type: - application/json; charset=utf-8 date: - - Thu, 11 Jun 2020 15:43:28 GMT + - Fri, 10 Jul 2020 18:50:18 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -30,7 +29,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '10' + - '11' status: code: 200 message: OK diff --git a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_mgmt.test_account_properties_auth_bad_key.yaml b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_mgmt.test_account_properties_auth_bad_key.yaml index a01fbb34b572..5af62571622a 100644 --- a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_mgmt.test_account_properties_auth_bad_key.yaml +++ b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_mgmt.test_account_properties_auth_bad_key.yaml @@ -9,21 +9,30 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models?op=summary + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models?op=summary response: body: string: '{"error": {"code": "401", "message": "Access denied due to invalid subscription key or wrong API endpoint. Make sure to provide a valid key for an active subscription and use a correct regional API endpoint for your resource."}}' headers: + apim-request-id: + - 87b82b99-4f67-4526-a27d-b6d6d7c10ac5 content-length: - - '224' + - '225' + content-type: + - application/json date: - - Thu, 11 Jun 2020 15:43:28 GMT + - Fri, 10 Jul 2020 18:50:18 GMT + strict-transport-security: + - max-age=31536000; includeSubDomains; preload + www-authenticate: + - AzureApiManagementKey realm="https://centraluseuap.api.cognitive.microsoft.com/formrecognizer",name="Ocp-Apim-Subscription-Key",type="header" + x-content-type-options: + - nosniff status: code: 401 - message: PermissionDenied + message: Access Denied version: 1 diff --git a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_mgmt.test_delete_model_auth_bad_key.yaml b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_mgmt.test_delete_model_auth_bad_key.yaml index 49eb67a768cd..5334b73e7575 100644 --- a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_mgmt.test_delete_model_auth_bad_key.yaml +++ b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_mgmt.test_delete_model_auth_bad_key.yaml @@ -11,21 +11,30 @@ interactions: Content-Length: - '0' User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) method: DELETE - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/xx + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/xx response: body: string: '{"error": {"code": "401", "message": "Access denied due to invalid subscription key or wrong API endpoint. Make sure to provide a valid key for an active subscription and use a correct regional API endpoint for your resource."}}' headers: + apim-request-id: + - fa1dac62-bd27-44ca-a8af-d8bb85e8400f content-length: - - '224' + - '225' + content-type: + - application/json date: - - Thu, 11 Jun 2020 15:43:28 GMT + - Fri, 10 Jul 2020 18:50:18 GMT + strict-transport-security: + - max-age=31536000; includeSubDomains; preload + www-authenticate: + - AzureApiManagementKey realm="https://centraluseuap.api.cognitive.microsoft.com/formrecognizer",name="Ocp-Apim-Subscription-Key",type="header" + x-content-type-options: + - nosniff status: code: 401 - message: PermissionDenied + message: Access Denied version: 1 diff --git a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_mgmt.test_get_form_recognizer_client.yaml b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_mgmt.test_get_form_recognizer_client.yaml index 12e6ee506339..c3f1bed5bf41 100644 --- a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_mgmt.test_get_form_recognizer_client.yaml +++ b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_mgmt.test_get_form_recognizer_client.yaml @@ -9,20 +9,19 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models?op=summary + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models?op=summary response: body: - string: '{"summary": {"count": 0, "limit": 5000, "lastUpdatedDateTime": "2020-06-11T16:08:28Z"}}' + string: '{"summary": {"count": 17, "limit": 5000, "lastUpdatedDateTime": "2020-07-10T18:50:20Z"}}' headers: apim-request-id: - - 914409e3-8a35-4268-be3a-a4a1cb0182b8 + - a7f65ef4-b059-4655-90d3-386decb30920 content-type: - application/json; charset=utf-8 date: - - Thu, 11 Jun 2020 16:08:28 GMT + - Fri, 10 Jul 2020 18:50:19 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -30,7 +29,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '47' + - '676' status: code: 200 message: OK @@ -48,28 +47,27 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) method: POST - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/prebuilt/receipt/analyze?includeTextDetails=false + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/prebuilt/receipt/analyze?includeTextDetails=false response: body: string: '' headers: apim-request-id: - - 2831e81c-424d-4419-bd4d-e4f811741cd7 + - c04503eb-f1bc-42bf-9cc7-06102ec9df7a content-length: - '0' date: - - Thu, 11 Jun 2020 16:08:29 GMT + - Fri, 10 Jul 2020 18:50:21 GMT operation-location: - - https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/prebuilt/receipt/analyzeResults/2831e81c-424d-4419-bd4d-e4f811741cd7 + - https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/prebuilt/receipt/analyzeResults/c04503eb-f1bc-42bf-9cc7-06102ec9df7a strict-transport-security: - max-age=31536000; includeSubDomains; preload x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '1056' + - '469' status: code: 202 message: Accepted @@ -83,14 +81,13 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/prebuilt/receipt/analyzeResults/2831e81c-424d-4419-bd4d-e4f811741cd7 + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/prebuilt/receipt/analyzeResults/c04503eb-f1bc-42bf-9cc7-06102ec9df7a response: body: - string: '{"status": "succeeded", "createdDateTime": "2020-06-11T16:08:29Z", - "lastUpdatedDateTime": "2020-06-11T16:08:33Z", "analyzeResult": {"version": + string: '{"status": "succeeded", "createdDateTime": "2020-07-10T18:50:20Z", + "lastUpdatedDateTime": "2020-07-10T18:50:23Z", "analyzeResult": {"version": "2.0.0", "readResults": [{"page": 1, "angle": 0.6893, "width": 1688, "height": 3000, "unit": "pixel", "language": "en"}], "documentResults": [{"docType": "prebuilt:receipt", "pageRange": [1, 1], "fields": {"ReceiptType": {"type": @@ -133,11 +130,11 @@ interactions: "page": 1, "confidence": 0.985}}}]}}' headers: apim-request-id: - - d667c030-dc6c-4fc7-91d7-d80719464768 + - 44fcc890-2ff7-4b2c-a971-a4a88a1aed18 content-type: - application/json; charset=utf-8 date: - - Thu, 11 Jun 2020 16:08:34 GMT + - Fri, 10 Jul 2020 18:50:25 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -145,7 +142,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '26' + - '22' status: code: 200 message: OK @@ -159,20 +156,19 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models?op=summary + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models?op=summary response: body: - string: '{"summary": {"count": 0, "limit": 5000, "lastUpdatedDateTime": "2020-06-11T16:08:35Z"}}' + string: '{"summary": {"count": 17, "limit": 5000, "lastUpdatedDateTime": "2020-07-10T18:50:26Z"}}' headers: apim-request-id: - - d79562b4-7b79-4428-a8ab-e4254024aeb7 + - d80e160a-828d-4126-9537-1e827aa8a882 content-type: - application/json; charset=utf-8 date: - - Thu, 11 Jun 2020 16:08:35 GMT + - Fri, 10 Jul 2020 18:50:25 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -180,7 +176,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '11' + - '12' status: code: 200 message: OK diff --git a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_mgmt.test_get_model_auth_bad_key.yaml b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_mgmt.test_get_model_auth_bad_key.yaml index aef999ed332c..1d649b057475 100644 --- a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_mgmt.test_get_model_auth_bad_key.yaml +++ b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_mgmt.test_get_model_auth_bad_key.yaml @@ -9,21 +9,30 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/xx?includeKeys=true + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/xx?includeKeys=true response: body: string: '{"error": {"code": "401", "message": "Access denied due to invalid subscription key or wrong API endpoint. Make sure to provide a valid key for an active subscription and use a correct regional API endpoint for your resource."}}' headers: + apim-request-id: + - 4c77cad2-856d-43bd-9788-21cadfd63a87 content-length: - - '224' + - '225' + content-type: + - application/json date: - - Thu, 11 Jun 2020 15:43:39 GMT + - Fri, 10 Jul 2020 18:50:25 GMT + strict-transport-security: + - max-age=31536000; includeSubDomains; preload + www-authenticate: + - AzureApiManagementKey realm="https://centraluseuap.api.cognitive.microsoft.com/formrecognizer",name="Ocp-Apim-Subscription-Key",type="header" + x-content-type-options: + - nosniff status: code: 401 - message: PermissionDenied + message: Access Denied version: 1 diff --git a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_mgmt.test_list_model_auth_bad_key.yaml b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_mgmt.test_list_model_auth_bad_key.yaml index 9b7b5fbddab7..0d401dfe86bf 100644 --- a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_mgmt.test_list_model_auth_bad_key.yaml +++ b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_mgmt.test_list_model_auth_bad_key.yaml @@ -9,21 +9,30 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models?op=full + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models?op=full response: body: string: '{"error": {"code": "401", "message": "Access denied due to invalid subscription key or wrong API endpoint. Make sure to provide a valid key for an active subscription and use a correct regional API endpoint for your resource."}}' headers: + apim-request-id: + - 0ace0a50-0336-4be7-8f68-43dbd9c5cad2 content-length: - - '224' + - '225' + content-type: + - application/json date: - - Thu, 11 Jun 2020 15:44:30 GMT + - Fri, 10 Jul 2020 18:50:27 GMT + strict-transport-security: + - max-age=31536000; includeSubDomains; preload + www-authenticate: + - AzureApiManagementKey realm="https://centraluseuap.api.cognitive.microsoft.com/formrecognizer",name="Ocp-Apim-Subscription-Key",type="header" + x-content-type-options: + - nosniff status: code: 401 - message: PermissionDenied + message: Access Denied version: 1 diff --git a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_mgmt.test_mgmt_model_labeled.yaml b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_mgmt.test_mgmt_model_labeled.yaml index d2ed8f84479a..634d242106d6 100644 --- a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_mgmt.test_mgmt_model_labeled.yaml +++ b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_mgmt.test_mgmt_model_labeled.yaml @@ -14,28 +14,27 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) method: POST - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models response: body: string: '' headers: apim-request-id: - - 4ac4013d-9d90-45fd-a4b9-6c73ebdc9ded + - 8635fa6d-8a3c-4d89-979f-bc68b544a68b content-length: - '0' date: - - Thu, 11 Jun 2020 15:44:30 GMT + - Fri, 10 Jul 2020 18:50:27 GMT location: - - https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/078eebcc-b87d-4bf4-ac8f-4573992f4731 + - https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/4fb359e4-f198-40f2-b418-35732e3a9387 strict-transport-security: - max-age=31536000; includeSubDomains; preload x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '71' + - '53' status: code: 201 message: Created @@ -49,15 +48,14 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/078eebcc-b87d-4bf4-ac8f-4573992f4731?includeKeys=true + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/4fb359e4-f198-40f2-b418-35732e3a9387?includeKeys=true response: body: - string: '{"modelInfo": {"modelId": "078eebcc-b87d-4bf4-ac8f-4573992f4731", "status": - "ready", "createdDateTime": "2020-06-11T15:44:30Z", "lastUpdatedDateTime": - "2020-06-11T15:44:34Z"}, "trainResult": {"averageModelAccuracy": 0.973, "trainingDocuments": + string: '{"modelInfo": {"modelId": "4fb359e4-f198-40f2-b418-35732e3a9387", "status": + "ready", "createdDateTime": "2020-07-10T18:50:27Z", "lastUpdatedDateTime": + "2020-07-10T18:50:30Z"}, "trainResult": {"averageModelAccuracy": 0.973, "trainingDocuments": [{"documentName": "Form_1.jpg", "pages": 1, "status": "succeeded"}, {"documentName": "Form_2.jpg", "pages": 1, "status": "succeeded"}, {"documentName": "Form_3.jpg", "pages": 1, "status": "succeeded"}, {"documentName": "Form_4.jpg", "pages": @@ -74,11 +72,11 @@ interactions: "errors": []}}' headers: apim-request-id: - - 39215093-1791-46a1-9198-1b9adcf48316 + - 83acaa35-8868-4de3-a921-fe5dd6d194f3 content-type: - application/json; charset=utf-8 date: - - Thu, 11 Jun 2020 15:44:35 GMT + - Fri, 10 Jul 2020 18:50:32 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -86,7 +84,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '19' + - '20' status: code: 200 message: OK @@ -100,15 +98,14 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/078eebcc-b87d-4bf4-ac8f-4573992f4731?includeKeys=true + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/4fb359e4-f198-40f2-b418-35732e3a9387?includeKeys=true response: body: - string: '{"modelInfo": {"modelId": "078eebcc-b87d-4bf4-ac8f-4573992f4731", "status": - "ready", "createdDateTime": "2020-06-11T15:44:30Z", "lastUpdatedDateTime": - "2020-06-11T15:44:34Z"}, "trainResult": {"averageModelAccuracy": 0.973, "trainingDocuments": + string: '{"modelInfo": {"modelId": "4fb359e4-f198-40f2-b418-35732e3a9387", "status": + "ready", "createdDateTime": "2020-07-10T18:50:27Z", "lastUpdatedDateTime": + "2020-07-10T18:50:30Z"}, "trainResult": {"averageModelAccuracy": 0.973, "trainingDocuments": [{"documentName": "Form_1.jpg", "pages": 1, "status": "succeeded"}, {"documentName": "Form_2.jpg", "pages": 1, "status": "succeeded"}, {"documentName": "Form_3.jpg", "pages": 1, "status": "succeeded"}, {"documentName": "Form_4.jpg", "pages": @@ -125,11 +122,11 @@ interactions: "errors": []}}' headers: apim-request-id: - - d77836f5-279c-434b-bf6c-98f706e51f98 + - 94910fb7-2afa-4b33-b6e5-8810fd3e7791 content-type: - application/json; charset=utf-8 date: - - Thu, 11 Jun 2020 15:44:35 GMT + - Fri, 10 Jul 2020 18:50:33 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -137,7 +134,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '17' + - '18' status: code: 200 message: OK @@ -151,34 +148,55 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models?op=full + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models?op=full response: body: - string: '{"modelList": [{"modelId": "078eebcc-b87d-4bf4-ac8f-4573992f4731", - "status": "ready", "createdDateTime": "2020-06-11T15:44:30Z", "lastUpdatedDateTime": - "2020-06-11T15:44:34Z"}, {"modelId": "1fcaff93-bef7-4309-b090-d890bce7badd", - "status": "ready", "createdDateTime": "2020-06-11T15:41:23Z", "lastUpdatedDateTime": - "2020-06-11T15:41:25Z"}, {"modelId": "26ba3a02-90a7-4b2c-8a0b-611e526896c7", - "status": "ready", "createdDateTime": "2020-06-11T15:42:31Z", "lastUpdatedDateTime": - "2020-06-11T15:42:44Z"}, {"modelId": "5173aec5-1513-426e-bc9e-25838486ae41", - "status": "ready", "createdDateTime": "2020-06-11T15:42:09Z", "lastUpdatedDateTime": - "2020-06-11T15:42:10Z"}, {"modelId": "6534a84c-6731-472c-bc93-1a3ed5f0137c", - "status": "ready", "createdDateTime": "2020-06-11T15:44:01Z", "lastUpdatedDateTime": - "2020-06-11T15:44:12Z"}, {"modelId": "8862ffd2-2ed2-4427-a7ca-a50b313d7bd5", - "status": "ready", "createdDateTime": "2020-06-11T15:41:40Z", "lastUpdatedDateTime": - "2020-06-11T15:41:56Z"}, {"modelId": "bb736988-d73d-4eb1-8ff6-fca968ec8209", - "status": "ready", "createdDateTime": "2020-06-11T15:43:06Z", "lastUpdatedDateTime": - "2020-06-11T15:43:38Z"}], "nextLink": ""}' + string: '{"modelList": [{"modelId": "00f7fbe5-a3c7-4e24-a871-9b9a6a450fc1", + "status": "ready", "createdDateTime": "2020-07-10T18:43:28Z", "lastUpdatedDateTime": + "2020-07-10T18:43:35Z"}, {"modelId": "30998e09-3dc8-4816-bad2-4d3318719b0c", + "status": "ready", "createdDateTime": "2020-07-10T18:43:51Z", "lastUpdatedDateTime": + "2020-07-10T18:44:08Z"}, {"modelId": "3433e426-015e-421a-b794-58fe389a707b", + "status": "ready", "createdDateTime": "2020-07-10T18:42:22Z", "lastUpdatedDateTime": + "2020-07-10T18:42:30Z"}, {"modelId": "4fb359e4-f198-40f2-b418-35732e3a9387", + "status": "ready", "createdDateTime": "2020-07-10T18:50:27Z", "lastUpdatedDateTime": + "2020-07-10T18:50:30Z"}, {"modelId": "5effb484-6d5e-4a33-b547-dc025a4f352d", + "status": "ready", "createdDateTime": "2020-07-10T18:49:25Z", "lastUpdatedDateTime": + "2020-07-10T18:49:57Z"}, {"modelId": "67f42e15-4d6e-4a01-b92d-a0cb9b0414cf", + "status": "ready", "createdDateTime": "2020-07-10T18:42:10Z", "lastUpdatedDateTime": + "2020-07-10T18:42:13Z"}, {"modelId": "68df8c7a-51dc-4124-9374-b7f966788c95", + "status": "ready", "createdDateTime": "2020-07-10T18:49:03Z", "lastUpdatedDateTime": + "2020-07-10T18:49:11Z"}, {"modelId": "6e8b70d6-2945-4b20-b97d-ef8fb4afcdf8", + "status": "ready", "createdDateTime": "2020-07-10T18:46:52Z", "lastUpdatedDateTime": + "2020-07-10T18:47:10Z"}, {"modelId": "6f4f1583-8f73-4be8-9337-ccc105f1fdff", + "status": "ready", "createdDateTime": "2020-07-10T18:46:12Z", "lastUpdatedDateTime": + "2020-07-10T18:46:22Z"}, {"modelId": "8b51591f-21ca-41f8-abe6-4febf08b1e52", + "status": "ready", "createdDateTime": "2020-07-10T18:44:23Z", "lastUpdatedDateTime": + "2020-07-10T18:44:39Z"}, {"modelId": "9137242f-1f19-40e6-b9ec-59c0cb5c65bc", + "status": "ready", "createdDateTime": "2020-07-10T18:45:15Z", "lastUpdatedDateTime": + "2020-07-10T18:45:28Z"}, {"modelId": "98be755b-7bb2-49bc-addb-82ba80fc3007", + "status": "ready", "createdDateTime": "2020-07-10T18:42:40Z", "lastUpdatedDateTime": + "2020-07-10T18:42:43Z"}, {"modelId": "a971b699-69e3-4397-a985-b3d48cf3ca3d", + "status": "ready", "createdDateTime": "2020-07-10T18:48:45Z", "lastUpdatedDateTime": + "2020-07-10T18:48:48Z"}, {"modelId": "ac5c99f9-b31b-46db-add6-5d149c844a13", + "status": "ready", "createdDateTime": "2020-07-10T18:45:43Z", "lastUpdatedDateTime": + "2020-07-10T18:45:53Z"}, {"modelId": "d7569400-70ff-4115-9dcb-5ae3b85f6c27", + "status": "ready", "createdDateTime": "2020-07-10T18:46:33Z", "lastUpdatedDateTime": + "2020-07-10T18:46:43Z"}, {"modelId": "dbb717aa-4021-4dc1-a621-7662115dcd67", + "status": "ready", "createdDateTime": "2020-07-10T18:44:57Z", "lastUpdatedDateTime": + "2020-07-10T18:45:00Z"}, {"modelId": "e8f38257-82e1-4044-959c-6025c55088a5", + "status": "ready", "createdDateTime": "2020-07-10T18:42:58Z", "lastUpdatedDateTime": + "2020-07-10T18:42:59Z"}, {"modelId": "f4135245-a217-4d73-aafe-5b1d517012f4", + "status": "ready", "createdDateTime": "2020-07-10T18:47:29Z", "lastUpdatedDateTime": + "2020-07-10T18:47:40Z"}], "nextLink": ""}' headers: apim-request-id: - - 5b7cfb32-a3bd-4291-a5d8-44d31cd8579e + - e96c0ab6-8468-4fb8-98cf-a4808ab55a65 content-type: - application/json; charset=utf-8 date: - - Thu, 11 Jun 2020 15:44:36 GMT + - Fri, 10 Jul 2020 18:50:33 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -186,7 +204,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '98' + - '124' status: code: 200 message: OK @@ -202,26 +220,25 @@ interactions: Content-Length: - '0' User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) method: DELETE - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/078eebcc-b87d-4bf4-ac8f-4573992f4731 + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/4fb359e4-f198-40f2-b418-35732e3a9387 response: body: string: '' headers: apim-request-id: - - 1d76913b-3f6a-4f66-8c5c-9aac3ed240d3 + - 90764e92-baa5-48e1-bc55-4b4a970b49d3 content-length: - '0' date: - - Thu, 11 Jun 2020 15:44:36 GMT + - Fri, 10 Jul 2020 18:50:33 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '17' + - '14' status: code: 204 message: No Content @@ -235,21 +252,20 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/078eebcc-b87d-4bf4-ac8f-4573992f4731?includeKeys=true + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/4fb359e4-f198-40f2-b418-35732e3a9387?includeKeys=true response: body: - string: '{"error": {"code": "1022", "message": "Model with ''id=078eebcc-b87d-4bf4-ac8f-4573992f4731'' + string: '{"error": {"code": "1022", "message": "Model with ''id=4fb359e4-f198-40f2-b418-35732e3a9387'' not found."}}' headers: apim-request-id: - - 1b72210e-fb0c-476b-ac53-08d67b645f44 + - 1f7aec17-78a6-450f-87ae-70f42954a272 content-type: - application/json; charset=utf-8 date: - - Thu, 11 Jun 2020 15:44:36 GMT + - Fri, 10 Jul 2020 18:50:33 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -257,7 +273,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '18' + - '11' status: code: 404 message: Not Found diff --git a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_mgmt.test_mgmt_model_unlabeled.yaml b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_mgmt.test_mgmt_model_unlabeled.yaml index eeb978bc8a26..45854f86dbfb 100644 --- a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_mgmt.test_mgmt_model_unlabeled.yaml +++ b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_mgmt.test_mgmt_model_unlabeled.yaml @@ -14,28 +14,27 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) method: POST - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models response: body: string: '' headers: apim-request-id: - - 94d75551-7c2c-4a45-b147-5d204252907a + - f7b298be-1b93-4f11-8941-8295a9291f6c content-length: - '0' date: - - Thu, 11 Jun 2020 15:44:37 GMT + - Fri, 10 Jul 2020 18:50:34 GMT location: - - https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/f2c90d33-62ef-4f70-ad66-27b0d08d88f6 + - https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/61f7dfc5-3f79-458b-82fb-8c89becfab64 strict-transport-security: - max-age=31536000; includeSubDomains; preload x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '69' + - '93' status: code: 201 message: Created @@ -49,22 +48,21 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/f2c90d33-62ef-4f70-ad66-27b0d08d88f6?includeKeys=true + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/61f7dfc5-3f79-458b-82fb-8c89becfab64?includeKeys=true response: body: - string: '{"modelInfo": {"modelId": "f2c90d33-62ef-4f70-ad66-27b0d08d88f6", "status": - "creating", "createdDateTime": "2020-06-11T15:44:37Z", "lastUpdatedDateTime": - "2020-06-11T15:44:37Z"}}' + string: '{"modelInfo": {"modelId": "61f7dfc5-3f79-458b-82fb-8c89becfab64", "status": + "creating", "createdDateTime": "2020-07-10T18:50:34Z", "lastUpdatedDateTime": + "2020-07-10T18:50:34Z"}}' headers: apim-request-id: - - c283c4cd-f093-4e32-90aa-faa81731d703 + - f92b9a3d-082b-4052-af20-00c267be8993 content-type: - application/json; charset=utf-8 date: - - Thu, 11 Jun 2020 15:44:42 GMT + - Fri, 10 Jul 2020 18:50:39 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -72,7 +70,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '17' + - '19' status: code: 200 message: OK @@ -86,22 +84,21 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/f2c90d33-62ef-4f70-ad66-27b0d08d88f6?includeKeys=true + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/61f7dfc5-3f79-458b-82fb-8c89becfab64?includeKeys=true response: body: - string: '{"modelInfo": {"modelId": "f2c90d33-62ef-4f70-ad66-27b0d08d88f6", "status": - "creating", "createdDateTime": "2020-06-11T15:44:37Z", "lastUpdatedDateTime": - "2020-06-11T15:44:37Z"}}' + string: '{"modelInfo": {"modelId": "61f7dfc5-3f79-458b-82fb-8c89becfab64", "status": + "creating", "createdDateTime": "2020-07-10T18:50:34Z", "lastUpdatedDateTime": + "2020-07-10T18:50:34Z"}}' headers: apim-request-id: - - ec7540d1-3450-4c7c-a615-a2bb0c274ce3 + - 36ad0298-b499-4af4-9512-50a6a6ad5e45 content-type: - application/json; charset=utf-8 date: - - Thu, 11 Jun 2020 15:44:47 GMT + - Fri, 10 Jul 2020 18:50:44 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -109,7 +106,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '30' + - '20' status: code: 200 message: OK @@ -123,89 +120,14 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/f2c90d33-62ef-4f70-ad66-27b0d08d88f6?includeKeys=true + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/61f7dfc5-3f79-458b-82fb-8c89becfab64?includeKeys=true response: body: - string: '{"modelInfo": {"modelId": "f2c90d33-62ef-4f70-ad66-27b0d08d88f6", "status": - "creating", "createdDateTime": "2020-06-11T15:44:37Z", "lastUpdatedDateTime": - "2020-06-11T15:44:37Z"}}' - headers: - apim-request-id: - - de4ae477-32c7-47d2-b803-412305a01e04 - content-type: - - application/json; charset=utf-8 - date: - - Thu, 11 Jun 2020 15:44:51 GMT - strict-transport-security: - - max-age=31536000; includeSubDomains; preload - transfer-encoding: - - chunked - x-content-type-options: - - nosniff - x-envoy-upstream-service-time: - - '18' - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) - method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/f2c90d33-62ef-4f70-ad66-27b0d08d88f6?includeKeys=true - response: - body: - string: '{"modelInfo": {"modelId": "f2c90d33-62ef-4f70-ad66-27b0d08d88f6", "status": - "creating", "createdDateTime": "2020-06-11T15:44:37Z", "lastUpdatedDateTime": - "2020-06-11T15:44:37Z"}}' - headers: - apim-request-id: - - 7c062b7d-84db-4e5c-874c-08ea13ff7c69 - content-type: - - application/json; charset=utf-8 - date: - - Thu, 11 Jun 2020 15:45:02 GMT - strict-transport-security: - - max-age=31536000; includeSubDomains; preload - transfer-encoding: - - chunked - x-content-type-options: - - nosniff - x-envoy-upstream-service-time: - - '5050' - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) - method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/f2c90d33-62ef-4f70-ad66-27b0d08d88f6?includeKeys=true - response: - body: - string: '{"modelInfo": {"modelId": "f2c90d33-62ef-4f70-ad66-27b0d08d88f6", "status": - "ready", "createdDateTime": "2020-06-11T15:44:37Z", "lastUpdatedDateTime": - "2020-06-11T15:45:04Z"}, "keys": {"clusters": {"0": ["Additional Notes:", + string: '{"modelInfo": {"modelId": "61f7dfc5-3f79-458b-82fb-8c89becfab64", "status": + "ready", "createdDateTime": "2020-07-10T18:50:34Z", "lastUpdatedDateTime": + "2020-07-10T18:50:44Z"}, "keys": {"clusters": {"0": ["Additional Notes:", "Address:", "Company Name:", "Company Phone:", "Dated As:", "Details", "Email:", "Hero Limited", "Name:", "Phone:", "Purchase Order", "Purchase Order #:", "Quantity", "SUBTOTAL", "Seattle, WA 93849 Phone:", "Shipped From", "Shipped @@ -218,11 +140,11 @@ interactions: 1, "errors": [], "status": "succeeded"}], "errors": []}}' headers: apim-request-id: - - fb2c48bd-8a96-4369-abaa-00626a4e5ae9 + - bec9b5ce-ff46-4ff0-b38e-70f329e3d3ff content-type: - application/json; charset=utf-8 date: - - Thu, 11 Jun 2020 15:45:07 GMT + - Fri, 10 Jul 2020 18:50:49 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -230,7 +152,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '44' + - '17' status: code: 200 message: OK @@ -244,15 +166,14 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/f2c90d33-62ef-4f70-ad66-27b0d08d88f6?includeKeys=true + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/61f7dfc5-3f79-458b-82fb-8c89becfab64?includeKeys=true response: body: - string: '{"modelInfo": {"modelId": "f2c90d33-62ef-4f70-ad66-27b0d08d88f6", "status": - "ready", "createdDateTime": "2020-06-11T15:44:37Z", "lastUpdatedDateTime": - "2020-06-11T15:45:04Z"}, "keys": {"clusters": {"0": ["Additional Notes:", + string: '{"modelInfo": {"modelId": "61f7dfc5-3f79-458b-82fb-8c89becfab64", "status": + "ready", "createdDateTime": "2020-07-10T18:50:34Z", "lastUpdatedDateTime": + "2020-07-10T18:50:44Z"}, "keys": {"clusters": {"0": ["Additional Notes:", "Address:", "Company Name:", "Company Phone:", "Dated As:", "Details", "Email:", "Hero Limited", "Name:", "Phone:", "Purchase Order", "Purchase Order #:", "Quantity", "SUBTOTAL", "Seattle, WA 93849 Phone:", "Shipped From", "Shipped @@ -265,11 +186,11 @@ interactions: 1, "errors": [], "status": "succeeded"}], "errors": []}}' headers: apim-request-id: - - 7cbb8705-01c3-4c1d-bcf8-38f05d40b10a + - 595c4a78-55d8-4042-a0a7-81589c13d4c1 content-type: - application/json; charset=utf-8 date: - - Thu, 11 Jun 2020 15:45:07 GMT + - Fri, 10 Jul 2020 18:50:49 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -277,7 +198,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '16' + - '47' status: code: 200 message: OK @@ -291,34 +212,55 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models?op=full + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models?op=full response: body: - string: '{"modelList": [{"modelId": "1fcaff93-bef7-4309-b090-d890bce7badd", - "status": "ready", "createdDateTime": "2020-06-11T15:41:23Z", "lastUpdatedDateTime": - "2020-06-11T15:41:25Z"}, {"modelId": "26ba3a02-90a7-4b2c-8a0b-611e526896c7", - "status": "ready", "createdDateTime": "2020-06-11T15:42:31Z", "lastUpdatedDateTime": - "2020-06-11T15:42:44Z"}, {"modelId": "5173aec5-1513-426e-bc9e-25838486ae41", - "status": "ready", "createdDateTime": "2020-06-11T15:42:09Z", "lastUpdatedDateTime": - "2020-06-11T15:42:10Z"}, {"modelId": "6534a84c-6731-472c-bc93-1a3ed5f0137c", - "status": "ready", "createdDateTime": "2020-06-11T15:44:01Z", "lastUpdatedDateTime": - "2020-06-11T15:44:12Z"}, {"modelId": "8862ffd2-2ed2-4427-a7ca-a50b313d7bd5", - "status": "ready", "createdDateTime": "2020-06-11T15:41:40Z", "lastUpdatedDateTime": - "2020-06-11T15:41:56Z"}, {"modelId": "bb736988-d73d-4eb1-8ff6-fca968ec8209", - "status": "ready", "createdDateTime": "2020-06-11T15:43:06Z", "lastUpdatedDateTime": - "2020-06-11T15:43:38Z"}, {"modelId": "f2c90d33-62ef-4f70-ad66-27b0d08d88f6", - "status": "ready", "createdDateTime": "2020-06-11T15:44:37Z", "lastUpdatedDateTime": - "2020-06-11T15:45:04Z"}], "nextLink": ""}' + string: '{"modelList": [{"modelId": "00f7fbe5-a3c7-4e24-a871-9b9a6a450fc1", + "status": "ready", "createdDateTime": "2020-07-10T18:43:28Z", "lastUpdatedDateTime": + "2020-07-10T18:43:35Z"}, {"modelId": "30998e09-3dc8-4816-bad2-4d3318719b0c", + "status": "ready", "createdDateTime": "2020-07-10T18:43:51Z", "lastUpdatedDateTime": + "2020-07-10T18:44:08Z"}, {"modelId": "3433e426-015e-421a-b794-58fe389a707b", + "status": "ready", "createdDateTime": "2020-07-10T18:42:22Z", "lastUpdatedDateTime": + "2020-07-10T18:42:30Z"}, {"modelId": "5effb484-6d5e-4a33-b547-dc025a4f352d", + "status": "ready", "createdDateTime": "2020-07-10T18:49:25Z", "lastUpdatedDateTime": + "2020-07-10T18:49:57Z"}, {"modelId": "61f7dfc5-3f79-458b-82fb-8c89becfab64", + "status": "ready", "createdDateTime": "2020-07-10T18:50:34Z", "lastUpdatedDateTime": + "2020-07-10T18:50:44Z"}, {"modelId": "67f42e15-4d6e-4a01-b92d-a0cb9b0414cf", + "status": "ready", "createdDateTime": "2020-07-10T18:42:10Z", "lastUpdatedDateTime": + "2020-07-10T18:42:13Z"}, {"modelId": "68df8c7a-51dc-4124-9374-b7f966788c95", + "status": "ready", "createdDateTime": "2020-07-10T18:49:03Z", "lastUpdatedDateTime": + "2020-07-10T18:49:11Z"}, {"modelId": "6e8b70d6-2945-4b20-b97d-ef8fb4afcdf8", + "status": "ready", "createdDateTime": "2020-07-10T18:46:52Z", "lastUpdatedDateTime": + "2020-07-10T18:47:10Z"}, {"modelId": "6f4f1583-8f73-4be8-9337-ccc105f1fdff", + "status": "ready", "createdDateTime": "2020-07-10T18:46:12Z", "lastUpdatedDateTime": + "2020-07-10T18:46:22Z"}, {"modelId": "8b51591f-21ca-41f8-abe6-4febf08b1e52", + "status": "ready", "createdDateTime": "2020-07-10T18:44:23Z", "lastUpdatedDateTime": + "2020-07-10T18:44:39Z"}, {"modelId": "9137242f-1f19-40e6-b9ec-59c0cb5c65bc", + "status": "ready", "createdDateTime": "2020-07-10T18:45:15Z", "lastUpdatedDateTime": + "2020-07-10T18:45:28Z"}, {"modelId": "98be755b-7bb2-49bc-addb-82ba80fc3007", + "status": "ready", "createdDateTime": "2020-07-10T18:42:40Z", "lastUpdatedDateTime": + "2020-07-10T18:42:43Z"}, {"modelId": "a971b699-69e3-4397-a985-b3d48cf3ca3d", + "status": "ready", "createdDateTime": "2020-07-10T18:48:45Z", "lastUpdatedDateTime": + "2020-07-10T18:48:48Z"}, {"modelId": "ac5c99f9-b31b-46db-add6-5d149c844a13", + "status": "ready", "createdDateTime": "2020-07-10T18:45:43Z", "lastUpdatedDateTime": + "2020-07-10T18:45:53Z"}, {"modelId": "d7569400-70ff-4115-9dcb-5ae3b85f6c27", + "status": "ready", "createdDateTime": "2020-07-10T18:46:33Z", "lastUpdatedDateTime": + "2020-07-10T18:46:43Z"}, {"modelId": "dbb717aa-4021-4dc1-a621-7662115dcd67", + "status": "ready", "createdDateTime": "2020-07-10T18:44:57Z", "lastUpdatedDateTime": + "2020-07-10T18:45:00Z"}, {"modelId": "e8f38257-82e1-4044-959c-6025c55088a5", + "status": "ready", "createdDateTime": "2020-07-10T18:42:58Z", "lastUpdatedDateTime": + "2020-07-10T18:42:59Z"}, {"modelId": "f4135245-a217-4d73-aafe-5b1d517012f4", + "status": "ready", "createdDateTime": "2020-07-10T18:47:29Z", "lastUpdatedDateTime": + "2020-07-10T18:47:40Z"}], "nextLink": ""}' headers: apim-request-id: - - 0fef41d3-f918-4003-95bc-a1a77af83da1 + - b3346619-ee83-4589-a521-c5d05c45e670 content-type: - application/json; charset=utf-8 date: - - Thu, 11 Jun 2020 15:45:07 GMT + - Fri, 10 Jul 2020 18:50:51 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -326,7 +268,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '78' + - '930' status: code: 200 message: OK @@ -342,26 +284,25 @@ interactions: Content-Length: - '0' User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) method: DELETE - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/f2c90d33-62ef-4f70-ad66-27b0d08d88f6 + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/61f7dfc5-3f79-458b-82fb-8c89becfab64 response: body: string: '' headers: apim-request-id: - - 4ce814a6-1a14-485f-a3a2-6a9486e2b012 + - 04660eb4-2746-4295-8100-67253cbb23f5 content-length: - '0' date: - - Thu, 11 Jun 2020 15:45:07 GMT + - Fri, 10 Jul 2020 18:50:51 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '38' + - '16' status: code: 204 message: No Content @@ -375,21 +316,20 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/f2c90d33-62ef-4f70-ad66-27b0d08d88f6?includeKeys=true + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/61f7dfc5-3f79-458b-82fb-8c89becfab64?includeKeys=true response: body: - string: '{"error": {"code": "1022", "message": "Model with ''id=f2c90d33-62ef-4f70-ad66-27b0d08d88f6'' + string: '{"error": {"code": "1022", "message": "Model with ''id=61f7dfc5-3f79-458b-82fb-8c89becfab64'' not found."}}' headers: apim-request-id: - - 89bf93e6-15ce-4032-8a87-c430c33469ec + - 297b41f4-180d-456e-b8e4-2ccc533be6c2 content-type: - application/json; charset=utf-8 date: - - Thu, 11 Jun 2020 15:45:08 GMT + - Fri, 10 Jul 2020 18:50:51 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -397,7 +337,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '16' + - '10' status: code: 404 message: Not Found diff --git a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_mgmt_async.test_account_properties.yaml b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_mgmt_async.test_account_properties.yaml index 7eec59f5d85e..0f31da85a5c6 100644 --- a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_mgmt_async.test_account_properties.yaml +++ b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_mgmt_async.test_account_properties.yaml @@ -5,23 +5,22 @@ interactions: Accept: - application/json User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models?op=summary + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models?op=summary response: body: - string: '{"summary": {"count": 6, "limit": 5000, "lastUpdatedDateTime": "2020-06-11T15:45:09Z"}}' + string: '{"summary": {"count": 17, "limit": 5000, "lastUpdatedDateTime": "2020-07-10T18:50:53Z"}}' headers: - apim-request-id: a18d2f4d-eb2a-4d6c-befb-c9d1f0255473 + apim-request-id: bb94077a-6c46-4402-8139-6b258beb1df6 content-type: application/json; charset=utf-8 - date: Thu, 11 Jun 2020 15:45:08 GMT + date: Fri, 10 Jul 2020 18:50:53 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '11' + x-envoy-upstream-service-time: '10' status: code: 200 message: OK - url: https://centraluseuap.api.cognitive.microsoft.com//formrecognizer/v2.0-preview/custom/models?op=summary + url: https://centraluseuap.api.cognitive.microsoft.com//formrecognizer/v2.0/custom/models?op=summary version: 1 diff --git a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_mgmt_async.test_account_properties_auth_bad_key.yaml b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_mgmt_async.test_account_properties_auth_bad_key.yaml index 595cd2d2d1ce..fd150b18653f 100644 --- a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_mgmt_async.test_account_properties_auth_bad_key.yaml +++ b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_mgmt_async.test_account_properties_auth_bad_key.yaml @@ -5,20 +5,24 @@ interactions: Accept: - application/json User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models?op=summary + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models?op=summary response: body: string: '{"error": {"code": "401", "message": "Access denied due to invalid subscription key or wrong API endpoint. Make sure to provide a valid key for an active subscription and use a correct regional API endpoint for your resource."}}' headers: - content-length: '224' - date: Thu, 11 Jun 2020 15:43:59 GMT + apim-request-id: da1a6c76-6c1d-49bc-837c-50022da0cf64 + content-length: '225' + content-type: application/json + date: Fri, 10 Jul 2020 18:50:54 GMT + strict-transport-security: max-age=31536000; includeSubDomains; preload + www-authenticate: AzureApiManagementKey realm="https://centraluseuap.api.cognitive.microsoft.com/formrecognizer",name="Ocp-Apim-Subscription-Key",type="header" + x-content-type-options: nosniff status: code: 401 - message: PermissionDenied - url: https://centraluseuap.api.cognitive.microsoft.com//formrecognizer/v2.0-preview/custom/models?op=summary + message: Access Denied + url: https://centraluseuap.api.cognitive.microsoft.com//formrecognizer/v2.0/custom/models?op=summary version: 1 diff --git a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_mgmt_async.test_delete_model_auth_bad_key.yaml b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_mgmt_async.test_delete_model_auth_bad_key.yaml index e7a6c4bc6984..025d2e658bac 100644 --- a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_mgmt_async.test_delete_model_auth_bad_key.yaml +++ b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_mgmt_async.test_delete_model_auth_bad_key.yaml @@ -3,20 +3,24 @@ interactions: body: null headers: User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) method: DELETE - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/xx + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/xx response: body: string: '{"error": {"code": "401", "message": "Access denied due to invalid subscription key or wrong API endpoint. Make sure to provide a valid key for an active subscription and use a correct regional API endpoint for your resource."}}' headers: - content-length: '224' - date: Thu, 11 Jun 2020 15:44:00 GMT + apim-request-id: 24f2da35-9f11-439c-8d35-3dc4606758a3 + content-length: '225' + content-type: application/json + date: Fri, 10 Jul 2020 18:50:55 GMT + strict-transport-security: max-age=31536000; includeSubDomains; preload + www-authenticate: AzureApiManagementKey realm="https://centraluseuap.api.cognitive.microsoft.com/formrecognizer",name="Ocp-Apim-Subscription-Key",type="header" + x-content-type-options: nosniff status: code: 401 - message: PermissionDenied - url: https://centraluseuap.api.cognitive.microsoft.com//formrecognizer/v2.0-preview/custom/models/xx + message: Access Denied + url: https://centraluseuap.api.cognitive.microsoft.com//formrecognizer/v2.0/custom/models/xx version: 1 diff --git a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_mgmt_async.test_get_form_recognizer_client.yaml b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_mgmt_async.test_get_form_recognizer_client.yaml index 628d40125fae..c4c94edbe82f 100644 --- a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_mgmt_async.test_get_form_recognizer_client.yaml +++ b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_mgmt_async.test_get_form_recognizer_client.yaml @@ -5,25 +5,24 @@ interactions: Accept: - application/json User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models?op=summary + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models?op=summary response: body: - string: '{"summary": {"count": 5, "limit": 5000, "lastUpdatedDateTime": "2020-06-11T15:43:29Z"}}' + string: '{"summary": {"count": 17, "limit": 5000, "lastUpdatedDateTime": "2020-07-10T18:50:56Z"}}' headers: - apim-request-id: 50775465-94cb-4fa8-b875-33ae7ba4f3bc + apim-request-id: 3c7cd68e-bc28-4e48-9ae1-3b685173c503 content-type: application/json; charset=utf-8 - date: Thu, 11 Jun 2020 15:43:28 GMT + date: Fri, 10 Jul 2020 18:50:55 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '9' + x-envoy-upstream-service-time: '12' status: code: 200 message: OK - url: https://centraluseuap.api.cognitive.microsoft.com//formrecognizer/v2.0-preview/custom/models?op=summary + url: https://centraluseuap.api.cognitive.microsoft.com//formrecognizer/v2.0/custom/models?op=summary - request: body: 'b''{"source": "https://raw.githubusercontent.com/Azure/azure-sdk-for-python/master/sdk/formrecognizer/azure-ai-formrecognizer/tests/sample_forms/receipt/contoso-allinone.jpg"}''' headers: @@ -32,48 +31,46 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) method: POST - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/prebuilt/receipt/analyze?includeTextDetails=false + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/prebuilt/receipt/analyze?includeTextDetails=false response: body: string: '' headers: - apim-request-id: cd29ff2c-4ac7-4f82-b3f0-2c17b49b6d62 + apim-request-id: ceb9828a-079c-4cf7-a269-6de496f0ded9 content-length: '0' - date: Thu, 11 Jun 2020 15:43:30 GMT - operation-location: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/prebuilt/receipt/analyzeResults/cd29ff2c-4ac7-4f82-b3f0-2c17b49b6d62 + date: Fri, 10 Jul 2020 18:50:56 GMT + operation-location: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/prebuilt/receipt/analyzeResults/ceb9828a-079c-4cf7-a269-6de496f0ded9 strict-transport-security: max-age=31536000; includeSubDomains; preload x-content-type-options: nosniff - x-envoy-upstream-service-time: '1208' + x-envoy-upstream-service-time: '284' status: code: 202 message: Accepted - url: https://centraluseuap.api.cognitive.microsoft.com//formrecognizer/v2.0-preview/prebuilt/receipt/analyze?includeTextDetails=false + url: https://centraluseuap.api.cognitive.microsoft.com//formrecognizer/v2.0/prebuilt/receipt/analyze?includeTextDetails=false - request: body: null headers: Accept: - application/json User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models?op=summary + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models?op=summary response: body: - string: '{"summary": {"count": 5, "limit": 5000, "lastUpdatedDateTime": "2020-06-11T15:43:31Z"}}' + string: '{"summary": {"count": 17, "limit": 5000, "lastUpdatedDateTime": "2020-07-10T18:50:56Z"}}' headers: - apim-request-id: b34b7cda-cc3b-47e4-a981-058d7e45c89e + apim-request-id: 4d6de8c2-997f-4cab-bd70-946c41a0f447 content-type: application/json; charset=utf-8 - date: Thu, 11 Jun 2020 15:43:30 GMT + date: Fri, 10 Jul 2020 18:50:56 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '10' + x-envoy-upstream-service-time: '14' status: code: 200 message: OK - url: https://centraluseuap.api.cognitive.microsoft.com//formrecognizer/v2.0-preview/custom/models?op=summary + url: https://centraluseuap.api.cognitive.microsoft.com//formrecognizer/v2.0/custom/models?op=summary version: 1 diff --git a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_mgmt_async.test_get_model_auth_bad_key.yaml b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_mgmt_async.test_get_model_auth_bad_key.yaml index 4b296b4dc92f..1c50fb9c4c12 100644 --- a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_mgmt_async.test_get_model_auth_bad_key.yaml +++ b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_mgmt_async.test_get_model_auth_bad_key.yaml @@ -5,20 +5,24 @@ interactions: Accept: - application/json User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/xx?includeKeys=true + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/xx?includeKeys=true response: body: string: '{"error": {"code": "401", "message": "Access denied due to invalid subscription key or wrong API endpoint. Make sure to provide a valid key for an active subscription and use a correct regional API endpoint for your resource."}}' headers: - content-length: '224' - date: Thu, 11 Jun 2020 15:43:30 GMT + apim-request-id: a12e0b3f-6c50-4c03-ae68-385de9dc0a5b + content-length: '225' + content-type: application/json + date: Fri, 10 Jul 2020 18:50:56 GMT + strict-transport-security: max-age=31536000; includeSubDomains; preload + www-authenticate: AzureApiManagementKey realm="https://centraluseuap.api.cognitive.microsoft.com/formrecognizer",name="Ocp-Apim-Subscription-Key",type="header" + x-content-type-options: nosniff status: code: 401 - message: PermissionDenied - url: https://centraluseuap.api.cognitive.microsoft.com//formrecognizer/v2.0-preview/custom/models/xx?includeKeys=true + message: Access Denied + url: https://centraluseuap.api.cognitive.microsoft.com//formrecognizer/v2.0/custom/models/xx?includeKeys=true version: 1 diff --git a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_mgmt_async.test_list_model_auth_bad_key.yaml b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_mgmt_async.test_list_model_auth_bad_key.yaml index 330b7dbee0ea..8af8fbfd6a94 100644 --- a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_mgmt_async.test_list_model_auth_bad_key.yaml +++ b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_mgmt_async.test_list_model_auth_bad_key.yaml @@ -5,20 +5,24 @@ interactions: Accept: - application/json User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models?op=full + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models?op=full response: body: string: '{"error": {"code": "401", "message": "Access denied due to invalid subscription key or wrong API endpoint. Make sure to provide a valid key for an active subscription and use a correct regional API endpoint for your resource."}}' headers: - content-length: '224' - date: Thu, 11 Jun 2020 15:43:31 GMT + apim-request-id: d8b09bec-fc1d-4f43-bcbe-c168f0c928da + content-length: '225' + content-type: application/json + date: Fri, 10 Jul 2020 18:50:56 GMT + strict-transport-security: max-age=31536000; includeSubDomains; preload + www-authenticate: AzureApiManagementKey realm="https://centraluseuap.api.cognitive.microsoft.com/formrecognizer",name="Ocp-Apim-Subscription-Key",type="header" + x-content-type-options: nosniff status: code: 401 - message: PermissionDenied - url: https://centraluseuap.api.cognitive.microsoft.com//formrecognizer/v2.0-preview/custom/models?op=full + message: Access Denied + url: https://centraluseuap.api.cognitive.microsoft.com//formrecognizer/v2.0/custom/models?op=full version: 1 diff --git a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_mgmt_async.test_mgmt_model_labeled.yaml b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_mgmt_async.test_mgmt_model_labeled.yaml index 2976ddaca64b..e5f21a382536 100644 --- a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_mgmt_async.test_mgmt_model_labeled.yaml +++ b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_mgmt_async.test_mgmt_model_labeled.yaml @@ -8,38 +8,84 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) method: POST - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models response: body: string: '' headers: - apim-request-id: 7379fe72-79a3-423f-bb4a-a41a39070e19 + apim-request-id: 5ea39e93-ab95-4eb1-9139-c53fcd12db9b content-length: '0' - date: Thu, 11 Jun 2020 15:43:31 GMT - location: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/9a8a8fc0-3831-4e8c-a4c9-342fecdf2be5 + date: Fri, 10 Jul 2020 18:50:56 GMT + location: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/7c880999-864b-49a8-9832-f3dc138a2cc3 strict-transport-security: max-age=31536000; includeSubDomains; preload x-content-type-options: nosniff - x-envoy-upstream-service-time: '70' + x-envoy-upstream-service-time: '67' status: code: 201 message: Created - url: https://centraluseuap.api.cognitive.microsoft.com//formrecognizer/v2.0-preview/custom/models + url: https://centraluseuap.api.cognitive.microsoft.com//formrecognizer/v2.0/custom/models - request: body: null headers: User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/9a8a8fc0-3831-4e8c-a4c9-342fecdf2be5?includeKeys=true + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/7c880999-864b-49a8-9832-f3dc138a2cc3?includeKeys=true response: body: - string: '{"modelInfo": {"modelId": "9a8a8fc0-3831-4e8c-a4c9-342fecdf2be5", "status": - "ready", "createdDateTime": "2020-06-11T15:43:32Z", "lastUpdatedDateTime": - "2020-06-11T15:43:35Z"}, "trainResult": {"averageModelAccuracy": 0.973, "trainingDocuments": + string: '{"modelInfo": {"modelId": "7c880999-864b-49a8-9832-f3dc138a2cc3", "status": + "creating", "createdDateTime": "2020-07-10T18:50:57Z", "lastUpdatedDateTime": + "2020-07-10T18:50:57Z"}}' + headers: + apim-request-id: 9ec0cc33-5c0d-40e9-9d7f-ef776b070706 + content-type: application/json; charset=utf-8 + date: Fri, 10 Jul 2020 18:51:02 GMT + strict-transport-security: max-age=31536000; includeSubDomains; preload + transfer-encoding: chunked + x-content-type-options: nosniff + x-envoy-upstream-service-time: '56' + status: + code: 200 + message: OK + url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/7c880999-864b-49a8-9832-f3dc138a2cc3?includeKeys=true +- request: + body: null + headers: + User-Agent: + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + method: GET + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/7c880999-864b-49a8-9832-f3dc138a2cc3?includeKeys=true + response: + body: + string: '{"modelInfo": {"modelId": "7c880999-864b-49a8-9832-f3dc138a2cc3", "status": + "creating", "createdDateTime": "2020-07-10T18:50:57Z", "lastUpdatedDateTime": + "2020-07-10T18:50:57Z"}}' + headers: + apim-request-id: 51b71629-1723-48be-9517-4c03bdc29e78 + content-type: application/json; charset=utf-8 + date: Fri, 10 Jul 2020 18:51:07 GMT + strict-transport-security: max-age=31536000; includeSubDomains; preload + transfer-encoding: chunked + x-content-type-options: nosniff + x-envoy-upstream-service-time: '170' + status: + code: 200 + message: OK + url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/7c880999-864b-49a8-9832-f3dc138a2cc3?includeKeys=true +- request: + body: null + headers: + User-Agent: + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + method: GET + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/7c880999-864b-49a8-9832-f3dc138a2cc3?includeKeys=true + response: + body: + string: '{"modelInfo": {"modelId": "7c880999-864b-49a8-9832-f3dc138a2cc3", "status": + "ready", "createdDateTime": "2020-07-10T18:50:57Z", "lastUpdatedDateTime": + "2020-07-10T18:51:11Z"}, "trainResult": {"averageModelAccuracy": 0.973, "trainingDocuments": [{"documentName": "Form_1.jpg", "pages": 1, "status": "succeeded"}, {"documentName": "Form_2.jpg", "pages": 1, "status": "succeeded"}, {"documentName": "Form_3.jpg", "pages": 1, "status": "succeeded"}, {"documentName": "Form_4.jpg", "pages": @@ -55,32 +101,31 @@ interactions: "VendorName", "accuracy": 1.0}, {"fieldName": "Website", "accuracy": 1.0}], "errors": []}}' headers: - apim-request-id: 63257c3c-6f84-480d-89d8-cabff9759691 + apim-request-id: f015c2b5-db3d-4714-8b30-b54a0422763e content-type: application/json; charset=utf-8 - date: Thu, 11 Jun 2020 15:43:37 GMT + date: Fri, 10 Jul 2020 18:51:12 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '48' + x-envoy-upstream-service-time: '50' status: code: 200 message: OK - url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/9a8a8fc0-3831-4e8c-a4c9-342fecdf2be5?includeKeys=true + url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/7c880999-864b-49a8-9832-f3dc138a2cc3?includeKeys=true - request: body: null headers: Accept: - application/json User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/9a8a8fc0-3831-4e8c-a4c9-342fecdf2be5?includeKeys=true + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/7c880999-864b-49a8-9832-f3dc138a2cc3?includeKeys=true response: body: - string: '{"modelInfo": {"modelId": "9a8a8fc0-3831-4e8c-a4c9-342fecdf2be5", "status": - "ready", "createdDateTime": "2020-06-11T15:43:32Z", "lastUpdatedDateTime": - "2020-06-11T15:43:35Z"}, "trainResult": {"averageModelAccuracy": 0.973, "trainingDocuments": + string: '{"modelInfo": {"modelId": "7c880999-864b-49a8-9832-f3dc138a2cc3", "status": + "ready", "createdDateTime": "2020-07-10T18:50:57Z", "lastUpdatedDateTime": + "2020-07-10T18:51:11Z"}, "trainResult": {"averageModelAccuracy": 0.973, "trainingDocuments": [{"documentName": "Form_1.jpg", "pages": 1, "status": "succeeded"}, {"documentName": "Form_2.jpg", "pages": 1, "status": "succeeded"}, {"documentName": "Form_3.jpg", "pages": 1, "status": "succeeded"}, {"documentName": "Form_4.jpg", "pages": @@ -96,100 +141,121 @@ interactions: "VendorName", "accuracy": 1.0}, {"fieldName": "Website", "accuracy": 1.0}], "errors": []}}' headers: - apim-request-id: 9bac9a1b-f792-43b6-97fd-a47d9efad620 + apim-request-id: 21fb5c62-64ba-4a08-9eb1-5c162d1021bc content-type: application/json; charset=utf-8 - date: Thu, 11 Jun 2020 15:43:37 GMT + date: Fri, 10 Jul 2020 18:51:12 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '19' + x-envoy-upstream-service-time: '48' status: code: 200 message: OK - url: https://centraluseuap.api.cognitive.microsoft.com//formrecognizer/v2.0-preview/custom/models/9a8a8fc0-3831-4e8c-a4c9-342fecdf2be5?includeKeys=true + url: https://centraluseuap.api.cognitive.microsoft.com//formrecognizer/v2.0/custom/models/7c880999-864b-49a8-9832-f3dc138a2cc3?includeKeys=true - request: body: null headers: Accept: - application/json User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models?op=full + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models?op=full response: body: - string: '{"modelList": [{"modelId": "1db66d68-a835-4576-b0a7-9d7af5f3ac60", - "status": "ready", "createdDateTime": "2020-06-11T15:41:27Z", "lastUpdatedDateTime": - "2020-06-11T15:41:40Z"}, {"modelId": "568d0f74-05b1-4165-9b45-eed9eec9aeb0", - "status": "ready", "createdDateTime": "2020-06-11T15:41:27Z", "lastUpdatedDateTime": - "2020-06-11T15:41:40Z"}, {"modelId": "9a8a8fc0-3831-4e8c-a4c9-342fecdf2be5", - "status": "ready", "createdDateTime": "2020-06-11T15:43:32Z", "lastUpdatedDateTime": - "2020-06-11T15:43:35Z"}, {"modelId": "a81575ae-1e9f-4622-95df-2fd6e9fbacf2", - "status": "ready", "createdDateTime": "2020-06-11T15:42:03Z", "lastUpdatedDateTime": - "2020-06-11T15:42:19Z"}, {"modelId": "cc78c414-dff7-4576-be60-97b2f7edd30d", - "status": "ready", "createdDateTime": "2020-06-11T15:42:03Z", "lastUpdatedDateTime": - "2020-06-11T15:42:19Z"}, {"modelId": "d8cfc753-da9a-4e41-a915-81be141906a6", - "status": "ready", "createdDateTime": "2020-06-11T15:42:36Z", "lastUpdatedDateTime": - "2020-06-11T15:43:08Z"}], "nextLink": ""}' - headers: - apim-request-id: fbe8f8a2-1685-4880-bda7-2483d1d9eb8f + string: '{"modelList": [{"modelId": "00f7fbe5-a3c7-4e24-a871-9b9a6a450fc1", + "status": "ready", "createdDateTime": "2020-07-10T18:43:28Z", "lastUpdatedDateTime": + "2020-07-10T18:43:35Z"}, {"modelId": "30998e09-3dc8-4816-bad2-4d3318719b0c", + "status": "ready", "createdDateTime": "2020-07-10T18:43:51Z", "lastUpdatedDateTime": + "2020-07-10T18:44:08Z"}, {"modelId": "3433e426-015e-421a-b794-58fe389a707b", + "status": "ready", "createdDateTime": "2020-07-10T18:42:22Z", "lastUpdatedDateTime": + "2020-07-10T18:42:30Z"}, {"modelId": "5effb484-6d5e-4a33-b547-dc025a4f352d", + "status": "ready", "createdDateTime": "2020-07-10T18:49:25Z", "lastUpdatedDateTime": + "2020-07-10T18:49:57Z"}, {"modelId": "67f42e15-4d6e-4a01-b92d-a0cb9b0414cf", + "status": "ready", "createdDateTime": "2020-07-10T18:42:10Z", "lastUpdatedDateTime": + "2020-07-10T18:42:13Z"}, {"modelId": "68df8c7a-51dc-4124-9374-b7f966788c95", + "status": "ready", "createdDateTime": "2020-07-10T18:49:03Z", "lastUpdatedDateTime": + "2020-07-10T18:49:11Z"}, {"modelId": "6e8b70d6-2945-4b20-b97d-ef8fb4afcdf8", + "status": "ready", "createdDateTime": "2020-07-10T18:46:52Z", "lastUpdatedDateTime": + "2020-07-10T18:47:10Z"}, {"modelId": "6f4f1583-8f73-4be8-9337-ccc105f1fdff", + "status": "ready", "createdDateTime": "2020-07-10T18:46:12Z", "lastUpdatedDateTime": + "2020-07-10T18:46:22Z"}, {"modelId": "7c880999-864b-49a8-9832-f3dc138a2cc3", + "status": "ready", "createdDateTime": "2020-07-10T18:50:57Z", "lastUpdatedDateTime": + "2020-07-10T18:51:11Z"}, {"modelId": "8b51591f-21ca-41f8-abe6-4febf08b1e52", + "status": "ready", "createdDateTime": "2020-07-10T18:44:23Z", "lastUpdatedDateTime": + "2020-07-10T18:44:39Z"}, {"modelId": "9137242f-1f19-40e6-b9ec-59c0cb5c65bc", + "status": "ready", "createdDateTime": "2020-07-10T18:45:15Z", "lastUpdatedDateTime": + "2020-07-10T18:45:28Z"}, {"modelId": "98be755b-7bb2-49bc-addb-82ba80fc3007", + "status": "ready", "createdDateTime": "2020-07-10T18:42:40Z", "lastUpdatedDateTime": + "2020-07-10T18:42:43Z"}, {"modelId": "a971b699-69e3-4397-a985-b3d48cf3ca3d", + "status": "ready", "createdDateTime": "2020-07-10T18:48:45Z", "lastUpdatedDateTime": + "2020-07-10T18:48:48Z"}, {"modelId": "ac5c99f9-b31b-46db-add6-5d149c844a13", + "status": "ready", "createdDateTime": "2020-07-10T18:45:43Z", "lastUpdatedDateTime": + "2020-07-10T18:45:53Z"}, {"modelId": "d7569400-70ff-4115-9dcb-5ae3b85f6c27", + "status": "ready", "createdDateTime": "2020-07-10T18:46:33Z", "lastUpdatedDateTime": + "2020-07-10T18:46:43Z"}, {"modelId": "dbb717aa-4021-4dc1-a621-7662115dcd67", + "status": "ready", "createdDateTime": "2020-07-10T18:44:57Z", "lastUpdatedDateTime": + "2020-07-10T18:45:00Z"}, {"modelId": "e8f38257-82e1-4044-959c-6025c55088a5", + "status": "ready", "createdDateTime": "2020-07-10T18:42:58Z", "lastUpdatedDateTime": + "2020-07-10T18:42:59Z"}, {"modelId": "f4135245-a217-4d73-aafe-5b1d517012f4", + "status": "ready", "createdDateTime": "2020-07-10T18:47:29Z", "lastUpdatedDateTime": + "2020-07-10T18:47:40Z"}], "nextLink": ""}' + headers: + apim-request-id: 2424063c-817b-4c53-a99d-a0fbb5c418f7 content-type: application/json; charset=utf-8 - date: Thu, 11 Jun 2020 15:43:38 GMT + date: Fri, 10 Jul 2020 18:51:12 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '960' + x-envoy-upstream-service-time: '163' status: code: 200 message: OK - url: https://centraluseuap.api.cognitive.microsoft.com//formrecognizer/v2.0-preview/custom/models?op=full + url: https://centraluseuap.api.cognitive.microsoft.com//formrecognizer/v2.0/custom/models?op=full - request: body: null headers: User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) method: DELETE - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/9a8a8fc0-3831-4e8c-a4c9-342fecdf2be5 + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/7c880999-864b-49a8-9832-f3dc138a2cc3 response: body: string: '' headers: - apim-request-id: 530ffc7d-a594-42f8-8850-4fa0a567d2c8 + apim-request-id: 99e25f0c-1c64-48d0-bffa-961f5b756ea3 content-length: '0' - date: Thu, 11 Jun 2020 15:43:38 GMT + date: Fri, 10 Jul 2020 18:51:14 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload x-content-type-options: nosniff - x-envoy-upstream-service-time: '17' + x-envoy-upstream-service-time: '815' status: code: 204 message: No Content - url: https://centraluseuap.api.cognitive.microsoft.com//formrecognizer/v2.0-preview/custom/models/9a8a8fc0-3831-4e8c-a4c9-342fecdf2be5 + url: https://centraluseuap.api.cognitive.microsoft.com//formrecognizer/v2.0/custom/models/7c880999-864b-49a8-9832-f3dc138a2cc3 - request: body: null headers: Accept: - application/json User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/9a8a8fc0-3831-4e8c-a4c9-342fecdf2be5?includeKeys=true + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/7c880999-864b-49a8-9832-f3dc138a2cc3?includeKeys=true response: body: - string: '{"error": {"code": "1022", "message": "Model with ''id=9a8a8fc0-3831-4e8c-a4c9-342fecdf2be5'' + string: '{"error": {"code": "1022", "message": "Model with ''id=7c880999-864b-49a8-9832-f3dc138a2cc3'' not found."}}' headers: - apim-request-id: 66537576-b69d-475a-b147-e54746c9ec71 + apim-request-id: f5ac5ac0-1b9b-468d-9630-b03040136b16 content-type: application/json; charset=utf-8 - date: Thu, 11 Jun 2020 15:43:38 GMT + date: Fri, 10 Jul 2020 18:51:14 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '16' + x-envoy-upstream-service-time: '10' status: code: 404 message: Not Found - url: https://centraluseuap.api.cognitive.microsoft.com//formrecognizer/v2.0-preview/custom/models/9a8a8fc0-3831-4e8c-a4c9-342fecdf2be5?includeKeys=true + url: https://centraluseuap.api.cognitive.microsoft.com//formrecognizer/v2.0/custom/models/7c880999-864b-49a8-9832-f3dc138a2cc3?includeKeys=true version: 1 diff --git a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_mgmt_async.test_mgmt_model_unlabeled.yaml b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_mgmt_async.test_mgmt_model_unlabeled.yaml index 065f6beac277..8b43f5e92ff5 100644 --- a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_mgmt_async.test_mgmt_model_unlabeled.yaml +++ b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_mgmt_async.test_mgmt_model_unlabeled.yaml @@ -8,88 +8,108 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) method: POST - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models response: body: string: '' headers: - apim-request-id: 0287eceb-7c5c-412d-8f3b-d642a1148e80 + apim-request-id: 42930d89-bdcb-46bb-8829-c1d3f45c1d88 content-length: '0' - date: Thu, 11 Jun 2020 15:43:38 GMT - location: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/94ff5272-af0d-4742-95f2-c5d5f649df6d + date: Fri, 10 Jul 2020 18:51:17 GMT + location: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/f85cc461-0a62-4b3e-8e06-13cc0c35d0e4 strict-transport-security: max-age=31536000; includeSubDomains; preload x-content-type-options: nosniff - x-envoy-upstream-service-time: '68' + x-envoy-upstream-service-time: '2290' status: code: 201 message: Created - url: https://centraluseuap.api.cognitive.microsoft.com//formrecognizer/v2.0-preview/custom/models + url: https://centraluseuap.api.cognitive.microsoft.com//formrecognizer/v2.0/custom/models - request: body: null headers: User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/94ff5272-af0d-4742-95f2-c5d5f649df6d?includeKeys=true + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/f85cc461-0a62-4b3e-8e06-13cc0c35d0e4?includeKeys=true response: body: - string: '{"modelInfo": {"modelId": "94ff5272-af0d-4742-95f2-c5d5f649df6d", "status": - "creating", "createdDateTime": "2020-06-11T15:43:39Z", "lastUpdatedDateTime": - "2020-06-11T15:43:39Z"}}' + string: '{"modelInfo": {"modelId": "f85cc461-0a62-4b3e-8e06-13cc0c35d0e4", "status": + "creating", "createdDateTime": "2020-07-10T18:51:17Z", "lastUpdatedDateTime": + "2020-07-10T18:51:17Z"}}' headers: - apim-request-id: bf6e39a6-28b7-4153-9dc7-1276b0ea6ba6 + apim-request-id: 467aee8e-74ad-46a4-84a2-5f30fac6e3aa content-type: application/json; charset=utf-8 - date: Thu, 11 Jun 2020 15:43:43 GMT + date: Fri, 10 Jul 2020 18:51:22 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '47' + x-envoy-upstream-service-time: '21' status: code: 200 message: OK - url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/94ff5272-af0d-4742-95f2-c5d5f649df6d?includeKeys=true + url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/f85cc461-0a62-4b3e-8e06-13cc0c35d0e4?includeKeys=true - request: body: null headers: User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/94ff5272-af0d-4742-95f2-c5d5f649df6d?includeKeys=true + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/f85cc461-0a62-4b3e-8e06-13cc0c35d0e4?includeKeys=true response: body: - string: '{"modelInfo": {"modelId": "94ff5272-af0d-4742-95f2-c5d5f649df6d", "status": - "creating", "createdDateTime": "2020-06-11T15:43:39Z", "lastUpdatedDateTime": - "2020-06-11T15:43:39Z"}}' + string: '{"modelInfo": {"modelId": "f85cc461-0a62-4b3e-8e06-13cc0c35d0e4", "status": + "creating", "createdDateTime": "2020-07-10T18:51:17Z", "lastUpdatedDateTime": + "2020-07-10T18:51:17Z"}}' headers: - apim-request-id: ba00953a-a6dc-42ef-8082-f0493ad62301 + apim-request-id: fe6e14ce-f02b-4c95-bbc6-5591a609fb77 content-type: application/json; charset=utf-8 - date: Thu, 11 Jun 2020 15:43:49 GMT + date: Fri, 10 Jul 2020 18:51:27 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '47' + x-envoy-upstream-service-time: '15' status: code: 200 message: OK - url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/94ff5272-af0d-4742-95f2-c5d5f649df6d?includeKeys=true + url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/f85cc461-0a62-4b3e-8e06-13cc0c35d0e4?includeKeys=true - request: body: null headers: User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/94ff5272-af0d-4742-95f2-c5d5f649df6d?includeKeys=true + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/f85cc461-0a62-4b3e-8e06-13cc0c35d0e4?includeKeys=true response: body: - string: '{"modelInfo": {"modelId": "94ff5272-af0d-4742-95f2-c5d5f649df6d", "status": - "ready", "createdDateTime": "2020-06-11T15:43:39Z", "lastUpdatedDateTime": - "2020-06-11T15:43:51Z"}, "keys": {"clusters": {"0": ["Additional Notes:", + string: '{"modelInfo": {"modelId": "f85cc461-0a62-4b3e-8e06-13cc0c35d0e4", "status": + "creating", "createdDateTime": "2020-07-10T18:51:17Z", "lastUpdatedDateTime": + "2020-07-10T18:51:17Z"}}' + headers: + apim-request-id: 30b79ac6-97ad-4ac7-b5f3-123beecb83fc + content-type: application/json; charset=utf-8 + date: Fri, 10 Jul 2020 18:51:32 GMT + strict-transport-security: max-age=31536000; includeSubDomains; preload + transfer-encoding: chunked + x-content-type-options: nosniff + x-envoy-upstream-service-time: '49' + status: + code: 200 + message: OK + url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/f85cc461-0a62-4b3e-8e06-13cc0c35d0e4?includeKeys=true +- request: + body: null + headers: + User-Agent: + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + method: GET + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/f85cc461-0a62-4b3e-8e06-13cc0c35d0e4?includeKeys=true + response: + body: + string: '{"modelInfo": {"modelId": "f85cc461-0a62-4b3e-8e06-13cc0c35d0e4", "status": + "ready", "createdDateTime": "2020-07-10T18:51:17Z", "lastUpdatedDateTime": + "2020-07-10T18:51:34Z"}, "keys": {"clusters": {"0": ["Additional Notes:", "Address:", "Company Name:", "Company Phone:", "Dated As:", "Details", "Email:", "Hero Limited", "Name:", "Phone:", "Purchase Order", "Purchase Order #:", "Quantity", "SUBTOTAL", "Seattle, WA 93849 Phone:", "Shipped From", "Shipped @@ -101,32 +121,31 @@ interactions: 1, "errors": [], "status": "succeeded"}, {"documentName": "Form_5.jpg", "pages": 1, "errors": [], "status": "succeeded"}], "errors": []}}' headers: - apim-request-id: f4b25b00-ed0a-47ec-a08d-6d8ab47a8aee + apim-request-id: 747f676f-b036-494a-9802-33b7d99cbe35 content-type: application/json; charset=utf-8 - date: Thu, 11 Jun 2020 15:43:54 GMT + date: Fri, 10 Jul 2020 18:51:37 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '19' + x-envoy-upstream-service-time: '21' status: code: 200 message: OK - url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/94ff5272-af0d-4742-95f2-c5d5f649df6d?includeKeys=true + url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/f85cc461-0a62-4b3e-8e06-13cc0c35d0e4?includeKeys=true - request: body: null headers: Accept: - application/json User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/94ff5272-af0d-4742-95f2-c5d5f649df6d?includeKeys=true + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/f85cc461-0a62-4b3e-8e06-13cc0c35d0e4?includeKeys=true response: body: - string: '{"modelInfo": {"modelId": "94ff5272-af0d-4742-95f2-c5d5f649df6d", "status": - "ready", "createdDateTime": "2020-06-11T15:43:39Z", "lastUpdatedDateTime": - "2020-06-11T15:43:51Z"}, "keys": {"clusters": {"0": ["Additional Notes:", + string: '{"modelInfo": {"modelId": "f85cc461-0a62-4b3e-8e06-13cc0c35d0e4", "status": + "ready", "createdDateTime": "2020-07-10T18:51:17Z", "lastUpdatedDateTime": + "2020-07-10T18:51:34Z"}, "keys": {"clusters": {"0": ["Additional Notes:", "Address:", "Company Name:", "Company Phone:", "Dated As:", "Details", "Email:", "Hero Limited", "Name:", "Phone:", "Purchase Order", "Purchase Order #:", "Quantity", "SUBTOTAL", "Seattle, WA 93849 Phone:", "Shipped From", "Shipped @@ -138,100 +157,121 @@ interactions: 1, "errors": [], "status": "succeeded"}, {"documentName": "Form_5.jpg", "pages": 1, "errors": [], "status": "succeeded"}], "errors": []}}' headers: - apim-request-id: afdc5f5c-8ad6-45a4-8901-48ab67a0448d + apim-request-id: 7b363aa1-4344-4266-81a7-0cf71e1a9505 content-type: application/json; charset=utf-8 - date: Thu, 11 Jun 2020 15:43:54 GMT + date: Fri, 10 Jul 2020 18:51:37 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '19' + x-envoy-upstream-service-time: '21' status: code: 200 message: OK - url: https://centraluseuap.api.cognitive.microsoft.com//formrecognizer/v2.0-preview/custom/models/94ff5272-af0d-4742-95f2-c5d5f649df6d?includeKeys=true + url: https://centraluseuap.api.cognitive.microsoft.com//formrecognizer/v2.0/custom/models/f85cc461-0a62-4b3e-8e06-13cc0c35d0e4?includeKeys=true - request: body: null headers: Accept: - application/json User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models?op=full + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models?op=full response: body: - string: '{"modelList": [{"modelId": "1db66d68-a835-4576-b0a7-9d7af5f3ac60", - "status": "ready", "createdDateTime": "2020-06-11T15:41:27Z", "lastUpdatedDateTime": - "2020-06-11T15:41:40Z"}, {"modelId": "568d0f74-05b1-4165-9b45-eed9eec9aeb0", - "status": "ready", "createdDateTime": "2020-06-11T15:41:27Z", "lastUpdatedDateTime": - "2020-06-11T15:41:40Z"}, {"modelId": "94ff5272-af0d-4742-95f2-c5d5f649df6d", - "status": "ready", "createdDateTime": "2020-06-11T15:43:39Z", "lastUpdatedDateTime": - "2020-06-11T15:43:51Z"}, {"modelId": "a81575ae-1e9f-4622-95df-2fd6e9fbacf2", - "status": "ready", "createdDateTime": "2020-06-11T15:42:03Z", "lastUpdatedDateTime": - "2020-06-11T15:42:19Z"}, {"modelId": "cc78c414-dff7-4576-be60-97b2f7edd30d", - "status": "ready", "createdDateTime": "2020-06-11T15:42:03Z", "lastUpdatedDateTime": - "2020-06-11T15:42:19Z"}, {"modelId": "d8cfc753-da9a-4e41-a915-81be141906a6", - "status": "ready", "createdDateTime": "2020-06-11T15:42:36Z", "lastUpdatedDateTime": - "2020-06-11T15:43:08Z"}], "nextLink": ""}' - headers: - apim-request-id: f8c7b1f8-5cbc-4630-80e7-293ece44ec33 + string: '{"modelList": [{"modelId": "00f7fbe5-a3c7-4e24-a871-9b9a6a450fc1", + "status": "ready", "createdDateTime": "2020-07-10T18:43:28Z", "lastUpdatedDateTime": + "2020-07-10T18:43:35Z"}, {"modelId": "30998e09-3dc8-4816-bad2-4d3318719b0c", + "status": "ready", "createdDateTime": "2020-07-10T18:43:51Z", "lastUpdatedDateTime": + "2020-07-10T18:44:08Z"}, {"modelId": "3433e426-015e-421a-b794-58fe389a707b", + "status": "ready", "createdDateTime": "2020-07-10T18:42:22Z", "lastUpdatedDateTime": + "2020-07-10T18:42:30Z"}, {"modelId": "5effb484-6d5e-4a33-b547-dc025a4f352d", + "status": "ready", "createdDateTime": "2020-07-10T18:49:25Z", "lastUpdatedDateTime": + "2020-07-10T18:49:57Z"}, {"modelId": "67f42e15-4d6e-4a01-b92d-a0cb9b0414cf", + "status": "ready", "createdDateTime": "2020-07-10T18:42:10Z", "lastUpdatedDateTime": + "2020-07-10T18:42:13Z"}, {"modelId": "68df8c7a-51dc-4124-9374-b7f966788c95", + "status": "ready", "createdDateTime": "2020-07-10T18:49:03Z", "lastUpdatedDateTime": + "2020-07-10T18:49:11Z"}, {"modelId": "6e8b70d6-2945-4b20-b97d-ef8fb4afcdf8", + "status": "ready", "createdDateTime": "2020-07-10T18:46:52Z", "lastUpdatedDateTime": + "2020-07-10T18:47:10Z"}, {"modelId": "6f4f1583-8f73-4be8-9337-ccc105f1fdff", + "status": "ready", "createdDateTime": "2020-07-10T18:46:12Z", "lastUpdatedDateTime": + "2020-07-10T18:46:22Z"}, {"modelId": "8b51591f-21ca-41f8-abe6-4febf08b1e52", + "status": "ready", "createdDateTime": "2020-07-10T18:44:23Z", "lastUpdatedDateTime": + "2020-07-10T18:44:39Z"}, {"modelId": "9137242f-1f19-40e6-b9ec-59c0cb5c65bc", + "status": "ready", "createdDateTime": "2020-07-10T18:45:15Z", "lastUpdatedDateTime": + "2020-07-10T18:45:28Z"}, {"modelId": "98be755b-7bb2-49bc-addb-82ba80fc3007", + "status": "ready", "createdDateTime": "2020-07-10T18:42:40Z", "lastUpdatedDateTime": + "2020-07-10T18:42:43Z"}, {"modelId": "a971b699-69e3-4397-a985-b3d48cf3ca3d", + "status": "ready", "createdDateTime": "2020-07-10T18:48:45Z", "lastUpdatedDateTime": + "2020-07-10T18:48:48Z"}, {"modelId": "ac5c99f9-b31b-46db-add6-5d149c844a13", + "status": "ready", "createdDateTime": "2020-07-10T18:45:43Z", "lastUpdatedDateTime": + "2020-07-10T18:45:53Z"}, {"modelId": "d7569400-70ff-4115-9dcb-5ae3b85f6c27", + "status": "ready", "createdDateTime": "2020-07-10T18:46:33Z", "lastUpdatedDateTime": + "2020-07-10T18:46:43Z"}, {"modelId": "dbb717aa-4021-4dc1-a621-7662115dcd67", + "status": "ready", "createdDateTime": "2020-07-10T18:44:57Z", "lastUpdatedDateTime": + "2020-07-10T18:45:00Z"}, {"modelId": "e8f38257-82e1-4044-959c-6025c55088a5", + "status": "ready", "createdDateTime": "2020-07-10T18:42:58Z", "lastUpdatedDateTime": + "2020-07-10T18:42:59Z"}, {"modelId": "f4135245-a217-4d73-aafe-5b1d517012f4", + "status": "ready", "createdDateTime": "2020-07-10T18:47:29Z", "lastUpdatedDateTime": + "2020-07-10T18:47:40Z"}, {"modelId": "f85cc461-0a62-4b3e-8e06-13cc0c35d0e4", + "status": "ready", "createdDateTime": "2020-07-10T18:51:17Z", "lastUpdatedDateTime": + "2020-07-10T18:51:34Z"}], "nextLink": ""}' + headers: + apim-request-id: 76ca1391-3bf3-4b3f-90c7-e04faa2a2cd4 content-type: application/json; charset=utf-8 - date: Thu, 11 Jun 2020 15:43:54 GMT + date: Fri, 10 Jul 2020 18:51:37 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '65' + x-envoy-upstream-service-time: '117' status: code: 200 message: OK - url: https://centraluseuap.api.cognitive.microsoft.com//formrecognizer/v2.0-preview/custom/models?op=full + url: https://centraluseuap.api.cognitive.microsoft.com//formrecognizer/v2.0/custom/models?op=full - request: body: null headers: User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) method: DELETE - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/94ff5272-af0d-4742-95f2-c5d5f649df6d + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/f85cc461-0a62-4b3e-8e06-13cc0c35d0e4 response: body: string: '' headers: - apim-request-id: 7fd509fc-05e3-4129-b2bb-d0c6b26fdba7 + apim-request-id: 4e4ce093-27c8-4bd7-b839-3b53f672d82e content-length: '0' - date: Thu, 11 Jun 2020 15:43:54 GMT + date: Fri, 10 Jul 2020 18:51:37 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload x-content-type-options: nosniff - x-envoy-upstream-service-time: '37' + x-envoy-upstream-service-time: '19' status: code: 204 message: No Content - url: https://centraluseuap.api.cognitive.microsoft.com//formrecognizer/v2.0-preview/custom/models/94ff5272-af0d-4742-95f2-c5d5f649df6d + url: https://centraluseuap.api.cognitive.microsoft.com//formrecognizer/v2.0/custom/models/f85cc461-0a62-4b3e-8e06-13cc0c35d0e4 - request: body: null headers: Accept: - application/json User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/94ff5272-af0d-4742-95f2-c5d5f649df6d?includeKeys=true + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/f85cc461-0a62-4b3e-8e06-13cc0c35d0e4?includeKeys=true response: body: - string: '{"error": {"code": "1022", "message": "Model with ''id=94ff5272-af0d-4742-95f2-c5d5f649df6d'' + string: '{"error": {"code": "1022", "message": "Model with ''id=f85cc461-0a62-4b3e-8e06-13cc0c35d0e4'' not found."}}' headers: - apim-request-id: d6d3952d-2501-4a48-9c61-2f40c2096ad0 + apim-request-id: 12a867a3-5466-435c-a389-88b9051b9bfc content-type: application/json; charset=utf-8 - date: Thu, 11 Jun 2020 15:43:54 GMT + date: Fri, 10 Jul 2020 18:51:38 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '16' + x-envoy-upstream-service-time: '12' status: code: 404 message: Not Found - url: https://centraluseuap.api.cognitive.microsoft.com//formrecognizer/v2.0-preview/custom/models/94ff5272-af0d-4742-95f2-c5d5f649df6d?includeKeys=true + url: https://centraluseuap.api.cognitive.microsoft.com//formrecognizer/v2.0/custom/models/f85cc461-0a62-4b3e-8e06-13cc0c35d0e4?includeKeys=true version: 1 diff --git a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_receipt.test_authentication_bad_key.yaml b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_receipt.test_authentication_bad_key.yaml index 48920219e9de..c05b804e9c3c 100644 --- a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_receipt.test_authentication_bad_key.yaml +++ b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_receipt.test_authentication_bad_key.yaml @@ -13,21 +13,30 @@ interactions: Content-Type: - image/jpeg User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) method: POST - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/prebuilt/receipt/analyze?includeTextDetails=false + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/prebuilt/receipt/analyze?includeTextDetails=false response: body: string: '{"error": {"code": "401", "message": "Access denied due to invalid subscription key or wrong API endpoint. Make sure to provide a valid key for an active subscription and use a correct regional API endpoint for your resource."}}' headers: + apim-request-id: + - 5c40d705-5aad-4b33-bdd4-1b333217a074 content-length: - - '224' + - '225' + content-type: + - application/json date: - - Thu, 11 Jun 2020 15:43:55 GMT + - Fri, 10 Jul 2020 18:51:38 GMT + strict-transport-security: + - max-age=31536000; includeSubDomains; preload + www-authenticate: + - AzureApiManagementKey realm="https://centraluseuap.api.cognitive.microsoft.com/formrecognizer",name="Ocp-Apim-Subscription-Key",type="header" + x-content-type-options: + - nosniff status: code: 401 - message: PermissionDenied + message: Access Denied version: 1 diff --git a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_receipt.test_authentication_successful_key.yaml b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_receipt.test_authentication_successful_key.yaml index 9bc2ea2e2052..9fa247ae482b 100644 --- a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_receipt.test_authentication_successful_key.yaml +++ b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_receipt.test_authentication_successful_key.yaml @@ -2724,28 +2724,27 @@ interactions: Content-Type: - image/jpeg User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) method: POST - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/prebuilt/receipt/analyze?includeTextDetails=false + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/prebuilt/receipt/analyze?includeTextDetails=false response: body: string: '' headers: apim-request-id: - - d10b6b64-5c34-499c-b89c-7bf8aceb64e3 + - e0982aaf-9092-4e5b-9e65-1f30256aff8b content-length: - '0' date: - - Thu, 11 Jun 2020 15:43:55 GMT + - Fri, 10 Jul 2020 18:51:39 GMT operation-location: - - https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/prebuilt/receipt/analyzeResults/d10b6b64-5c34-499c-b89c-7bf8aceb64e3 + - https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/prebuilt/receipt/analyzeResults/e0982aaf-9092-4e5b-9e65-1f30256aff8b strict-transport-security: - max-age=31536000; includeSubDomains; preload x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '242' + - '212' status: code: 202 message: Accepted @@ -2759,14 +2758,13 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/prebuilt/receipt/analyzeResults/d10b6b64-5c34-499c-b89c-7bf8aceb64e3 + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/prebuilt/receipt/analyzeResults/e0982aaf-9092-4e5b-9e65-1f30256aff8b response: body: - string: '{"status": "succeeded", "createdDateTime": "2020-06-11T15:43:56Z", - "lastUpdatedDateTime": "2020-06-11T15:43:58Z", "analyzeResult": {"version": + string: '{"status": "succeeded", "createdDateTime": "2020-07-10T18:51:39Z", + "lastUpdatedDateTime": "2020-07-10T18:51:41Z", "analyzeResult": {"version": "2.0.0", "readResults": [{"page": 1, "angle": 0.6893, "width": 1688, "height": 3000, "unit": "pixel", "language": "en"}], "documentResults": [{"docType": "prebuilt:receipt", "pageRange": [1, 1], "fields": {"ReceiptType": {"type": @@ -2809,11 +2807,11 @@ interactions: "page": 1, "confidence": 0.985}}}]}}' headers: apim-request-id: - - 56f119c1-0872-4d4b-bd99-b4d2d470700d + - 62c8839c-e8fc-4f33-969e-8bdc00807a13 content-type: - application/json; charset=utf-8 date: - - Thu, 11 Jun 2020 15:44:01 GMT + - Fri, 10 Jul 2020 18:51:44 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -2821,7 +2819,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '14' + - '25' status: code: 200 message: OK diff --git a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_receipt.test_blank_page.yaml b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_receipt.test_blank_page.yaml index 88df9b287f1d..34a6ceba54e0 100644 --- a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_receipt.test_blank_page.yaml +++ b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_receipt.test_blank_page.yaml @@ -464,28 +464,27 @@ interactions: Content-Type: - application/pdf User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) method: POST - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/prebuilt/receipt/analyze?includeTextDetails=false + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/prebuilt/receipt/analyze?includeTextDetails=false response: body: string: '' headers: apim-request-id: - - abccbb25-34fc-4218-b6f8-828b3f4907d5 + - d53a918f-1ec0-4ed2-b5f2-6cf3acf34997 content-length: - '0' date: - - Thu, 11 Jun 2020 15:43:50 GMT + - Fri, 10 Jul 2020 18:53:00 GMT operation-location: - - https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/prebuilt/receipt/analyzeResults/abccbb25-34fc-4218-b6f8-828b3f4907d5 + - https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/prebuilt/receipt/analyzeResults/d53a918f-1ec0-4ed2-b5f2-6cf3acf34997 strict-transport-security: - max-age=31536000; includeSubDomains; preload x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '61' + - '93' status: code: 202 message: Accepted @@ -499,24 +498,23 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/prebuilt/receipt/analyzeResults/abccbb25-34fc-4218-b6f8-828b3f4907d5 + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/prebuilt/receipt/analyzeResults/d53a918f-1ec0-4ed2-b5f2-6cf3acf34997 response: body: - string: '{"status": "succeeded", "createdDateTime": "2020-06-11T15:43:50Z", - "lastUpdatedDateTime": "2020-06-11T15:43:53Z", "analyzeResult": {"version": + string: '{"status": "succeeded", "createdDateTime": "2020-07-10T18:53:01Z", + "lastUpdatedDateTime": "2020-07-10T18:53:03Z", "analyzeResult": {"version": "2.0.0", "readResults": [{"page": 1, "angle": 0, "width": 8.4967, "height": 10.9967, "unit": "inch", "language": "en"}], "documentResults": [{"docType": "prebuilt:receipt", "pageRange": [1, 1], "fields": {}}]}}' headers: apim-request-id: - - b7252667-7ac2-4daa-840c-70f54c40a131 + - b6d9bd8e-d2a2-45ea-b518-4397d4bef208 content-type: - application/json; charset=utf-8 date: - - Thu, 11 Jun 2020 15:43:55 GMT + - Fri, 10 Jul 2020 18:53:06 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -524,7 +522,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '14' + - '16' status: code: 200 message: OK diff --git a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_receipt.test_damaged_file_passed_as_bytes.yaml b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_receipt.test_damaged_file_passed_as_bytes.yaml index 2a2b71140c5a..55366bbf8816 100644 --- a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_receipt.test_damaged_file_passed_as_bytes.yaml +++ b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_receipt.test_damaged_file_passed_as_bytes.yaml @@ -13,21 +13,20 @@ interactions: Content-Type: - application/pdf User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) method: POST - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/prebuilt/receipt/analyze?includeTextDetails=false + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/prebuilt/receipt/analyze?includeTextDetails=false response: body: - string: '{"error": {"code": "BadArgument", "innerError": {"requestId": "dae94e29-fb32-4f04-911c-50a3ac022c0e"}, + string: '{"error": {"code": "BadArgument", "innerError": {"requestId": "03863542-a369-404b-8bf1-2307c3562461"}, "message": "Bad or unrecognizable request JSON or binary file."}}' headers: apim-request-id: - - dae94e29-fb32-4f04-911c-50a3ac022c0e + - 03863542-a369-404b-8bf1-2307c3562461 content-type: - application/json; charset=utf-8 date: - - Thu, 11 Jun 2020 15:43:39 GMT + - Fri, 10 Jul 2020 18:53:06 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -35,7 +34,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '39' + - '6' status: code: 400 message: Bad Request diff --git a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_receipt.test_damaged_file_passed_as_bytes_io.yaml b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_receipt.test_damaged_file_passed_as_bytes_io.yaml index f6aeed244e95..32edf37ba6d2 100644 --- a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_receipt.test_damaged_file_passed_as_bytes_io.yaml +++ b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_receipt.test_damaged_file_passed_as_bytes_io.yaml @@ -18,21 +18,20 @@ interactions: Content-Type: - application/pdf User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) method: POST - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/prebuilt/receipt/analyze?includeTextDetails=false + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/prebuilt/receipt/analyze?includeTextDetails=false response: body: - string: '{"error": {"code": "BadArgument", "innerError": {"requestId": "1e155ca1-beee-4b80-986b-ef0ee27633ae"}, + string: '{"error": {"code": "BadArgument", "innerError": {"requestId": "3f99b361-d1a3-4b32-a99f-3e72f6c0855a"}, "message": "Bad or unrecognizable request JSON or binary file."}}' headers: apim-request-id: - - 1e155ca1-beee-4b80-986b-ef0ee27633ae + - 3f99b361-d1a3-4b32-a99f-3e72f6c0855a content-type: - application/json; charset=utf-8 date: - - Thu, 11 Jun 2020 15:43:40 GMT + - Fri, 10 Jul 2020 18:53:07 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -40,7 +39,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '38' + - '6' status: code: 400 message: Bad Request diff --git a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_receipt.test_passing_enum_content_type.yaml b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_receipt.test_passing_enum_content_type.yaml index a23a9a72c2ec..2f0ede895a11 100644 --- a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_receipt.test_passing_enum_content_type.yaml +++ b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_receipt.test_passing_enum_content_type.yaml @@ -31798,28 +31798,27 @@ interactions: Content-Type: - image/png User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) method: POST - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/prebuilt/receipt/analyze?includeTextDetails=false + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/prebuilt/receipt/analyze?includeTextDetails=false response: body: string: '' headers: apim-request-id: - - 80cfbdad-af20-49d6-b31f-d3e06bbdd7b3 + - 2b2b880e-6f32-4181-8978-ecc00cd8b4cf content-length: - '0' date: - - Thu, 11 Jun 2020 15:43:44 GMT + - Fri, 10 Jul 2020 18:53:11 GMT operation-location: - - https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/prebuilt/receipt/analyzeResults/80cfbdad-af20-49d6-b31f-d3e06bbdd7b3 + - https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/prebuilt/receipt/analyzeResults/2b2b880e-6f32-4181-8978-ecc00cd8b4cf strict-transport-security: - max-age=31536000; includeSubDomains; preload x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '672' + - '673' status: code: 202 message: Accepted @@ -31833,14 +31832,13 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/prebuilt/receipt/analyzeResults/80cfbdad-af20-49d6-b31f-d3e06bbdd7b3 + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/prebuilt/receipt/analyzeResults/2b2b880e-6f32-4181-8978-ecc00cd8b4cf response: body: - string: '{"status": "succeeded", "createdDateTime": "2020-06-11T15:43:44Z", - "lastUpdatedDateTime": "2020-06-11T15:43:47Z", "analyzeResult": {"version": + string: '{"status": "succeeded", "createdDateTime": "2020-07-10T18:53:11Z", + "lastUpdatedDateTime": "2020-07-10T18:53:12Z", "analyzeResult": {"version": "2.0.0", "readResults": [{"page": 1, "angle": 0.2511, "width": 1688, "height": 3000, "unit": "pixel", "language": "en"}], "documentResults": [{"docType": "prebuilt:receipt", "pageRange": [1, 1], "fields": {"ReceiptType": {"type": @@ -31857,7 +31855,7 @@ interactions: 1223.5, 506, 1224, 505.8, 1289, 303, 1288.5], "page": 1, "confidence": 0.985}, "TransactionTime": {"type": "time", "valueTime": "13:59:00", "text": "13:59", "boundingBox": [518, 1225, 628.1, 1227, 627, 1291, 516.8, 1289], "page": 1, - "confidence": 0.97}, "Items": {"type": "array", "valueArray": [{"type": "object", + "confidence": 0.968}, "Items": {"type": "array", "valueArray": [{"type": "object", "valueObject": {"Name": {"type": "string", "valueString": "8GB RAM (Black)", "text": "8GB RAM (Black)", "boundingBox": [370.7, 1781.5, 731, 1785, 730.3, 1854, 370, 1850.6], "page": 1, "confidence": 0.916}, "TotalPrice": {"type": @@ -31879,11 +31877,11 @@ interactions: 2678.1, 948.2, 2661], "page": 1, "confidence": 0.774}}}]}}' headers: apim-request-id: - - fdf76957-b800-4b84-a93d-5b47e7d855dc + - a32f8c66-4d67-4561-82c2-1c862f440e11 content-type: - application/json; charset=utf-8 date: - - Thu, 11 Jun 2020 15:43:50 GMT + - Fri, 10 Jul 2020 18:53:16 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -31891,7 +31889,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '14' + - '15' status: code: 200 message: OK diff --git a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_receipt.test_receipt_jpg.yaml b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_receipt.test_receipt_jpg.yaml index c47688aad689..8de4b8fff680 100644 --- a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_receipt.test_receipt_jpg.yaml +++ b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_receipt.test_receipt_jpg.yaml @@ -2724,28 +2724,27 @@ interactions: Content-Type: - image/jpeg User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) method: POST - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/prebuilt/receipt/analyze?includeTextDetails=false + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/prebuilt/receipt/analyze?includeTextDetails=false response: body: string: '' headers: apim-request-id: - - 8e95a24e-9927-4e3d-8210-3a87b653e43d + - 5de5e1dd-81d8-4693-8c65-c07fe199992a content-length: - '0' date: - - Thu, 11 Jun 2020 15:43:46 GMT + - Fri, 10 Jul 2020 18:51:46 GMT operation-location: - - https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/prebuilt/receipt/analyzeResults/8e95a24e-9927-4e3d-8210-3a87b653e43d + - https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/prebuilt/receipt/analyzeResults/5de5e1dd-81d8-4693-8c65-c07fe199992a strict-transport-security: - max-age=31536000; includeSubDomains; preload x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '137' + - '193' status: code: 202 message: Accepted @@ -2759,14 +2758,13 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/prebuilt/receipt/analyzeResults/8e95a24e-9927-4e3d-8210-3a87b653e43d + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/prebuilt/receipt/analyzeResults/5de5e1dd-81d8-4693-8c65-c07fe199992a response: body: - string: '{"status": "succeeded", "createdDateTime": "2020-06-11T15:43:47Z", - "lastUpdatedDateTime": "2020-06-11T15:43:49Z", "analyzeResult": {"version": + string: '{"status": "succeeded", "createdDateTime": "2020-07-10T18:51:46Z", + "lastUpdatedDateTime": "2020-07-10T18:51:48Z", "analyzeResult": {"version": "2.0.0", "readResults": [{"page": 1, "angle": 0.6893, "width": 1688, "height": 3000, "unit": "pixel", "language": "en"}], "documentResults": [{"docType": "prebuilt:receipt", "pageRange": [1, 1], "fields": {"ReceiptType": {"type": @@ -2809,11 +2807,11 @@ interactions: "page": 1, "confidence": 0.985}}}]}}' headers: apim-request-id: - - 688bddd5-70d4-4f2a-9f0e-a304d40a8c92 + - ccb4be8b-5cce-45c8-98f6-7669d59cb441 content-type: - application/json; charset=utf-8 date: - - Thu, 11 Jun 2020 15:43:52 GMT + - Fri, 10 Jul 2020 18:51:51 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -2821,7 +2819,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '12' + - '15' status: code: 200 message: OK diff --git a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_receipt.test_receipt_jpg_include_field_elements.yaml b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_receipt.test_receipt_jpg_include_field_elements.yaml index 388a5084adb6..daf09def5b56 100644 --- a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_receipt.test_receipt_jpg_include_field_elements.yaml +++ b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_receipt.test_receipt_jpg_include_field_elements.yaml @@ -2724,28 +2724,27 @@ interactions: Content-Type: - image/jpeg User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) method: POST - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/prebuilt/receipt/analyze?includeTextDetails=true + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/prebuilt/receipt/analyze?includeTextDetails=true response: body: string: '' headers: apim-request-id: - - 60046e81-5dfa-4abc-912b-cbe2b18ccc70 + - 520dea80-12eb-4e6e-b59b-07b9d5e911a4 content-length: - '0' date: - - Thu, 11 Jun 2020 15:43:51 GMT + - Fri, 10 Jul 2020 18:51:52 GMT operation-location: - - https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/prebuilt/receipt/analyzeResults/60046e81-5dfa-4abc-912b-cbe2b18ccc70 + - https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/prebuilt/receipt/analyzeResults/520dea80-12eb-4e6e-b59b-07b9d5e911a4 strict-transport-security: - max-age=31536000; includeSubDomains; preload x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '150' + - '178' status: code: 202 message: Accepted @@ -2759,14 +2758,13 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/prebuilt/receipt/analyzeResults/60046e81-5dfa-4abc-912b-cbe2b18ccc70 + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/prebuilt/receipt/analyzeResults/520dea80-12eb-4e6e-b59b-07b9d5e911a4 response: body: - string: '{"status": "succeeded", "createdDateTime": "2020-06-11T15:43:51Z", - "lastUpdatedDateTime": "2020-06-11T15:43:53Z", "analyzeResult": {"version": + string: '{"status": "succeeded", "createdDateTime": "2020-07-10T18:51:52Z", + "lastUpdatedDateTime": "2020-07-10T18:51:53Z", "analyzeResult": {"version": "2.0.0", "readResults": [{"page": 1, "angle": 0.6893, "width": 1688, "height": 3000, "unit": "pixel", "language": "en", "lines": [{"text": "Contoso", "boundingBox": [635, 510, 1086, 461, 1098, 558, 643, 604], "words": [{"text": "Contoso", @@ -2889,11 +2887,11 @@ interactions: 0.985, "elements": ["#/readResults/0/lines/19/words/0"]}}}]}}' headers: apim-request-id: - - 178b3f6a-6607-4777-9b4f-f3524af50bcb + - de8ca468-e6f8-461a-bef2-bd527b14ce6f content-type: - application/json; charset=utf-8 date: - - Thu, 11 Jun 2020 15:43:56 GMT + - Fri, 10 Jul 2020 18:51:57 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -2901,7 +2899,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '16' + - '15' status: code: 200 message: OK diff --git a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_receipt.test_receipt_multipage.yaml b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_receipt.test_receipt_multipage.yaml index 53b88a8417c1..842407bbce24 100644 --- a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_receipt.test_receipt_multipage.yaml +++ b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_receipt.test_receipt_multipage.yaml @@ -1925,28 +1925,27 @@ interactions: Content-Type: - application/pdf User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) method: POST - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/prebuilt/receipt/analyze?includeTextDetails=true + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/prebuilt/receipt/analyze?includeTextDetails=true response: body: string: '' headers: apim-request-id: - - bcdc855a-a3a7-4163-bca2-50a7a172252b + - cfa17093-fd43-4b53-a8aa-36d07ec099f4 content-length: - '0' date: - - Thu, 11 Jun 2020 15:43:57 GMT + - Fri, 10 Jul 2020 18:51:58 GMT operation-location: - - https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/prebuilt/receipt/analyzeResults/bcdc855a-a3a7-4163-bca2-50a7a172252b + - https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/prebuilt/receipt/analyzeResults/cfa17093-fd43-4b53-a8aa-36d07ec099f4 strict-transport-security: - max-age=31536000; includeSubDomains; preload x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '107' + - '327' status: code: 202 message: Accepted @@ -1960,14 +1959,13 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/prebuilt/receipt/analyzeResults/bcdc855a-a3a7-4163-bca2-50a7a172252b + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/prebuilt/receipt/analyzeResults/cfa17093-fd43-4b53-a8aa-36d07ec099f4 response: body: - string: '{"status": "succeeded", "createdDateTime": "2020-06-11T15:43:57Z", - "lastUpdatedDateTime": "2020-06-11T15:44:00Z", "analyzeResult": {"version": + string: '{"status": "succeeded", "createdDateTime": "2020-07-10T18:51:58Z", + "lastUpdatedDateTime": "2020-07-10T18:52:01Z", "analyzeResult": {"version": "2.0.0", "readResults": [{"page": 1, "angle": 0, "width": 8.5, "height": 11, "unit": "inch", "language": "en", "lines": [{"text": "Company A Invoice", "boundingBox": [0.8861, 1.1217, 2.3783, 1.1217, 2.3783, 1.2812, 0.8861, 1.2812], @@ -2325,11 +2323,11 @@ interactions: "confidence": 0.985, "elements": ["#/readResults/2/lines/36/words/1"]}}}]}}' headers: apim-request-id: - - 9feb4682-3391-48ea-85a3-1b0f9a8d1868 + - 27257c21-7e16-4650-874e-6fa571b12297 content-type: - application/json; charset=utf-8 date: - - Thu, 11 Jun 2020 15:44:01 GMT + - Fri, 10 Jul 2020 18:52:03 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -2337,7 +2335,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '23' + - '24' status: code: 200 message: OK diff --git a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_receipt.test_receipt_multipage_transform.yaml b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_receipt.test_receipt_multipage_transform.yaml index eb2f82f2f76f..7aa3119ab8b3 100644 --- a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_receipt.test_receipt_multipage_transform.yaml +++ b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_receipt.test_receipt_multipage_transform.yaml @@ -1925,28 +1925,27 @@ interactions: Content-Type: - application/pdf User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) method: POST - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/prebuilt/receipt/analyze?includeTextDetails=true + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/prebuilt/receipt/analyze?includeTextDetails=true response: body: string: '' headers: apim-request-id: - - 9775be8b-3072-479c-9705-1b0c43af7524 + - 8429fd51-3efd-4def-82f4-f7276f06627e content-length: - '0' date: - - Thu, 11 Jun 2020 15:56:22 GMT + - Fri, 10 Jul 2020 18:52:04 GMT operation-location: - - https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/prebuilt/receipt/analyzeResults/9775be8b-3072-479c-9705-1b0c43af7524 + - https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/prebuilt/receipt/analyzeResults/8429fd51-3efd-4def-82f4-f7276f06627e strict-transport-security: - max-age=31536000; includeSubDomains; preload x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '117' + - '155' status: code: 202 message: Accepted @@ -1960,14 +1959,13 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/prebuilt/receipt/analyzeResults/9775be8b-3072-479c-9705-1b0c43af7524 + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/prebuilt/receipt/analyzeResults/8429fd51-3efd-4def-82f4-f7276f06627e response: body: - string: '{"status": "succeeded", "createdDateTime": "2020-06-11T15:56:22Z", - "lastUpdatedDateTime": "2020-06-11T15:56:27Z", "analyzeResult": {"version": + string: '{"status": "succeeded", "createdDateTime": "2020-07-10T18:52:04Z", + "lastUpdatedDateTime": "2020-07-10T18:52:07Z", "analyzeResult": {"version": "2.0.0", "readResults": [{"page": 1, "angle": 0, "width": 8.5, "height": 11, "unit": "inch", "language": "en", "lines": [{"text": "Company A Invoice", "boundingBox": [0.8861, 1.1217, 2.3783, 1.1217, 2.3783, 1.2812, 0.8861, 1.2812], @@ -2325,11 +2323,11 @@ interactions: "confidence": 0.985, "elements": ["#/readResults/2/lines/36/words/1"]}}}]}}' headers: apim-request-id: - - 0dffce43-b55a-43d5-b2ba-88834e806410 + - 3ad10e68-0211-4c6a-a0cf-86c0ce3968b0 content-type: - application/json; charset=utf-8 date: - - Thu, 11 Jun 2020 15:56:26 GMT + - Fri, 10 Jul 2020 18:52:08 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -2337,7 +2335,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '28' + - '20' status: code: 200 message: OK diff --git a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_receipt.test_receipt_png.yaml b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_receipt.test_receipt_png.yaml index 9c6022ec97f9..24c93714027e 100644 --- a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_receipt.test_receipt_png.yaml +++ b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_receipt.test_receipt_png.yaml @@ -31802,28 +31802,27 @@ interactions: Content-Type: - image/png User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) method: POST - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/prebuilt/receipt/analyze?includeTextDetails=false + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/prebuilt/receipt/analyze?includeTextDetails=false response: body: string: '' headers: apim-request-id: - - b1f88538-9624-4fe4-8a2d-3a5cef18be78 + - 054d8378-4f1e-46cb-89b2-c7d6be23381e content-length: - '0' date: - - Thu, 11 Jun 2020 15:44:39 GMT + - Fri, 10 Jul 2020 18:52:13 GMT operation-location: - - https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/prebuilt/receipt/analyzeResults/b1f88538-9624-4fe4-8a2d-3a5cef18be78 + - https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/prebuilt/receipt/analyzeResults/054d8378-4f1e-46cb-89b2-c7d6be23381e strict-transport-security: - max-age=31536000; includeSubDomains; preload x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '569' + - '650' status: code: 202 message: Accepted @@ -31837,14 +31836,13 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/prebuilt/receipt/analyzeResults/b1f88538-9624-4fe4-8a2d-3a5cef18be78 + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/prebuilt/receipt/analyzeResults/054d8378-4f1e-46cb-89b2-c7d6be23381e response: body: - string: '{"status": "succeeded", "createdDateTime": "2020-06-11T15:44:40Z", - "lastUpdatedDateTime": "2020-06-11T15:44:41Z", "analyzeResult": {"version": + string: '{"status": "succeeded", "createdDateTime": "2020-07-10T18:52:13Z", + "lastUpdatedDateTime": "2020-07-10T18:52:16Z", "analyzeResult": {"version": "2.0.0", "readResults": [{"page": 1, "angle": 0.2511, "width": 1688, "height": 3000, "unit": "pixel", "language": "en"}], "documentResults": [{"docType": "prebuilt:receipt", "pageRange": [1, 1], "fields": {"ReceiptType": {"type": @@ -31883,11 +31881,11 @@ interactions: 2678.1, 948.2, 2661], "page": 1, "confidence": 0.774}}}]}}' headers: apim-request-id: - - e8ed15ff-efda-4c4b-8ed9-c28981b815e3 + - dc72b8be-9946-4955-8032-50aa04d21a80 content-type: - application/json; charset=utf-8 date: - - Thu, 11 Jun 2020 15:44:45 GMT + - Fri, 10 Jul 2020 18:52:18 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -31895,7 +31893,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '13' + - '18' status: code: 200 message: OK diff --git a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_receipt.test_receipt_stream_transform_jpg.yaml b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_receipt.test_receipt_stream_transform_jpg.yaml index 929eabd701bd..03adf15cfcc5 100644 --- a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_receipt.test_receipt_stream_transform_jpg.yaml +++ b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_receipt.test_receipt_stream_transform_jpg.yaml @@ -2724,28 +2724,27 @@ interactions: Content-Type: - image/jpeg User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) method: POST - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/prebuilt/receipt/analyze?includeTextDetails=true + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/prebuilt/receipt/analyze?includeTextDetails=true response: body: string: '' headers: apim-request-id: - - f4a4999e-9a72-4bb0-8180-705bf66494c8 + - 36935844-1e42-4d5b-a087-044596eb1fd5 content-length: - '0' date: - - Thu, 11 Jun 2020 15:44:46 GMT + - Fri, 10 Jul 2020 18:52:19 GMT operation-location: - - https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/prebuilt/receipt/analyzeResults/f4a4999e-9a72-4bb0-8180-705bf66494c8 + - https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/prebuilt/receipt/analyzeResults/36935844-1e42-4d5b-a087-044596eb1fd5 strict-transport-security: - max-age=31536000; includeSubDomains; preload x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '132' + - '173' status: code: 202 message: Accepted @@ -2759,14 +2758,13 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/prebuilt/receipt/analyzeResults/f4a4999e-9a72-4bb0-8180-705bf66494c8 + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/prebuilt/receipt/analyzeResults/36935844-1e42-4d5b-a087-044596eb1fd5 response: body: - string: '{"status": "succeeded", "createdDateTime": "2020-06-11T15:44:46Z", - "lastUpdatedDateTime": "2020-06-11T15:44:47Z", "analyzeResult": {"version": + string: '{"status": "succeeded", "createdDateTime": "2020-07-10T18:52:20Z", + "lastUpdatedDateTime": "2020-07-10T18:52:21Z", "analyzeResult": {"version": "2.0.0", "readResults": [{"page": 1, "angle": 0.6893, "width": 1688, "height": 3000, "unit": "pixel", "language": "en", "lines": [{"text": "Contoso", "boundingBox": [635, 510, 1086, 461, 1098, 558, 643, 604], "words": [{"text": "Contoso", @@ -2889,11 +2887,11 @@ interactions: 0.985, "elements": ["#/readResults/0/lines/19/words/0"]}}}]}}' headers: apim-request-id: - - 0e94686a-0cdc-49bd-800c-4836ab08bb0e + - 2bb483ee-6898-480a-ba86-ca6a71d486b8 content-type: - application/json; charset=utf-8 date: - - Thu, 11 Jun 2020 15:44:50 GMT + - Fri, 10 Jul 2020 18:52:24 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -2901,7 +2899,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '15' + - '16' status: code: 200 message: OK diff --git a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_receipt.test_receipt_stream_transform_png.yaml b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_receipt.test_receipt_stream_transform_png.yaml index 6d1208ec2f57..24c02136c880 100644 --- a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_receipt.test_receipt_stream_transform_png.yaml +++ b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_receipt.test_receipt_stream_transform_png.yaml @@ -31798,28 +31798,27 @@ interactions: Content-Type: - image/png User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) method: POST - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/prebuilt/receipt/analyze?includeTextDetails=true + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/prebuilt/receipt/analyze?includeTextDetails=true response: body: string: '' headers: apim-request-id: - - 5b3d912e-88ca-49db-92f5-384f0307ccac + - bf5d4066-01cc-427e-a155-58e2237d717b content-length: - '0' date: - - Thu, 11 Jun 2020 15:44:54 GMT + - Fri, 10 Jul 2020 18:52:29 GMT operation-location: - - https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/prebuilt/receipt/analyzeResults/5b3d912e-88ca-49db-92f5-384f0307ccac + - https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/prebuilt/receipt/analyzeResults/bf5d4066-01cc-427e-a155-58e2237d717b strict-transport-security: - max-age=31536000; includeSubDomains; preload x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '537' + - '596' status: code: 202 message: Accepted @@ -31833,14 +31832,13 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/prebuilt/receipt/analyzeResults/5b3d912e-88ca-49db-92f5-384f0307ccac + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/prebuilt/receipt/analyzeResults/bf5d4066-01cc-427e-a155-58e2237d717b response: body: - string: '{"status": "succeeded", "createdDateTime": "2020-06-11T15:44:55Z", - "lastUpdatedDateTime": "2020-06-11T15:44:57Z", "analyzeResult": {"version": + string: '{"status": "succeeded", "createdDateTime": "2020-07-10T18:52:29Z", + "lastUpdatedDateTime": "2020-07-10T18:52:32Z", "analyzeResult": {"version": "2.0.0", "readResults": [{"page": 1, "angle": 0.2511, "width": 1688, "height": 3000, "unit": "pixel", "language": "en", "lines": [{"text": "Contoso", "boundingBox": [619, 291, 1051, 284, 1053, 384, 620, 396], "words": [{"text": "Contoso", @@ -31967,11 +31965,11 @@ interactions: 0.774, "elements": ["#/readResults/0/lines/18/words/1"]}}}]}}' headers: apim-request-id: - - a13b0f06-c77b-4cf0-ac78-e612e38ad590 + - dd4fb49d-cead-416e-a981-3f714d4d2823 content-type: - application/json; charset=utf-8 date: - - Thu, 11 Jun 2020 15:45:00 GMT + - Fri, 10 Jul 2020 18:52:34 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -31979,7 +31977,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '15' + - '17' status: code: 200 message: OK diff --git a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_receipt_async.test_authentication_bad_key.yaml b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_receipt_async.test_authentication_bad_key.yaml index 6878a25bf62c..77bc81092dd8 100644 --- a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_receipt_async.test_authentication_bad_key.yaml +++ b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_receipt_async.test_authentication_bad_key.yaml @@ -5,20 +5,24 @@ interactions: Content-Type: - image/jpeg User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) method: POST - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/prebuilt/receipt/analyze?includeTextDetails=false + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/prebuilt/receipt/analyze?includeTextDetails=false response: body: string: '{"error": {"code": "401", "message": "Access denied due to invalid subscription key or wrong API endpoint. Make sure to provide a valid key for an active subscription and use a correct regional API endpoint for your resource."}}' headers: - content-length: '224' - date: Thu, 11 Jun 2020 15:43:53 GMT + apim-request-id: 3b0a0757-d656-4d28-9233-1d188d4d93d2 + content-length: '225' + content-type: application/json + date: Fri, 10 Jul 2020 18:52:35 GMT + strict-transport-security: max-age=31536000; includeSubDomains; preload + www-authenticate: AzureApiManagementKey realm="https://centraluseuap.api.cognitive.microsoft.com/formrecognizer",name="Ocp-Apim-Subscription-Key",type="header" + x-content-type-options: nosniff status: code: 401 - message: PermissionDenied - url: https://centraluseuap.api.cognitive.microsoft.com//formrecognizer/v2.0-preview/prebuilt/receipt/analyze?includeTextDetails=false + message: Access Denied + url: https://centraluseuap.api.cognitive.microsoft.com//formrecognizer/v2.0/prebuilt/receipt/analyze?includeTextDetails=false version: 1 diff --git a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_receipt_async.test_authentication_successful_key.yaml b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_receipt_async.test_authentication_successful_key.yaml index 2593f961f55d..74491f870070 100644 --- a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_receipt_async.test_authentication_successful_key.yaml +++ b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_receipt_async.test_authentication_successful_key.yaml @@ -2716,37 +2716,35 @@ interactions: Content-Type: - image/jpeg User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) method: POST - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/prebuilt/receipt/analyze?includeTextDetails=false + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/prebuilt/receipt/analyze?includeTextDetails=false response: body: string: '' headers: - apim-request-id: 3b2d6075-cfb9-439e-8c5d-c35e879b3b46 + apim-request-id: 3cdb4554-04d0-4507-aded-eba931db8e69 content-length: '0' - date: Thu, 11 Jun 2020 15:43:53 GMT - operation-location: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/prebuilt/receipt/analyzeResults/3b2d6075-cfb9-439e-8c5d-c35e879b3b46 + date: Fri, 10 Jul 2020 18:52:35 GMT + operation-location: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/prebuilt/receipt/analyzeResults/3cdb4554-04d0-4507-aded-eba931db8e69 strict-transport-security: max-age=31536000; includeSubDomains; preload x-content-type-options: nosniff - x-envoy-upstream-service-time: '277' + x-envoy-upstream-service-time: '180' status: code: 202 message: Accepted - url: https://centraluseuap.api.cognitive.microsoft.com//formrecognizer/v2.0-preview/prebuilt/receipt/analyze?includeTextDetails=false + url: https://centraluseuap.api.cognitive.microsoft.com//formrecognizer/v2.0/prebuilt/receipt/analyze?includeTextDetails=false - request: body: null headers: User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/prebuilt/receipt/analyzeResults/3b2d6075-cfb9-439e-8c5d-c35e879b3b46 + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/prebuilt/receipt/analyzeResults/3cdb4554-04d0-4507-aded-eba931db8e69 response: body: - string: '{"status": "succeeded", "createdDateTime": "2020-06-11T15:43:53Z", - "lastUpdatedDateTime": "2020-06-11T15:43:55Z", "analyzeResult": {"version": + string: '{"status": "succeeded", "createdDateTime": "2020-07-10T18:52:35Z", + "lastUpdatedDateTime": "2020-07-10T18:52:37Z", "analyzeResult": {"version": "2.0.0", "readResults": [{"page": 1, "angle": 0.6893, "width": 1688, "height": 3000, "unit": "pixel", "language": "en"}], "documentResults": [{"docType": "prebuilt:receipt", "pageRange": [1, 1], "fields": {"ReceiptType": {"type": @@ -2788,15 +2786,15 @@ interactions: "boundingBox": [1034.2, 2617, 1387.5, 2638.2, 1380, 2763, 1026.7, 2741.8], "page": 1, "confidence": 0.985}}}]}}' headers: - apim-request-id: 9733b242-f4fc-4153-9d5f-d1d22cb77880 + apim-request-id: c0a0ced3-b98a-4bd8-8043-8f0c2dc5215a content-type: application/json; charset=utf-8 - date: Thu, 11 Jun 2020 15:43:58 GMT + date: Fri, 10 Jul 2020 18:52:40 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '14' + x-envoy-upstream-service-time: '21' status: code: 200 message: OK - url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/prebuilt/receipt/analyzeResults/3b2d6075-cfb9-439e-8c5d-c35e879b3b46 + url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/prebuilt/receipt/analyzeResults/3cdb4554-04d0-4507-aded-eba931db8e69 version: 1 diff --git a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_receipt_async.test_blank_page.yaml b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_receipt_async.test_blank_page.yaml index b8dd25761787..fc05b70b6837 100644 --- a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_receipt_async.test_blank_page.yaml +++ b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_receipt_async.test_blank_page.yaml @@ -456,50 +456,48 @@ interactions: Content-Type: - application/pdf User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) method: POST - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/prebuilt/receipt/analyze?includeTextDetails=false + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/prebuilt/receipt/analyze?includeTextDetails=false response: body: string: '' headers: - apim-request-id: 5b1dc449-7325-462a-ba33-81db547ce5aa + apim-request-id: e772b958-7d61-4f3e-bfe7-90cee21fd448 content-length: '0' - date: Thu, 11 Jun 2020 15:44:01 GMT - operation-location: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/prebuilt/receipt/analyzeResults/5b1dc449-7325-462a-ba33-81db547ce5aa + date: Fri, 10 Jul 2020 18:52:40 GMT + operation-location: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/prebuilt/receipt/analyzeResults/e772b958-7d61-4f3e-bfe7-90cee21fd448 strict-transport-security: max-age=31536000; includeSubDomains; preload x-content-type-options: nosniff - x-envoy-upstream-service-time: '75' + x-envoy-upstream-service-time: '92' status: code: 202 message: Accepted - url: https://centraluseuap.api.cognitive.microsoft.com//formrecognizer/v2.0-preview/prebuilt/receipt/analyze?includeTextDetails=false + url: https://centraluseuap.api.cognitive.microsoft.com//formrecognizer/v2.0/prebuilt/receipt/analyze?includeTextDetails=false - request: body: null headers: User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/prebuilt/receipt/analyzeResults/5b1dc449-7325-462a-ba33-81db547ce5aa + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/prebuilt/receipt/analyzeResults/e772b958-7d61-4f3e-bfe7-90cee21fd448 response: body: - string: '{"status": "succeeded", "createdDateTime": "2020-06-11T15:44:02Z", - "lastUpdatedDateTime": "2020-06-11T15:44:04Z", "analyzeResult": {"version": + string: '{"status": "succeeded", "createdDateTime": "2020-07-10T18:52:41Z", + "lastUpdatedDateTime": "2020-07-10T18:52:44Z", "analyzeResult": {"version": "2.0.0", "readResults": [{"page": 1, "angle": 0, "width": 8.4967, "height": 10.9967, "unit": "inch", "language": "en"}], "documentResults": [{"docType": "prebuilt:receipt", "pageRange": [1, 1], "fields": {}}]}}' headers: - apim-request-id: 33cdd767-93de-4693-b339-145e96ce5422 + apim-request-id: 21576b77-f611-4e77-b920-b38a795c6afe content-type: application/json; charset=utf-8 - date: Thu, 11 Jun 2020 15:44:06 GMT + date: Fri, 10 Jul 2020 18:52:46 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '14' + x-envoy-upstream-service-time: '15' status: code: 200 message: OK - url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/prebuilt/receipt/analyzeResults/5b1dc449-7325-462a-ba33-81db547ce5aa + url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/prebuilt/receipt/analyzeResults/e772b958-7d61-4f3e-bfe7-90cee21fd448 version: 1 diff --git a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_receipt_async.test_damaged_file_passed_as_bytes.yaml b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_receipt_async.test_damaged_file_passed_as_bytes.yaml index 7fae0336150e..897bb00ef1a4 100644 --- a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_receipt_async.test_damaged_file_passed_as_bytes.yaml +++ b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_receipt_async.test_damaged_file_passed_as_bytes.yaml @@ -5,24 +5,23 @@ interactions: Content-Type: - application/pdf User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) method: POST - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/prebuilt/receipt/analyze?includeTextDetails=false + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/prebuilt/receipt/analyze?includeTextDetails=false response: body: - string: '{"error": {"code": "BadArgument", "innerError": {"requestId": "5a5ce8f2-ae4d-42f3-a98d-baa18fee5832"}, + string: '{"error": {"code": "BadArgument", "innerError": {"requestId": "42b0450f-ee0a-4325-bf88-9f7e39f20935"}, "message": "Bad or unrecognizable request JSON or binary file."}}' headers: - apim-request-id: 5a5ce8f2-ae4d-42f3-a98d-baa18fee5832 + apim-request-id: 42b0450f-ee0a-4325-bf88-9f7e39f20935 content-type: application/json; charset=utf-8 - date: Thu, 11 Jun 2020 15:43:56 GMT + date: Fri, 10 Jul 2020 18:54:21 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '40' + x-envoy-upstream-service-time: '5' status: code: 400 message: Bad Request - url: https://centraluseuap.api.cognitive.microsoft.com//formrecognizer/v2.0-preview/prebuilt/receipt/analyze?includeTextDetails=false + url: https://centraluseuap.api.cognitive.microsoft.com//formrecognizer/v2.0/prebuilt/receipt/analyze?includeTextDetails=false version: 1 diff --git a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_receipt_async.test_damaged_file_passed_as_bytes_io.yaml b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_receipt_async.test_damaged_file_passed_as_bytes_io.yaml index 6006a5dd1472..943e99175d3a 100644 --- a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_receipt_async.test_damaged_file_passed_as_bytes_io.yaml +++ b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_receipt_async.test_damaged_file_passed_as_bytes_io.yaml @@ -10,24 +10,23 @@ interactions: Content-Type: - application/pdf User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) method: POST - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/prebuilt/receipt/analyze?includeTextDetails=false + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/prebuilt/receipt/analyze?includeTextDetails=false response: body: - string: '{"error": {"code": "InvalidImage", "innerError": {"requestId": "4eca74f4-5f04-493f-b8c9-e717ad71a63d"}, + string: '{"error": {"code": "InvalidImage", "innerError": {"requestId": "3d563543-3dfe-4c9f-a3e1-bf14656c2dd0"}, "message": "The input data is not a valid image or password protected."}}' headers: - apim-request-id: 4eca74f4-5f04-493f-b8c9-e717ad71a63d + apim-request-id: 3d563543-3dfe-4c9f-a3e1-bf14656c2dd0 content-type: application/json; charset=utf-8 - date: Thu, 11 Jun 2020 15:43:56 GMT + date: Fri, 10 Jul 2020 18:54:21 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '8' + x-envoy-upstream-service-time: '5' status: code: 400 message: Bad Request - url: https://centraluseuap.api.cognitive.microsoft.com//formrecognizer/v2.0-preview/prebuilt/receipt/analyze?includeTextDetails=false + url: https://centraluseuap.api.cognitive.microsoft.com//formrecognizer/v2.0/prebuilt/receipt/analyze?includeTextDetails=false version: 1 diff --git a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_receipt_async.test_passing_enum_content_type.yaml b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_receipt_async.test_passing_enum_content_type.yaml index 1f8bffd3f8a3..08cec07e9eb1 100644 --- a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_receipt_async.test_passing_enum_content_type.yaml +++ b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_receipt_async.test_passing_enum_content_type.yaml @@ -31790,37 +31790,35 @@ interactions: Content-Type: - image/png User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) method: POST - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/prebuilt/receipt/analyze?includeTextDetails=false + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/prebuilt/receipt/analyze?includeTextDetails=false response: body: string: '' headers: - apim-request-id: a8fab852-331f-4f8f-8500-e1b3bdbcd3bf + apim-request-id: 8acf2acd-4ff4-4ebf-88fa-b51ef90b0ca6 content-length: '0' - date: Thu, 11 Jun 2020 15:43:59 GMT - operation-location: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/prebuilt/receipt/analyzeResults/a8fab852-331f-4f8f-8500-e1b3bdbcd3bf + date: Fri, 10 Jul 2020 18:54:24 GMT + operation-location: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/prebuilt/receipt/analyzeResults/8acf2acd-4ff4-4ebf-88fa-b51ef90b0ca6 strict-transport-security: max-age=31536000; includeSubDomains; preload x-content-type-options: nosniff - x-envoy-upstream-service-time: '548' + x-envoy-upstream-service-time: '599' status: code: 202 message: Accepted - url: https://centraluseuap.api.cognitive.microsoft.com//formrecognizer/v2.0-preview/prebuilt/receipt/analyze?includeTextDetails=false + url: https://centraluseuap.api.cognitive.microsoft.com//formrecognizer/v2.0/prebuilt/receipt/analyze?includeTextDetails=false - request: body: null headers: User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/prebuilt/receipt/analyzeResults/a8fab852-331f-4f8f-8500-e1b3bdbcd3bf + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/prebuilt/receipt/analyzeResults/8acf2acd-4ff4-4ebf-88fa-b51ef90b0ca6 response: body: - string: '{"status": "succeeded", "createdDateTime": "2020-06-11T15:44:00Z", - "lastUpdatedDateTime": "2020-06-11T15:44:02Z", "analyzeResult": {"version": + string: '{"status": "succeeded", "createdDateTime": "2020-07-10T18:54:24Z", + "lastUpdatedDateTime": "2020-07-10T18:54:27Z", "analyzeResult": {"version": "2.0.0", "readResults": [{"page": 1, "angle": 0.2511, "width": 1688, "height": 3000, "unit": "pixel", "language": "en"}], "documentResults": [{"docType": "prebuilt:receipt", "pageRange": [1, 1], "fields": {"ReceiptType": {"type": @@ -31858,9 +31856,9 @@ interactions: 1203.39, "text": "1203.39", "boundingBox": [955, 2593.9, 1123, 2611, 1116.2, 2678.1, 948.2, 2661], "page": 1, "confidence": 0.774}}}]}}' headers: - apim-request-id: 0ec9835b-9b27-4538-a087-cd40273dbe9f + apim-request-id: 58dcf769-915b-40c0-9970-f6401d022e69 content-type: application/json; charset=utf-8 - date: Thu, 11 Jun 2020 15:44:04 GMT + date: Fri, 10 Jul 2020 18:54:29 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff @@ -31868,5 +31866,5 @@ interactions: status: code: 200 message: OK - url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/prebuilt/receipt/analyzeResults/a8fab852-331f-4f8f-8500-e1b3bdbcd3bf + url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/prebuilt/receipt/analyzeResults/8acf2acd-4ff4-4ebf-88fa-b51ef90b0ca6 version: 1 diff --git a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_receipt_async.test_receipt_jpg.yaml b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_receipt_async.test_receipt_jpg.yaml index f4581ebeb944..e4e74ace9482 100644 --- a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_receipt_async.test_receipt_jpg.yaml +++ b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_receipt_async.test_receipt_jpg.yaml @@ -2716,37 +2716,35 @@ interactions: Content-Type: - image/jpeg User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) method: POST - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/prebuilt/receipt/analyze?includeTextDetails=false + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/prebuilt/receipt/analyze?includeTextDetails=false response: body: string: '' headers: - apim-request-id: ac617c4c-3b4e-4ca3-bcdc-f200f3315b8d + apim-request-id: d58ea9b1-d83e-46cf-87d0-6679ea3e001d content-length: '0' - date: Thu, 11 Jun 2020 15:44:11 GMT - operation-location: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/prebuilt/receipt/analyzeResults/ac617c4c-3b4e-4ca3-bcdc-f200f3315b8d + date: Fri, 10 Jul 2020 18:54:41 GMT + operation-location: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/prebuilt/receipt/analyzeResults/d58ea9b1-d83e-46cf-87d0-6679ea3e001d strict-transport-security: max-age=31536000; includeSubDomains; preload x-content-type-options: nosniff - x-envoy-upstream-service-time: '150' + x-envoy-upstream-service-time: '228' status: code: 202 message: Accepted - url: https://centraluseuap.api.cognitive.microsoft.com//formrecognizer/v2.0-preview/prebuilt/receipt/analyze?includeTextDetails=false + url: https://centraluseuap.api.cognitive.microsoft.com//formrecognizer/v2.0/prebuilt/receipt/analyze?includeTextDetails=false - request: body: null headers: User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/prebuilt/receipt/analyzeResults/ac617c4c-3b4e-4ca3-bcdc-f200f3315b8d + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/prebuilt/receipt/analyzeResults/d58ea9b1-d83e-46cf-87d0-6679ea3e001d response: body: - string: '{"status": "succeeded", "createdDateTime": "2020-06-11T15:44:12Z", - "lastUpdatedDateTime": "2020-06-11T15:44:14Z", "analyzeResult": {"version": + string: '{"status": "succeeded", "createdDateTime": "2020-07-10T18:54:42Z", + "lastUpdatedDateTime": "2020-07-10T18:54:43Z", "analyzeResult": {"version": "2.0.0", "readResults": [{"page": 1, "angle": 0.6893, "width": 1688, "height": 3000, "unit": "pixel", "language": "en"}], "documentResults": [{"docType": "prebuilt:receipt", "pageRange": [1, 1], "fields": {"ReceiptType": {"type": @@ -2788,15 +2786,15 @@ interactions: "boundingBox": [1034.2, 2617, 1387.5, 2638.2, 1380, 2763, 1026.7, 2741.8], "page": 1, "confidence": 0.985}}}]}}' headers: - apim-request-id: ccdd1a35-bd19-470c-bbf5-151363f87334 + apim-request-id: 0540de4f-92ff-44d3-9d40-1a14cc24f345 content-type: application/json; charset=utf-8 - date: Thu, 11 Jun 2020 15:44:17 GMT + date: Fri, 10 Jul 2020 18:54:46 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '16' + x-envoy-upstream-service-time: '15' status: code: 200 message: OK - url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/prebuilt/receipt/analyzeResults/ac617c4c-3b4e-4ca3-bcdc-f200f3315b8d + url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/prebuilt/receipt/analyzeResults/d58ea9b1-d83e-46cf-87d0-6679ea3e001d version: 1 diff --git a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_receipt_async.test_receipt_jpg_include_field_elements.yaml b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_receipt_async.test_receipt_jpg_include_field_elements.yaml index 97dd3adfaa3f..96e998255a60 100644 --- a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_receipt_async.test_receipt_jpg_include_field_elements.yaml +++ b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_receipt_async.test_receipt_jpg_include_field_elements.yaml @@ -2716,37 +2716,35 @@ interactions: Content-Type: - image/jpeg User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) method: POST - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/prebuilt/receipt/analyze?includeTextDetails=true + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/prebuilt/receipt/analyze?includeTextDetails=true response: body: string: '' headers: - apim-request-id: 5841c683-8a23-4547-9a42-aaa6e58b1870 + apim-request-id: dabf2451-0e1a-403d-a6ce-a77b2b9a08de content-length: '0' - date: Thu, 11 Jun 2020 15:44:18 GMT - operation-location: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/prebuilt/receipt/analyzeResults/5841c683-8a23-4547-9a42-aaa6e58b1870 + date: Fri, 10 Jul 2020 18:54:48 GMT + operation-location: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/prebuilt/receipt/analyzeResults/dabf2451-0e1a-403d-a6ce-a77b2b9a08de strict-transport-security: max-age=31536000; includeSubDomains; preload x-content-type-options: nosniff - x-envoy-upstream-service-time: '140' + x-envoy-upstream-service-time: '175' status: code: 202 message: Accepted - url: https://centraluseuap.api.cognitive.microsoft.com//formrecognizer/v2.0-preview/prebuilt/receipt/analyze?includeTextDetails=true + url: https://centraluseuap.api.cognitive.microsoft.com//formrecognizer/v2.0/prebuilt/receipt/analyze?includeTextDetails=true - request: body: null headers: User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/prebuilt/receipt/analyzeResults/5841c683-8a23-4547-9a42-aaa6e58b1870 + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/prebuilt/receipt/analyzeResults/dabf2451-0e1a-403d-a6ce-a77b2b9a08de response: body: - string: '{"status": "succeeded", "createdDateTime": "2020-06-11T15:44:18Z", - "lastUpdatedDateTime": "2020-06-11T15:44:19Z", "analyzeResult": {"version": + string: '{"status": "succeeded", "createdDateTime": "2020-07-10T18:54:48Z", + "lastUpdatedDateTime": "2020-07-10T18:54:49Z", "analyzeResult": {"version": "2.0.0", "readResults": [{"page": 1, "angle": 0.6893, "width": 1688, "height": 3000, "unit": "pixel", "language": "en", "lines": [{"text": "Contoso", "boundingBox": [635, 510, 1086, 461, 1098, 558, 643, 604], "words": [{"text": "Contoso", @@ -2868,15 +2866,15 @@ interactions: [1034.2, 2617, 1387.5, 2638.2, 1380, 2763, 1026.7, 2741.8], "page": 1, "confidence": 0.985, "elements": ["#/readResults/0/lines/19/words/0"]}}}]}}' headers: - apim-request-id: d1e659f0-ef98-4a6e-afc0-1392ff0ac9bf + apim-request-id: 45e1375c-84ac-4c78-bd81-bd119a39159e content-type: application/json; charset=utf-8 - date: Thu, 11 Jun 2020 15:44:22 GMT + date: Fri, 10 Jul 2020 18:54:53 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '16' + x-envoy-upstream-service-time: '17' status: code: 200 message: OK - url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/prebuilt/receipt/analyzeResults/5841c683-8a23-4547-9a42-aaa6e58b1870 + url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/prebuilt/receipt/analyzeResults/dabf2451-0e1a-403d-a6ce-a77b2b9a08de version: 1 diff --git a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_receipt_async.test_receipt_multipage.yaml b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_receipt_async.test_receipt_multipage.yaml index b17ef7d05057..0e67a38f4599 100644 --- a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_receipt_async.test_receipt_multipage.yaml +++ b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_receipt_async.test_receipt_multipage.yaml @@ -1917,37 +1917,35 @@ interactions: Content-Type: - application/pdf User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) method: POST - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/prebuilt/receipt/analyze?includeTextDetails=true + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/prebuilt/receipt/analyze?includeTextDetails=true response: body: string: '' headers: - apim-request-id: c7de01b6-b64e-4876-8d74-3f5248f67c33 + apim-request-id: a08ae2b1-7e72-4708-8db9-3ba33c3779ba content-length: '0' - date: Thu, 11 Jun 2020 15:44:02 GMT - operation-location: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/prebuilt/receipt/analyzeResults/c7de01b6-b64e-4876-8d74-3f5248f67c33 + date: Fri, 10 Jul 2020 18:52:47 GMT + operation-location: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/prebuilt/receipt/analyzeResults/a08ae2b1-7e72-4708-8db9-3ba33c3779ba strict-transport-security: max-age=31536000; includeSubDomains; preload x-content-type-options: nosniff - x-envoy-upstream-service-time: '219' + x-envoy-upstream-service-time: '144' status: code: 202 message: Accepted - url: https://centraluseuap.api.cognitive.microsoft.com//formrecognizer/v2.0-preview/prebuilt/receipt/analyze?includeTextDetails=true + url: https://centraluseuap.api.cognitive.microsoft.com//formrecognizer/v2.0/prebuilt/receipt/analyze?includeTextDetails=true - request: body: null headers: User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/prebuilt/receipt/analyzeResults/c7de01b6-b64e-4876-8d74-3f5248f67c33 + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/prebuilt/receipt/analyzeResults/a08ae2b1-7e72-4708-8db9-3ba33c3779ba response: body: - string: '{"status": "succeeded", "createdDateTime": "2020-06-11T15:44:02Z", - "lastUpdatedDateTime": "2020-06-11T15:44:05Z", "analyzeResult": {"version": + string: '{"status": "succeeded", "createdDateTime": "2020-07-10T18:52:47Z", + "lastUpdatedDateTime": "2020-07-10T18:52:50Z", "analyzeResult": {"version": "2.0.0", "readResults": [{"page": 1, "angle": 0, "width": 8.5, "height": 11, "unit": "inch", "language": "en", "lines": [{"text": "Company A Invoice", "boundingBox": [0.8861, 1.1217, 2.3783, 1.1217, 2.3783, 1.2812, 0.8861, 1.2812], @@ -2304,9 +2302,9 @@ interactions: [5.811, 5.3445, 6.3422, 5.3445, 6.3422, 5.4533, 5.811, 5.4533], "page": 3, "confidence": 0.985, "elements": ["#/readResults/2/lines/36/words/1"]}}}]}}' headers: - apim-request-id: 41c595e2-721a-4111-8404-bbc8c23862b5 + apim-request-id: 34846ac9-6ef0-47e0-8134-608ed3cab2f5 content-type: application/json; charset=utf-8 - date: Thu, 11 Jun 2020 15:44:06 GMT + date: Fri, 10 Jul 2020 18:52:52 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff @@ -2314,5 +2312,5 @@ interactions: status: code: 200 message: OK - url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/prebuilt/receipt/analyzeResults/c7de01b6-b64e-4876-8d74-3f5248f67c33 + url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/prebuilt/receipt/analyzeResults/a08ae2b1-7e72-4708-8db9-3ba33c3779ba version: 1 diff --git a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_receipt_async.test_receipt_multipage_transform.yaml b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_receipt_async.test_receipt_multipage_transform.yaml index de6980b8a727..05d0576fe945 100644 --- a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_receipt_async.test_receipt_multipage_transform.yaml +++ b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_receipt_async.test_receipt_multipage_transform.yaml @@ -1917,61 +1917,35 @@ interactions: Content-Type: - application/pdf User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) method: POST - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/prebuilt/receipt/analyze?includeTextDetails=true + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/prebuilt/receipt/analyze?includeTextDetails=true response: body: string: '' headers: - apim-request-id: ae024617-86aa-4d7d-bf09-93342b02dcd8 + apim-request-id: 5bb0ec2c-7f20-4b59-a403-bc629a2b06f8 content-length: '0' - date: Thu, 11 Jun 2020 15:56:28 GMT - operation-location: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/prebuilt/receipt/analyzeResults/ae024617-86aa-4d7d-bf09-93342b02dcd8 + date: Fri, 10 Jul 2020 18:52:53 GMT + operation-location: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/prebuilt/receipt/analyzeResults/5bb0ec2c-7f20-4b59-a403-bc629a2b06f8 strict-transport-security: max-age=31536000; includeSubDomains; preload x-content-type-options: nosniff - x-envoy-upstream-service-time: '291' + x-envoy-upstream-service-time: '138' status: code: 202 message: Accepted - url: https://centraluseuap.api.cognitive.microsoft.com//formrecognizer/v2.0-preview/prebuilt/receipt/analyze?includeTextDetails=true + url: https://centraluseuap.api.cognitive.microsoft.com//formrecognizer/v2.0/prebuilt/receipt/analyze?includeTextDetails=true - request: body: null headers: User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/prebuilt/receipt/analyzeResults/ae024617-86aa-4d7d-bf09-93342b02dcd8 + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/prebuilt/receipt/analyzeResults/5bb0ec2c-7f20-4b59-a403-bc629a2b06f8 response: body: - string: '{"status": "running", "createdDateTime": "2020-06-11T15:56:28Z", "lastUpdatedDateTime": - "2020-06-11T15:56:28Z"}' - headers: - apim-request-id: 68b6ffe1-4240-4b5e-9f92-05977bad787a - content-type: application/json; charset=utf-8 - date: Thu, 11 Jun 2020 15:56:33 GMT - strict-transport-security: max-age=31536000; includeSubDomains; preload - transfer-encoding: chunked - x-content-type-options: nosniff - x-envoy-upstream-service-time: '6' - status: - code: 200 - message: OK - url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/prebuilt/receipt/analyzeResults/ae024617-86aa-4d7d-bf09-93342b02dcd8 -- request: - body: null - headers: - User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) - method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/prebuilt/receipt/analyzeResults/ae024617-86aa-4d7d-bf09-93342b02dcd8 - response: - body: - string: '{"status": "succeeded", "createdDateTime": "2020-06-11T15:56:28Z", - "lastUpdatedDateTime": "2020-06-11T15:56:34Z", "analyzeResult": {"version": + string: '{"status": "succeeded", "createdDateTime": "2020-07-10T18:52:53Z", + "lastUpdatedDateTime": "2020-07-10T18:52:56Z", "analyzeResult": {"version": "2.0.0", "readResults": [{"page": 1, "angle": 0, "width": 8.5, "height": 11, "unit": "inch", "language": "en", "lines": [{"text": "Company A Invoice", "boundingBox": [0.8861, 1.1217, 2.3783, 1.1217, 2.3783, 1.2812, 0.8861, 1.2812], @@ -2328,9 +2302,9 @@ interactions: [5.811, 5.3445, 6.3422, 5.3445, 6.3422, 5.4533, 5.811, 5.4533], "page": 3, "confidence": 0.985, "elements": ["#/readResults/2/lines/36/words/1"]}}}]}}' headers: - apim-request-id: 5dfc9e92-9ab8-4855-b220-24bd9a95ba89 + apim-request-id: f6097f0c-e9c6-4928-afef-1634e6a115e3 content-type: application/json; charset=utf-8 - date: Thu, 11 Jun 2020 15:56:38 GMT + date: Fri, 10 Jul 2020 18:52:58 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff @@ -2338,5 +2312,5 @@ interactions: status: code: 200 message: OK - url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/prebuilt/receipt/analyzeResults/ae024617-86aa-4d7d-bf09-93342b02dcd8 + url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/prebuilt/receipt/analyzeResults/5bb0ec2c-7f20-4b59-a403-bc629a2b06f8 version: 1 diff --git a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_receipt_async.test_receipt_png.yaml b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_receipt_async.test_receipt_png.yaml index d2becf8df4f7..300ca62d119f 100644 --- a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_receipt_async.test_receipt_png.yaml +++ b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_receipt_async.test_receipt_png.yaml @@ -31790,85 +31790,35 @@ interactions: Content-Type: - image/png User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) method: POST - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/prebuilt/receipt/analyze?includeTextDetails=false + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/prebuilt/receipt/analyze?includeTextDetails=false response: body: string: '' headers: - apim-request-id: 2363161a-0634-4db1-9521-30d257e39d8d + apim-request-id: e2478b33-bc4d-4701-809e-66ef144456d2 content-length: '0' - date: Thu, 11 Jun 2020 15:44:12 GMT - operation-location: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/prebuilt/receipt/analyzeResults/2363161a-0634-4db1-9521-30d257e39d8d + date: Fri, 10 Jul 2020 18:53:01 GMT + operation-location: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/prebuilt/receipt/analyzeResults/e2478b33-bc4d-4701-809e-66ef144456d2 strict-transport-security: max-age=31536000; includeSubDomains; preload x-content-type-options: nosniff - x-envoy-upstream-service-time: '558' + x-envoy-upstream-service-time: '584' status: code: 202 message: Accepted - url: https://centraluseuap.api.cognitive.microsoft.com//formrecognizer/v2.0-preview/prebuilt/receipt/analyze?includeTextDetails=false + url: https://centraluseuap.api.cognitive.microsoft.com//formrecognizer/v2.0/prebuilt/receipt/analyze?includeTextDetails=false - request: body: null headers: User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/prebuilt/receipt/analyzeResults/2363161a-0634-4db1-9521-30d257e39d8d + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/prebuilt/receipt/analyzeResults/e2478b33-bc4d-4701-809e-66ef144456d2 response: body: - string: '{"status": "running", "createdDateTime": "2020-06-11T15:44:12Z", "lastUpdatedDateTime": - "2020-06-11T15:44:12Z"}' - headers: - apim-request-id: dea9e5ed-90d6-470c-9b79-8e4165209c61 - content-type: application/json; charset=utf-8 - date: Thu, 11 Jun 2020 15:44:17 GMT - strict-transport-security: max-age=31536000; includeSubDomains; preload - transfer-encoding: chunked - x-content-type-options: nosniff - x-envoy-upstream-service-time: '7' - status: - code: 200 - message: OK - url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/prebuilt/receipt/analyzeResults/2363161a-0634-4db1-9521-30d257e39d8d -- request: - body: null - headers: - User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) - method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/prebuilt/receipt/analyzeResults/2363161a-0634-4db1-9521-30d257e39d8d - response: - body: - string: '{"status": "running", "createdDateTime": "2020-06-11T15:44:12Z", "lastUpdatedDateTime": - "2020-06-11T15:44:12Z"}' - headers: - apim-request-id: f27ce2c6-4106-4c8f-8ad7-bfc139421d9a - content-type: application/json; charset=utf-8 - date: Thu, 11 Jun 2020 15:44:22 GMT - strict-transport-security: max-age=31536000; includeSubDomains; preload - transfer-encoding: chunked - x-content-type-options: nosniff - x-envoy-upstream-service-time: '8' - status: - code: 200 - message: OK - url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/prebuilt/receipt/analyzeResults/2363161a-0634-4db1-9521-30d257e39d8d -- request: - body: null - headers: - User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) - method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/prebuilt/receipt/analyzeResults/2363161a-0634-4db1-9521-30d257e39d8d - response: - body: - string: '{"status": "succeeded", "createdDateTime": "2020-06-11T15:44:12Z", - "lastUpdatedDateTime": "2020-06-11T15:44:24Z", "analyzeResult": {"version": + string: '{"status": "succeeded", "createdDateTime": "2020-07-10T18:53:02Z", + "lastUpdatedDateTime": "2020-07-10T18:53:05Z", "analyzeResult": {"version": "2.0.0", "readResults": [{"page": 1, "angle": 0.2511, "width": 1688, "height": 3000, "unit": "pixel", "language": "en"}], "documentResults": [{"docType": "prebuilt:receipt", "pageRange": [1, 1], "fields": {"ReceiptType": {"type": @@ -31906,15 +31856,15 @@ interactions: 1203.39, "text": "1203.39", "boundingBox": [955, 2593.9, 1123, 2611, 1116.2, 2678.1, 948.2, 2661], "page": 1, "confidence": 0.774}}}]}}' headers: - apim-request-id: 580a41ef-d607-48b4-828c-c42ac5d21089 + apim-request-id: 8f11c712-20ba-4911-a4d9-4a35385cfa9f content-type: application/json; charset=utf-8 - date: Thu, 11 Jun 2020 15:44:27 GMT + date: Fri, 10 Jul 2020 18:53:07 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '15' + x-envoy-upstream-service-time: '13' status: code: 200 message: OK - url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/prebuilt/receipt/analyzeResults/2363161a-0634-4db1-9521-30d257e39d8d + url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/prebuilt/receipt/analyzeResults/e2478b33-bc4d-4701-809e-66ef144456d2 version: 1 diff --git a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_receipt_async.test_receipt_stream_transform_jpg.yaml b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_receipt_async.test_receipt_stream_transform_jpg.yaml index e62323b0d13f..52edafdf3519 100644 --- a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_receipt_async.test_receipt_stream_transform_jpg.yaml +++ b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_receipt_async.test_receipt_stream_transform_jpg.yaml @@ -2716,37 +2716,35 @@ interactions: Content-Type: - image/jpeg User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) method: POST - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/prebuilt/receipt/analyze?includeTextDetails=true + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/prebuilt/receipt/analyze?includeTextDetails=true response: body: string: '' headers: - apim-request-id: 29377636-8f62-459a-9180-52e67667a15f + apim-request-id: edeb9fdb-051d-4f6e-a831-58eed109503b content-length: '0' - date: Thu, 11 Jun 2020 15:44:28 GMT - operation-location: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/prebuilt/receipt/analyzeResults/29377636-8f62-459a-9180-52e67667a15f + date: Fri, 10 Jul 2020 18:53:09 GMT + operation-location: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/prebuilt/receipt/analyzeResults/edeb9fdb-051d-4f6e-a831-58eed109503b strict-transport-security: max-age=31536000; includeSubDomains; preload x-content-type-options: nosniff - x-envoy-upstream-service-time: '135' + x-envoy-upstream-service-time: '177' status: code: 202 message: Accepted - url: https://centraluseuap.api.cognitive.microsoft.com//formrecognizer/v2.0-preview/prebuilt/receipt/analyze?includeTextDetails=true + url: https://centraluseuap.api.cognitive.microsoft.com//formrecognizer/v2.0/prebuilt/receipt/analyze?includeTextDetails=true - request: body: null headers: User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/prebuilt/receipt/analyzeResults/29377636-8f62-459a-9180-52e67667a15f + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/prebuilt/receipt/analyzeResults/edeb9fdb-051d-4f6e-a831-58eed109503b response: body: - string: '{"status": "succeeded", "createdDateTime": "2020-06-11T15:44:28Z", - "lastUpdatedDateTime": "2020-06-11T15:44:30Z", "analyzeResult": {"version": + string: '{"status": "succeeded", "createdDateTime": "2020-07-10T18:53:09Z", + "lastUpdatedDateTime": "2020-07-10T18:53:11Z", "analyzeResult": {"version": "2.0.0", "readResults": [{"page": 1, "angle": 0.6893, "width": 1688, "height": 3000, "unit": "pixel", "language": "en", "lines": [{"text": "Contoso", "boundingBox": [635, 510, 1086, 461, 1098, 558, 643, 604], "words": [{"text": "Contoso", @@ -2868,9 +2866,9 @@ interactions: [1034.2, 2617, 1387.5, 2638.2, 1380, 2763, 1026.7, 2741.8], "page": 1, "confidence": 0.985, "elements": ["#/readResults/0/lines/19/words/0"]}}}]}}' headers: - apim-request-id: 19224951-536f-495e-8cfc-3006b2cacb6f + apim-request-id: 5f7ce638-0467-47c6-b300-ab13dfc79089 content-type: application/json; charset=utf-8 - date: Thu, 11 Jun 2020 15:44:33 GMT + date: Fri, 10 Jul 2020 18:53:13 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff @@ -2878,5 +2876,5 @@ interactions: status: code: 200 message: OK - url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/prebuilt/receipt/analyzeResults/29377636-8f62-459a-9180-52e67667a15f + url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/prebuilt/receipt/analyzeResults/edeb9fdb-051d-4f6e-a831-58eed109503b version: 1 diff --git a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_receipt_async.test_receipt_stream_transform_png.yaml b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_receipt_async.test_receipt_stream_transform_png.yaml index 10f5192846fa..5b11aecc8aff 100644 --- a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_receipt_async.test_receipt_stream_transform_png.yaml +++ b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_receipt_async.test_receipt_stream_transform_png.yaml @@ -31790,37 +31790,35 @@ interactions: Content-Type: - image/png User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) method: POST - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/prebuilt/receipt/analyze?includeTextDetails=true + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/prebuilt/receipt/analyze?includeTextDetails=true response: body: string: '' headers: - apim-request-id: f0beb41a-5529-4b65-8ec5-791509085e2f + apim-request-id: f5a8e01f-dcbe-4acb-b5eb-4d249c1be5df content-length: '0' - date: Thu, 11 Jun 2020 15:44:09 GMT - operation-location: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/prebuilt/receipt/analyzeResults/f0beb41a-5529-4b65-8ec5-791509085e2f + date: Fri, 10 Jul 2020 18:53:17 GMT + operation-location: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/prebuilt/receipt/analyzeResults/f5a8e01f-dcbe-4acb-b5eb-4d249c1be5df strict-transport-security: max-age=31536000; includeSubDomains; preload x-content-type-options: nosniff - x-envoy-upstream-service-time: '576' + x-envoy-upstream-service-time: '648' status: code: 202 message: Accepted - url: https://centraluseuap.api.cognitive.microsoft.com//formrecognizer/v2.0-preview/prebuilt/receipt/analyze?includeTextDetails=true + url: https://centraluseuap.api.cognitive.microsoft.com//formrecognizer/v2.0/prebuilt/receipt/analyze?includeTextDetails=true - request: body: null headers: User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/prebuilt/receipt/analyzeResults/f0beb41a-5529-4b65-8ec5-791509085e2f + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/prebuilt/receipt/analyzeResults/f5a8e01f-dcbe-4acb-b5eb-4d249c1be5df response: body: - string: '{"status": "succeeded", "createdDateTime": "2020-06-11T15:44:09Z", - "lastUpdatedDateTime": "2020-06-11T15:44:12Z", "analyzeResult": {"version": + string: '{"status": "succeeded", "createdDateTime": "2020-07-10T18:53:17Z", + "lastUpdatedDateTime": "2020-07-10T18:53:19Z", "analyzeResult": {"version": "2.0.0", "readResults": [{"page": 1, "angle": 0.2511, "width": 1688, "height": 3000, "unit": "pixel", "language": "en", "lines": [{"text": "Contoso", "boundingBox": [619, 291, 1051, 284, 1053, 384, 620, 396], "words": [{"text": "Contoso", @@ -31946,15 +31944,15 @@ interactions: [955, 2593.9, 1123, 2611, 1116.2, 2678.1, 948.2, 2661], "page": 1, "confidence": 0.774, "elements": ["#/readResults/0/lines/18/words/1"]}}}]}}' headers: - apim-request-id: 8685054f-1c32-4471-bbc9-b2ef72ba34dd + apim-request-id: 18384548-880d-47f2-86e5-fef9e954db0d content-type: application/json; charset=utf-8 - date: Thu, 11 Jun 2020 15:44:24 GMT + date: Fri, 10 Jul 2020 18:53:22 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '10501' + x-envoy-upstream-service-time: '20' status: code: 200 message: OK - url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/prebuilt/receipt/analyzeResults/f0beb41a-5529-4b65-8ec5-791509085e2f + url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/prebuilt/receipt/analyzeResults/f5a8e01f-dcbe-4acb-b5eb-4d249c1be5df version: 1 diff --git a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_receipt_from_url.test_polling_interval.yaml b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_receipt_from_url.test_polling_interval.yaml index 65fdfcc1302f..affaf40bf5d3 100644 --- a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_receipt_from_url.test_polling_interval.yaml +++ b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_receipt_from_url.test_polling_interval.yaml @@ -13,28 +13,27 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) method: POST - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/prebuilt/receipt/analyze?includeTextDetails=false + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/prebuilt/receipt/analyze?includeTextDetails=false response: body: string: '' headers: apim-request-id: - - a710a6a5-4a54-46a1-9e88-f2a0b555765b + - e8bdac60-ab8f-49cc-b505-8fc455b4ae90 content-length: - '0' date: - - Fri, 12 Jun 2020 16:50:56 GMT + - Fri, 10 Jul 2020 18:53:24 GMT operation-location: - - https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/prebuilt/receipt/analyzeResults/a710a6a5-4a54-46a1-9e88-f2a0b555765b + - https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/prebuilt/receipt/analyzeResults/e8bdac60-ab8f-49cc-b505-8fc455b4ae90 strict-transport-security: - max-age=31536000; includeSubDomains; preload x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '1025' + - '327' status: code: 202 message: Accepted @@ -48,14 +47,13 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/prebuilt/receipt/analyzeResults/a710a6a5-4a54-46a1-9e88-f2a0b555765b + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/prebuilt/receipt/analyzeResults/e8bdac60-ab8f-49cc-b505-8fc455b4ae90 response: body: - string: '{"status": "succeeded", "createdDateTime": "2020-06-12T16:50:56Z", - "lastUpdatedDateTime": "2020-06-12T16:50:58Z", "analyzeResult": {"version": + string: '{"status": "succeeded", "createdDateTime": "2020-07-10T18:53:24Z", + "lastUpdatedDateTime": "2020-07-10T18:53:26Z", "analyzeResult": {"version": "2.0.0", "readResults": [{"page": 1, "angle": 0.6893, "width": 1688, "height": 3000, "unit": "pixel", "language": "en"}], "documentResults": [{"docType": "prebuilt:receipt", "pageRange": [1, 1], "fields": {"ReceiptType": {"type": @@ -98,11 +96,11 @@ interactions: "page": 1, "confidence": 0.985}}}]}}' headers: apim-request-id: - - 8d2cb919-ee61-49dd-92d5-899ad45eb4f0 + - 963e01b8-a116-4583-975f-839accc2142d content-type: - application/json; charset=utf-8 date: - - Fri, 12 Jun 2020 16:51:02 GMT + - Fri, 10 Jul 2020 18:53:30 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -110,7 +108,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '71' + - '16' status: code: 200 message: OK @@ -128,28 +126,27 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) method: POST - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/prebuilt/receipt/analyze?includeTextDetails=false + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/prebuilt/receipt/analyze?includeTextDetails=false response: body: string: '' headers: apim-request-id: - - c824e710-1289-403a-bcc9-1ecc5970fd69 + - f74a3004-11ef-4eac-b18c-f56f6f7ef921 content-length: - '0' date: - - Fri, 12 Jun 2020 16:51:03 GMT + - Fri, 10 Jul 2020 18:53:30 GMT operation-location: - - https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/prebuilt/receipt/analyzeResults/c824e710-1289-403a-bcc9-1ecc5970fd69 + - https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/prebuilt/receipt/analyzeResults/f74a3004-11ef-4eac-b18c-f56f6f7ef921 strict-transport-security: - max-age=31536000; includeSubDomains; preload x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '274' + - '167' status: code: 202 message: Accepted @@ -163,14 +160,13 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/prebuilt/receipt/analyzeResults/c824e710-1289-403a-bcc9-1ecc5970fd69 + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/prebuilt/receipt/analyzeResults/f74a3004-11ef-4eac-b18c-f56f6f7ef921 response: body: - string: '{"status": "succeeded", "createdDateTime": "2020-06-12T16:51:03Z", - "lastUpdatedDateTime": "2020-06-12T16:51:04Z", "analyzeResult": {"version": + string: '{"status": "succeeded", "createdDateTime": "2020-07-10T18:53:31Z", + "lastUpdatedDateTime": "2020-07-10T18:53:33Z", "analyzeResult": {"version": "2.0.0", "readResults": [{"page": 1, "angle": 0.6893, "width": 1688, "height": 3000, "unit": "pixel", "language": "en"}], "documentResults": [{"docType": "prebuilt:receipt", "pageRange": [1, 1], "fields": {"ReceiptType": {"type": @@ -213,11 +209,11 @@ interactions: "page": 1, "confidence": 0.985}}}]}}' headers: apim-request-id: - - 9c817312-1988-4d3d-82ea-cf8a7a90f683 + - be2352cb-2dd8-4f03-ac6e-3eb914f911b7 content-type: - application/json; charset=utf-8 date: - - Fri, 12 Jun 2020 16:51:09 GMT + - Fri, 10 Jul 2020 18:53:37 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -225,7 +221,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '23' + - '15' status: code: 200 message: OK diff --git a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_receipt_from_url.test_receipt_bad_url.yaml b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_receipt_from_url.test_receipt_bad_url.yaml index 8f0f69622205..e4e55719a7b0 100644 --- a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_receipt_from_url.test_receipt_bad_url.yaml +++ b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_receipt_from_url.test_receipt_bad_url.yaml @@ -13,22 +13,21 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) method: POST - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/prebuilt/receipt/analyze?includeTextDetails=false + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/prebuilt/receipt/analyze?includeTextDetails=false response: body: string: '{"error": {"code": "FailedToDownloadImage", "innerError": {"requestId": - "dd95712c-4d7f-4d2d-a276-633f0c0aa204"}, "message": "Failed to download image + "8f1e7239-2f6a-4040-b97f-1e4938485fbd"}, "message": "Failed to download image from input URL."}}' headers: apim-request-id: - - dd95712c-4d7f-4d2d-a276-633f0c0aa204 + - 8f1e7239-2f6a-4040-b97f-1e4938485fbd content-type: - application/json; charset=utf-8 date: - - Thu, 11 Jun 2020 15:44:11 GMT + - Fri, 10 Jul 2020 18:53:41 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -36,7 +35,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '3180' + - '3086' status: code: 400 message: Bad Request diff --git a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_receipt_from_url.test_receipt_multipage_transform_url.yaml b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_receipt_from_url.test_receipt_multipage_transform_url.yaml index a9992f539d49..194c355d690b 100644 --- a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_receipt_from_url.test_receipt_multipage_transform_url.yaml +++ b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_receipt_from_url.test_receipt_multipage_transform_url.yaml @@ -13,28 +13,27 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) method: POST - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/prebuilt/receipt/analyze?includeTextDetails=true + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/prebuilt/receipt/analyze?includeTextDetails=true response: body: string: '' headers: apim-request-id: - - 50472c2f-bf84-4003-8997-e4bb1720dbd0 + - c4ad6912-0f16-41a2-8674-fe61e96758fb content-length: - '0' date: - - Thu, 11 Jun 2020 15:56:39 GMT + - Fri, 10 Jul 2020 18:53:48 GMT operation-location: - - https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/prebuilt/receipt/analyzeResults/50472c2f-bf84-4003-8997-e4bb1720dbd0 + - https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/prebuilt/receipt/analyzeResults/c4ad6912-0f16-41a2-8674-fe61e96758fb strict-transport-security: - max-age=31536000; includeSubDomains; preload x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '470' + - '247' status: code: 202 message: Accepted @@ -48,14 +47,13 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/prebuilt/receipt/analyzeResults/50472c2f-bf84-4003-8997-e4bb1720dbd0 + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/prebuilt/receipt/analyzeResults/c4ad6912-0f16-41a2-8674-fe61e96758fb response: body: - string: '{"status": "succeeded", "createdDateTime": "2020-06-11T15:56:39Z", - "lastUpdatedDateTime": "2020-06-11T15:56:42Z", "analyzeResult": {"version": + string: '{"status": "succeeded", "createdDateTime": "2020-07-10T18:53:48Z", + "lastUpdatedDateTime": "2020-07-10T18:53:51Z", "analyzeResult": {"version": "2.0.0", "readResults": [{"page": 1, "angle": 0, "width": 8.5, "height": 11, "unit": "inch", "language": "en", "lines": [{"text": "Company A Invoice", "boundingBox": [0.8861, 1.1217, 2.3783, 1.1217, 2.3783, 1.2812, 0.8861, 1.2812], @@ -413,11 +411,11 @@ interactions: "confidence": 0.985, "elements": ["#/readResults/2/lines/36/words/1"]}}}]}}' headers: apim-request-id: - - 2726802c-d3e9-4d6f-be17-f1b503946385 + - 1eacf78f-159d-4c27-93e9-33d6053517c7 content-type: - application/json; charset=utf-8 date: - - Thu, 11 Jun 2020 15:56:44 GMT + - Fri, 10 Jul 2020 18:53:52 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -425,7 +423,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '18' + - '21' status: code: 200 message: OK diff --git a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_receipt_from_url.test_receipt_multipage_url.yaml b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_receipt_from_url.test_receipt_multipage_url.yaml index 23911543b04e..d35a7faceff1 100644 --- a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_receipt_from_url.test_receipt_multipage_url.yaml +++ b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_receipt_from_url.test_receipt_multipage_url.yaml @@ -13,28 +13,27 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) method: POST - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/prebuilt/receipt/analyze?includeTextDetails=true + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/prebuilt/receipt/analyze?includeTextDetails=true response: body: string: '' headers: apim-request-id: - - edf7a6fb-8724-4bdb-993b-c31cdb6777a6 + - 703f3b1f-aea2-46a7-b72d-86392ec4ebcf content-length: - '0' date: - - Thu, 11 Jun 2020 15:44:13 GMT + - Fri, 10 Jul 2020 18:53:54 GMT operation-location: - - https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/prebuilt/receipt/analyzeResults/edf7a6fb-8724-4bdb-993b-c31cdb6777a6 + - https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/prebuilt/receipt/analyzeResults/703f3b1f-aea2-46a7-b72d-86392ec4ebcf strict-transport-security: - max-age=31536000; includeSubDomains; preload x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '132' + - '142' status: code: 202 message: Accepted @@ -48,86 +47,13 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/prebuilt/receipt/analyzeResults/edf7a6fb-8724-4bdb-993b-c31cdb6777a6 + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/prebuilt/receipt/analyzeResults/703f3b1f-aea2-46a7-b72d-86392ec4ebcf response: body: - string: '{"status": "running", "createdDateTime": "2020-06-11T15:44:14Z", "lastUpdatedDateTime": - "2020-06-11T15:44:14Z"}' - headers: - apim-request-id: - - 370fd758-176b-4953-b855-4d027eb6daf9 - content-type: - - application/json; charset=utf-8 - date: - - Thu, 11 Jun 2020 15:44:19 GMT - strict-transport-security: - - max-age=31536000; includeSubDomains; preload - transfer-encoding: - - chunked - x-content-type-options: - - nosniff - x-envoy-upstream-service-time: - - '9' - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) - method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/prebuilt/receipt/analyzeResults/edf7a6fb-8724-4bdb-993b-c31cdb6777a6 - response: - body: - string: '{"status": "running", "createdDateTime": "2020-06-11T15:44:14Z", "lastUpdatedDateTime": - "2020-06-11T15:44:14Z"}' - headers: - apim-request-id: - - 96e36550-54f8-4fe5-bba8-9acca8435382 - content-type: - - application/json; charset=utf-8 - date: - - Thu, 11 Jun 2020 15:44:24 GMT - strict-transport-security: - - max-age=31536000; includeSubDomains; preload - transfer-encoding: - - chunked - x-content-type-options: - - nosniff - x-envoy-upstream-service-time: - - '7' - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) - method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/prebuilt/receipt/analyzeResults/edf7a6fb-8724-4bdb-993b-c31cdb6777a6 - response: - body: - string: '{"status": "succeeded", "createdDateTime": "2020-06-11T15:44:14Z", - "lastUpdatedDateTime": "2020-06-11T15:44:26Z", "analyzeResult": {"version": + string: '{"status": "succeeded", "createdDateTime": "2020-07-10T18:53:54Z", + "lastUpdatedDateTime": "2020-07-10T18:53:57Z", "analyzeResult": {"version": "2.0.0", "readResults": [{"page": 1, "angle": 0, "width": 8.5, "height": 11, "unit": "inch", "language": "en", "lines": [{"text": "Company A Invoice", "boundingBox": [0.8861, 1.1217, 2.3783, 1.1217, 2.3783, 1.2812, 0.8861, 1.2812], @@ -485,11 +411,11 @@ interactions: "confidence": 0.985, "elements": ["#/readResults/2/lines/36/words/1"]}}}]}}' headers: apim-request-id: - - 0d3e29a3-8eef-4f9b-9f0b-10af86fecf3b + - 45802e17-6678-4e74-8521-6ad5601fe625 content-type: - application/json; charset=utf-8 date: - - Thu, 11 Jun 2020 15:44:29 GMT + - Fri, 10 Jul 2020 18:53:59 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -497,7 +423,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '20' + - '21' status: code: 200 message: OK diff --git a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_receipt_from_url.test_receipt_url_auth_bad_key.yaml b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_receipt_from_url.test_receipt_url_auth_bad_key.yaml index c40f0cc73a9f..f5c93851b71a 100644 --- a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_receipt_from_url.test_receipt_url_auth_bad_key.yaml +++ b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_receipt_from_url.test_receipt_url_auth_bad_key.yaml @@ -13,21 +13,30 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) method: POST - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/prebuilt/receipt/analyze?includeTextDetails=false + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/prebuilt/receipt/analyze?includeTextDetails=false response: body: string: '{"error": {"code": "401", "message": "Access denied due to invalid subscription key or wrong API endpoint. Make sure to provide a valid key for an active subscription and use a correct regional API endpoint for your resource."}}' headers: + apim-request-id: + - 21b84f32-b41e-4208-94ad-26d3c90500b4 content-length: - - '224' + - '225' + content-type: + - application/json date: - - Thu, 11 Jun 2020 15:44:14 GMT + - Fri, 10 Jul 2020 18:53:59 GMT + strict-transport-security: + - max-age=31536000; includeSubDomains; preload + www-authenticate: + - AzureApiManagementKey realm="https://centraluseuap.api.cognitive.microsoft.com/formrecognizer",name="Ocp-Apim-Subscription-Key",type="header" + x-content-type-options: + - nosniff status: code: 401 - message: PermissionDenied + message: Access Denied version: 1 diff --git a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_receipt_from_url.test_receipt_url_auth_successful_key.yaml b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_receipt_from_url.test_receipt_url_auth_successful_key.yaml index 95b8eae58dd6..bc6ab27e60d2 100644 --- a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_receipt_from_url.test_receipt_url_auth_successful_key.yaml +++ b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_receipt_from_url.test_receipt_url_auth_successful_key.yaml @@ -13,28 +13,27 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) method: POST - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/prebuilt/receipt/analyze?includeTextDetails=false + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/prebuilt/receipt/analyze?includeTextDetails=false response: body: string: '' headers: apim-request-id: - - 06001676-9ce1-41d8-8f6b-837c8a8463eb + - 6244a7c4-4064-4f25-a4a5-62e101708344 content-length: - '0' date: - - Thu, 11 Jun 2020 15:44:15 GMT + - Fri, 10 Jul 2020 18:54:00 GMT operation-location: - - https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/prebuilt/receipt/analyzeResults/06001676-9ce1-41d8-8f6b-837c8a8463eb + - https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/prebuilt/receipt/analyzeResults/6244a7c4-4064-4f25-a4a5-62e101708344 strict-transport-security: - max-age=31536000; includeSubDomains; preload x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '308' + - '160' status: code: 202 message: Accepted @@ -48,14 +47,13 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/prebuilt/receipt/analyzeResults/06001676-9ce1-41d8-8f6b-837c8a8463eb + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/prebuilt/receipt/analyzeResults/6244a7c4-4064-4f25-a4a5-62e101708344 response: body: - string: '{"status": "succeeded", "createdDateTime": "2020-06-11T15:44:15Z", - "lastUpdatedDateTime": "2020-06-11T15:44:17Z", "analyzeResult": {"version": + string: '{"status": "succeeded", "createdDateTime": "2020-07-10T18:54:00Z", + "lastUpdatedDateTime": "2020-07-10T18:54:03Z", "analyzeResult": {"version": "2.0.0", "readResults": [{"page": 1, "angle": 0.6893, "width": 1688, "height": 3000, "unit": "pixel", "language": "en"}], "documentResults": [{"docType": "prebuilt:receipt", "pageRange": [1, 1], "fields": {"ReceiptType": {"type": @@ -98,11 +96,11 @@ interactions: "page": 1, "confidence": 0.985}}}]}}' headers: apim-request-id: - - 3c111013-7480-43f7-82dd-66c1d8c067bc + - 5fa26e83-a1d2-4dcf-86c8-75044c399a3e content-type: - application/json; charset=utf-8 date: - - Thu, 11 Jun 2020 15:44:20 GMT + - Fri, 10 Jul 2020 18:54:05 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: diff --git a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_receipt_from_url.test_receipt_url_include_field_elements.yaml b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_receipt_from_url.test_receipt_url_include_field_elements.yaml index c9862e5c6927..fcb8c6562b59 100644 --- a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_receipt_from_url.test_receipt_url_include_field_elements.yaml +++ b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_receipt_from_url.test_receipt_url_include_field_elements.yaml @@ -13,28 +13,27 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) method: POST - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/prebuilt/receipt/analyze?includeTextDetails=true + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/prebuilt/receipt/analyze?includeTextDetails=true response: body: string: '' headers: apim-request-id: - - 06030bf6-7ed1-4066-93b0-df1c8ee6b0e8 + - 98706aae-1ac6-490e-9dfb-d1134e2ee9b1 content-length: - '0' date: - - Thu, 11 Jun 2020 15:44:37 GMT + - Fri, 10 Jul 2020 18:53:24 GMT operation-location: - - https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/prebuilt/receipt/analyzeResults/06030bf6-7ed1-4066-93b0-df1c8ee6b0e8 + - https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/prebuilt/receipt/analyzeResults/98706aae-1ac6-490e-9dfb-d1134e2ee9b1 strict-transport-security: - max-age=31536000; includeSubDomains; preload x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '135' + - '246' status: code: 202 message: Accepted @@ -48,14 +47,13 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/prebuilt/receipt/analyzeResults/06030bf6-7ed1-4066-93b0-df1c8ee6b0e8 + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/prebuilt/receipt/analyzeResults/98706aae-1ac6-490e-9dfb-d1134e2ee9b1 response: body: - string: '{"status": "succeeded", "createdDateTime": "2020-06-11T15:44:37Z", - "lastUpdatedDateTime": "2020-06-11T15:44:39Z", "analyzeResult": {"version": + string: '{"status": "succeeded", "createdDateTime": "2020-07-10T18:53:24Z", + "lastUpdatedDateTime": "2020-07-10T18:53:25Z", "analyzeResult": {"version": "2.0.0", "readResults": [{"page": 1, "angle": 0.6893, "width": 1688, "height": 3000, "unit": "pixel", "language": "en", "lines": [{"text": "Contoso", "boundingBox": [635, 510, 1086, 461, 1098, 558, 643, 604], "words": [{"text": "Contoso", @@ -178,11 +176,11 @@ interactions: 0.985, "elements": ["#/readResults/0/lines/19/words/0"]}}}]}}' headers: apim-request-id: - - b0f15f50-3cbd-4a5e-babd-07ef94086681 + - a4cf212e-0eb3-4ecc-bcb1-d110d8ea1a75 content-type: - application/json; charset=utf-8 date: - - Thu, 11 Jun 2020 15:44:41 GMT + - Fri, 10 Jul 2020 18:53:29 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -190,7 +188,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '14' + - '15' status: code: 200 message: OK diff --git a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_receipt_from_url.test_receipt_url_jpg.yaml b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_receipt_from_url.test_receipt_url_jpg.yaml index 860bcbae3c9a..2883a132c8a0 100644 --- a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_receipt_from_url.test_receipt_url_jpg.yaml +++ b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_receipt_from_url.test_receipt_url_jpg.yaml @@ -13,28 +13,27 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) method: POST - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/prebuilt/receipt/analyze?includeTextDetails=false + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/prebuilt/receipt/analyze?includeTextDetails=false response: body: string: '' headers: apim-request-id: - - b7260eb2-089c-4a93-8195-d56da22b9a0f + - 7b004ef0-2dbb-4be5-ab4f-ad4f9d586dce content-length: - '0' date: - - Thu, 11 Jun 2020 15:44:18 GMT + - Fri, 10 Jul 2020 18:53:30 GMT operation-location: - - https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/prebuilt/receipt/analyzeResults/b7260eb2-089c-4a93-8195-d56da22b9a0f + - https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/prebuilt/receipt/analyzeResults/7b004ef0-2dbb-4be5-ab4f-ad4f9d586dce strict-transport-security: - max-age=31536000; includeSubDomains; preload x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '295' + - '229' status: code: 202 message: Accepted @@ -48,14 +47,13 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/prebuilt/receipt/analyzeResults/b7260eb2-089c-4a93-8195-d56da22b9a0f + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/prebuilt/receipt/analyzeResults/7b004ef0-2dbb-4be5-ab4f-ad4f9d586dce response: body: - string: '{"status": "succeeded", "createdDateTime": "2020-06-11T15:44:18Z", - "lastUpdatedDateTime": "2020-06-11T15:44:19Z", "analyzeResult": {"version": + string: '{"status": "succeeded", "createdDateTime": "2020-07-10T18:53:29Z", + "lastUpdatedDateTime": "2020-07-10T18:53:31Z", "analyzeResult": {"version": "2.0.0", "readResults": [{"page": 1, "angle": 0.6893, "width": 1688, "height": 3000, "unit": "pixel", "language": "en"}], "documentResults": [{"docType": "prebuilt:receipt", "pageRange": [1, 1], "fields": {"ReceiptType": {"type": @@ -98,11 +96,11 @@ interactions: "page": 1, "confidence": 0.985}}}]}}' headers: apim-request-id: - - 22ef87d5-7582-4002-a872-32a999c009bb + - 0c52fdea-21c6-42f6-97d3-c52b81cc6607 content-type: - application/json; charset=utf-8 date: - - Thu, 11 Jun 2020 15:44:22 GMT + - Fri, 10 Jul 2020 18:53:34 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: diff --git a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_receipt_from_url.test_receipt_url_pass_stream.yaml b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_receipt_from_url.test_receipt_url_pass_stream.yaml index d41c80a59dc7..9ddd5566b2ae 100644 --- a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_receipt_from_url.test_receipt_url_pass_stream.yaml +++ b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_receipt_from_url.test_receipt_url_pass_stream.yaml @@ -13,21 +13,20 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) method: POST - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/prebuilt/receipt/analyze?includeTextDetails=false + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/prebuilt/receipt/analyze?includeTextDetails=false response: body: - string: '{"error": {"code": "InvalidImageURL", "innerError": {"requestId": "f7eb6b8a-6642-4e39-8a09-ccca2f1028d0"}, + string: '{"error": {"code": "InvalidImageURL", "innerError": {"requestId": "25ea25c2-45c5-45ba-aa88-5ac327a59957"}, "message": "Image URL is badly formatted."}}' headers: apim-request-id: - - f7eb6b8a-6642-4e39-8a09-ccca2f1028d0 + - 25ea25c2-45c5-45ba-aa88-5ac327a59957 content-type: - application/json; charset=utf-8 date: - - Thu, 11 Jun 2020 15:44:23 GMT + - Fri, 10 Jul 2020 18:53:35 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: diff --git a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_receipt_from_url.test_receipt_url_png.yaml b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_receipt_from_url.test_receipt_url_png.yaml index ed0d1a5e5522..854289cee5e9 100644 --- a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_receipt_from_url.test_receipt_url_png.yaml +++ b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_receipt_from_url.test_receipt_url_png.yaml @@ -13,28 +13,27 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) method: POST - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/prebuilt/receipt/analyze?includeTextDetails=false + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/prebuilt/receipt/analyze?includeTextDetails=false response: body: string: '' headers: apim-request-id: - - be9c02d9-3a78-4246-99f0-e2af6a48be43 + - a5bb5fb2-23aa-41f3-98f4-fb2b8ac9ce7d content-length: - '0' date: - - Thu, 11 Jun 2020 15:44:30 GMT + - Fri, 10 Jul 2020 18:53:36 GMT operation-location: - - https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/prebuilt/receipt/analyzeResults/be9c02d9-3a78-4246-99f0-e2af6a48be43 + - https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/prebuilt/receipt/analyzeResults/a5bb5fb2-23aa-41f3-98f4-fb2b8ac9ce7d strict-transport-security: - max-age=31536000; includeSubDomains; preload x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '253' + - '478' status: code: 202 message: Accepted @@ -48,14 +47,13 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/prebuilt/receipt/analyzeResults/be9c02d9-3a78-4246-99f0-e2af6a48be43 + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/prebuilt/receipt/analyzeResults/a5bb5fb2-23aa-41f3-98f4-fb2b8ac9ce7d response: body: - string: '{"status": "succeeded", "createdDateTime": "2020-06-11T15:44:30Z", - "lastUpdatedDateTime": "2020-06-11T15:44:32Z", "analyzeResult": {"version": + string: '{"status": "succeeded", "createdDateTime": "2020-07-10T18:53:36Z", + "lastUpdatedDateTime": "2020-07-10T18:53:39Z", "analyzeResult": {"version": "2.0.0", "readResults": [{"page": 1, "angle": 0.2511, "width": 1688, "height": 3000, "unit": "pixel", "language": "en"}], "documentResults": [{"docType": "prebuilt:receipt", "pageRange": [1, 1], "fields": {"ReceiptType": {"type": @@ -94,11 +92,11 @@ interactions: 2678.1, 948.2, 2661], "page": 1, "confidence": 0.774}}}]}}' headers: apim-request-id: - - d1d87fbb-92ad-4ada-92c1-f425a7960a4e + - bf3b1151-cbcf-4290-a65a-9e2fd54844b4 content-type: - application/json; charset=utf-8 date: - - Thu, 11 Jun 2020 15:44:35 GMT + - Fri, 10 Jul 2020 18:53:41 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -106,7 +104,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '14' + - '15' status: code: 200 message: OK diff --git a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_receipt_from_url.test_receipt_url_transform_jpg.yaml b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_receipt_from_url.test_receipt_url_transform_jpg.yaml index 333af6b7e404..1734dab3bb32 100644 --- a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_receipt_from_url.test_receipt_url_transform_jpg.yaml +++ b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_receipt_from_url.test_receipt_url_transform_jpg.yaml @@ -13,28 +13,27 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) method: POST - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/prebuilt/receipt/analyze?includeTextDetails=true + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/prebuilt/receipt/analyze?includeTextDetails=true response: body: string: '' headers: apim-request-id: - - f6f37093-c0ff-4242-86e5-d5cfa1049e1c + - 4c5a1914-5ce4-40ae-a9e1-e25a9b29d33b content-length: - '0' date: - - Thu, 11 Jun 2020 15:44:36 GMT + - Fri, 10 Jul 2020 18:53:41 GMT operation-location: - - https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/prebuilt/receipt/analyzeResults/f6f37093-c0ff-4242-86e5-d5cfa1049e1c + - https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/prebuilt/receipt/analyzeResults/4c5a1914-5ce4-40ae-a9e1-e25a9b29d33b strict-transport-security: - max-age=31536000; includeSubDomains; preload x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '114' + - '161' status: code: 202 message: Accepted @@ -48,14 +47,13 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/prebuilt/receipt/analyzeResults/f6f37093-c0ff-4242-86e5-d5cfa1049e1c + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/prebuilt/receipt/analyzeResults/4c5a1914-5ce4-40ae-a9e1-e25a9b29d33b response: body: - string: '{"status": "succeeded", "createdDateTime": "2020-06-11T15:44:36Z", - "lastUpdatedDateTime": "2020-06-11T15:44:38Z", "analyzeResult": {"version": + string: '{"status": "succeeded", "createdDateTime": "2020-07-10T18:53:42Z", + "lastUpdatedDateTime": "2020-07-10T18:53:44Z", "analyzeResult": {"version": "2.0.0", "readResults": [{"page": 1, "angle": 0.6893, "width": 1688, "height": 3000, "unit": "pixel", "language": "en", "lines": [{"text": "Contoso", "boundingBox": [635, 510, 1086, 461, 1098, 558, 643, 604], "words": [{"text": "Contoso", @@ -178,11 +176,11 @@ interactions: 0.985, "elements": ["#/readResults/0/lines/19/words/0"]}}}]}}' headers: apim-request-id: - - 02e71458-0f03-47a6-9afa-2da8bbea3120 + - a986e631-e88e-4005-973f-ab101602abc3 content-type: - application/json; charset=utf-8 date: - - Thu, 11 Jun 2020 15:44:40 GMT + - Fri, 10 Jul 2020 18:53:46 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -190,7 +188,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '53' + - '18' status: code: 200 message: OK diff --git a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_receipt_from_url.test_receipt_url_transform_png.yaml b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_receipt_from_url.test_receipt_url_transform_png.yaml index ca63109be1a7..ce2622c3b59b 100644 --- a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_receipt_from_url.test_receipt_url_transform_png.yaml +++ b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_receipt_from_url.test_receipt_url_transform_png.yaml @@ -13,28 +13,27 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) method: POST - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/prebuilt/receipt/analyze?includeTextDetails=true + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/prebuilt/receipt/analyze?includeTextDetails=true response: body: string: '' headers: apim-request-id: - - 5672323e-903c-4821-bcbb-0899868bd1e8 + - b4d66064-7ae6-412c-bcd5-34505dc4891d content-length: - '0' date: - - Thu, 11 Jun 2020 15:44:20 GMT + - Fri, 10 Jul 2020 18:53:48 GMT operation-location: - - https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/prebuilt/receipt/analyzeResults/5672323e-903c-4821-bcbb-0899868bd1e8 + - https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/prebuilt/receipt/analyzeResults/b4d66064-7ae6-412c-bcd5-34505dc4891d strict-transport-security: - max-age=31536000; includeSubDomains; preload x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '424' + - '322' status: code: 202 message: Accepted @@ -48,14 +47,13 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/prebuilt/receipt/analyzeResults/5672323e-903c-4821-bcbb-0899868bd1e8 + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/prebuilt/receipt/analyzeResults/b4d66064-7ae6-412c-bcd5-34505dc4891d response: body: - string: '{"status": "succeeded", "createdDateTime": "2020-06-11T15:44:21Z", - "lastUpdatedDateTime": "2020-06-11T15:44:23Z", "analyzeResult": {"version": + string: '{"status": "succeeded", "createdDateTime": "2020-07-10T18:53:48Z", + "lastUpdatedDateTime": "2020-07-10T18:53:50Z", "analyzeResult": {"version": "2.0.0", "readResults": [{"page": 1, "angle": 0.2511, "width": 1688, "height": 3000, "unit": "pixel", "language": "en", "lines": [{"text": "Contoso", "boundingBox": [619, 291, 1051, 284, 1053, 384, 620, 396], "words": [{"text": "Contoso", @@ -182,11 +180,11 @@ interactions: 0.774, "elements": ["#/readResults/0/lines/18/words/1"]}}}]}}' headers: apim-request-id: - - 8f0c6c5a-ccab-40bd-97ba-fabed67e3e6f + - 6561f3f2-a33a-4236-a096-535002be35bb content-type: - application/json; charset=utf-8 date: - - Thu, 11 Jun 2020 15:44:25 GMT + - Fri, 10 Jul 2020 18:53:53 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -194,7 +192,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '14' + - '17' status: code: 200 message: OK diff --git a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_receipt_from_url.test_receipts_encoded_url.yaml b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_receipt_from_url.test_receipts_encoded_url.yaml index 927d4d5156ba..37ac0de85667 100644 --- a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_receipt_from_url.test_receipts_encoded_url.yaml +++ b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_receipt_from_url.test_receipts_encoded_url.yaml @@ -13,22 +13,21 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) method: POST - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/prebuilt/receipt/analyze?includeTextDetails=false + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/prebuilt/receipt/analyze?includeTextDetails=false response: body: string: '{"error": {"code": "FailedToDownloadImage", "innerError": {"requestId": - "25ef376a-66b0-400f-96bf-033e614f965f"}, "message": "Failed to download image + "73804c1d-4999-420b-8cfd-9a20f3ea602b"}, "message": "Failed to download image from input URL."}}' headers: apim-request-id: - - 25ef376a-66b0-400f-96bf-033e614f965f + - 73804c1d-4999-420b-8cfd-9a20f3ea602b content-type: - application/json; charset=utf-8 date: - - Mon, 15 Jun 2020 18:26:28 GMT + - Fri, 10 Jul 2020 18:53:57 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -36,7 +35,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '5975' + - '3888' status: code: 400 message: Bad Request diff --git a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_receipt_from_url_async.test_polling_interval.yaml b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_receipt_from_url_async.test_polling_interval.yaml index dc830a4c8ab7..9ce216541286 100644 --- a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_receipt_from_url_async.test_polling_interval.yaml +++ b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_receipt_from_url_async.test_polling_interval.yaml @@ -7,37 +7,35 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) method: POST - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/prebuilt/receipt/analyze?includeTextDetails=false + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/prebuilt/receipt/analyze?includeTextDetails=false response: body: string: '' headers: - apim-request-id: daea113a-952a-44c6-b9ff-22690d2f8c46 + apim-request-id: 1ab3a403-fd73-4278-bd41-6158738e7d06 content-length: '0' - date: Fri, 12 Jun 2020 17:00:04 GMT - operation-location: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/prebuilt/receipt/analyzeResults/daea113a-952a-44c6-b9ff-22690d2f8c46 + date: Fri, 10 Jul 2020 18:53:58 GMT + operation-location: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/prebuilt/receipt/analyzeResults/1ab3a403-fd73-4278-bd41-6158738e7d06 strict-transport-security: max-age=31536000; includeSubDomains; preload x-content-type-options: nosniff - x-envoy-upstream-service-time: '488' + x-envoy-upstream-service-time: '160' status: code: 202 message: Accepted - url: https://centraluseuap.api.cognitive.microsoft.com//formrecognizer/v2.0-preview/prebuilt/receipt/analyze?includeTextDetails=false + url: https://centraluseuap.api.cognitive.microsoft.com//formrecognizer/v2.0/prebuilt/receipt/analyze?includeTextDetails=false - request: body: null headers: User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/prebuilt/receipt/analyzeResults/daea113a-952a-44c6-b9ff-22690d2f8c46 + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/prebuilt/receipt/analyzeResults/1ab3a403-fd73-4278-bd41-6158738e7d06 response: body: - string: '{"status": "succeeded", "createdDateTime": "2020-06-12T17:00:04Z", - "lastUpdatedDateTime": "2020-06-12T17:00:06Z", "analyzeResult": {"version": + string: '{"status": "succeeded", "createdDateTime": "2020-07-10T18:53:59Z", + "lastUpdatedDateTime": "2020-07-10T18:54:01Z", "analyzeResult": {"version": "2.0.0", "readResults": [{"page": 1, "angle": 0.6893, "width": 1688, "height": 3000, "unit": "pixel", "language": "en"}], "documentResults": [{"docType": "prebuilt:receipt", "pageRange": [1, 1], "fields": {"ReceiptType": {"type": @@ -79,17 +77,17 @@ interactions: "boundingBox": [1034.2, 2617, 1387.5, 2638.2, 1380, 2763, 1026.7, 2741.8], "page": 1, "confidence": 0.985}}}]}}' headers: - apim-request-id: d2b56931-1870-4c76-ae23-89ebe5c56143 + apim-request-id: d08fc23f-e1c3-4bfe-976f-729201c6918f content-type: application/json; charset=utf-8 - date: Fri, 12 Jun 2020 17:00:09 GMT + date: Fri, 10 Jul 2020 18:54:05 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '38' + x-envoy-upstream-service-time: '13' status: code: 200 message: OK - url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/prebuilt/receipt/analyzeResults/daea113a-952a-44c6-b9ff-22690d2f8c46 + url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/prebuilt/receipt/analyzeResults/1ab3a403-fd73-4278-bd41-6158738e7d06 - request: body: 'b''{"source": "https://raw.githubusercontent.com/Azure/azure-sdk-for-python/master/sdk/formrecognizer/azure-ai-formrecognizer/tests/sample_forms/receipt/contoso-allinone.jpg"}''' headers: @@ -98,37 +96,35 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) method: POST - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/prebuilt/receipt/analyze?includeTextDetails=false + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/prebuilt/receipt/analyze?includeTextDetails=false response: body: string: '' headers: - apim-request-id: aefd083e-3ba3-4f84-beb5-719d583936d0 + apim-request-id: 975aaabd-4595-4151-ae66-56fd38cdc184 content-length: '0' - date: Fri, 12 Jun 2020 17:00:10 GMT - operation-location: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/prebuilt/receipt/analyzeResults/aefd083e-3ba3-4f84-beb5-719d583936d0 + date: Fri, 10 Jul 2020 18:54:05 GMT + operation-location: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/prebuilt/receipt/analyzeResults/975aaabd-4595-4151-ae66-56fd38cdc184 strict-transport-security: max-age=31536000; includeSubDomains; preload x-content-type-options: nosniff - x-envoy-upstream-service-time: '336' + x-envoy-upstream-service-time: '149' status: code: 202 message: Accepted - url: https://centraluseuap.api.cognitive.microsoft.com//formrecognizer/v2.0-preview/prebuilt/receipt/analyze?includeTextDetails=false + url: https://centraluseuap.api.cognitive.microsoft.com//formrecognizer/v2.0/prebuilt/receipt/analyze?includeTextDetails=false - request: body: null headers: User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/prebuilt/receipt/analyzeResults/aefd083e-3ba3-4f84-beb5-719d583936d0 + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/prebuilt/receipt/analyzeResults/975aaabd-4595-4151-ae66-56fd38cdc184 response: body: - string: '{"status": "succeeded", "createdDateTime": "2020-06-12T17:00:10Z", - "lastUpdatedDateTime": "2020-06-12T17:00:13Z", "analyzeResult": {"version": + string: '{"status": "succeeded", "createdDateTime": "2020-07-10T18:54:05Z", + "lastUpdatedDateTime": "2020-07-10T18:54:07Z", "analyzeResult": {"version": "2.0.0", "readResults": [{"page": 1, "angle": 0.6893, "width": 1688, "height": 3000, "unit": "pixel", "language": "en"}], "documentResults": [{"docType": "prebuilt:receipt", "pageRange": [1, 1], "fields": {"ReceiptType": {"type": @@ -170,15 +166,15 @@ interactions: "boundingBox": [1034.2, 2617, 1387.5, 2638.2, 1380, 2763, 1026.7, 2741.8], "page": 1, "confidence": 0.985}}}]}}' headers: - apim-request-id: 0f0d31ca-86d6-4fd4-9407-fdaa170bc62b + apim-request-id: 85eaf982-a7eb-430c-bfa7-77e5e20fa593 content-type: application/json; charset=utf-8 - date: Fri, 12 Jun 2020 17:00:17 GMT + date: Fri, 10 Jul 2020 18:54:12 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '212' + x-envoy-upstream-service-time: '13' status: code: 200 message: OK - url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/prebuilt/receipt/analyzeResults/aefd083e-3ba3-4f84-beb5-719d583936d0 + url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/prebuilt/receipt/analyzeResults/975aaabd-4595-4151-ae66-56fd38cdc184 version: 1 diff --git a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_receipt_from_url_async.test_receipt_bad_url.yaml b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_receipt_from_url_async.test_receipt_bad_url.yaml index f3f47b8c2237..1bf5907a569c 100644 --- a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_receipt_from_url_async.test_receipt_bad_url.yaml +++ b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_receipt_from_url_async.test_receipt_bad_url.yaml @@ -7,25 +7,24 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) method: POST - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/prebuilt/receipt/analyze?includeTextDetails=false + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/prebuilt/receipt/analyze?includeTextDetails=false response: body: string: '{"error": {"code": "FailedToDownloadImage", "innerError": {"requestId": - "dfbfa013-41d3-46dd-be7f-c94484b540cf"}, "message": "Failed to download image + "5c96f743-428b-4ebc-a8db-a6ec4eb57bc8"}, "message": "Failed to download image from input URL."}}' headers: - apim-request-id: dfbfa013-41d3-46dd-be7f-c94484b540cf + apim-request-id: 5c96f743-428b-4ebc-a8db-a6ec4eb57bc8 content-type: application/json; charset=utf-8 - date: Thu, 11 Jun 2020 15:44:26 GMT + date: Fri, 10 Jul 2020 18:54:15 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '3176' + x-envoy-upstream-service-time: '3062' status: code: 400 message: Bad Request - url: https://centraluseuap.api.cognitive.microsoft.com//formrecognizer/v2.0-preview/prebuilt/receipt/analyze?includeTextDetails=false + url: https://centraluseuap.api.cognitive.microsoft.com//formrecognizer/v2.0/prebuilt/receipt/analyze?includeTextDetails=false version: 1 diff --git a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_receipt_from_url_async.test_receipt_multipage_transform_url.yaml b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_receipt_from_url_async.test_receipt_multipage_transform_url.yaml index 741d87486f72..69f41b26833b 100644 --- a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_receipt_from_url_async.test_receipt_multipage_transform_url.yaml +++ b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_receipt_from_url_async.test_receipt_multipage_transform_url.yaml @@ -7,37 +7,35 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) method: POST - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/prebuilt/receipt/analyze?includeTextDetails=true + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/prebuilt/receipt/analyze?includeTextDetails=true response: body: string: '' headers: - apim-request-id: 85da910d-93d2-4669-8e92-bd5b4ae0e5c6 + apim-request-id: 719b20d5-2686-4068-b213-d3356c52391f content-length: '0' - date: Thu, 11 Jun 2020 15:56:46 GMT - operation-location: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/prebuilt/receipt/analyzeResults/85da910d-93d2-4669-8e92-bd5b4ae0e5c6 + date: Fri, 10 Jul 2020 18:54:27 GMT + operation-location: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/prebuilt/receipt/analyzeResults/719b20d5-2686-4068-b213-d3356c52391f strict-transport-security: max-age=31536000; includeSubDomains; preload x-content-type-options: nosniff - x-envoy-upstream-service-time: '406' + x-envoy-upstream-service-time: '143' status: code: 202 message: Accepted - url: https://centraluseuap.api.cognitive.microsoft.com//formrecognizer/v2.0-preview/prebuilt/receipt/analyze?includeTextDetails=true + url: https://centraluseuap.api.cognitive.microsoft.com//formrecognizer/v2.0/prebuilt/receipt/analyze?includeTextDetails=true - request: body: null headers: User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/prebuilt/receipt/analyzeResults/85da910d-93d2-4669-8e92-bd5b4ae0e5c6 + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/prebuilt/receipt/analyzeResults/719b20d5-2686-4068-b213-d3356c52391f response: body: - string: '{"status": "succeeded", "createdDateTime": "2020-06-11T15:56:45Z", - "lastUpdatedDateTime": "2020-06-11T15:56:50Z", "analyzeResult": {"version": + string: '{"status": "succeeded", "createdDateTime": "2020-07-10T18:54:27Z", + "lastUpdatedDateTime": "2020-07-10T18:54:30Z", "analyzeResult": {"version": "2.0.0", "readResults": [{"page": 1, "angle": 0, "width": 8.5, "height": 11, "unit": "inch", "language": "en", "lines": [{"text": "Company A Invoice", "boundingBox": [0.8861, 1.1217, 2.3783, 1.1217, 2.3783, 1.2812, 0.8861, 1.2812], @@ -394,15 +392,15 @@ interactions: [5.811, 5.3445, 6.3422, 5.3445, 6.3422, 5.4533, 5.811, 5.4533], "page": 3, "confidence": 0.985, "elements": ["#/readResults/2/lines/36/words/1"]}}}]}}' headers: - apim-request-id: 5d99f2c0-0afe-48c0-9bae-0b8cbd83a612 + apim-request-id: a007bed8-8060-4d7d-8887-fb38c372be65 content-type: application/json; charset=utf-8 - date: Thu, 11 Jun 2020 15:56:50 GMT + date: Fri, 10 Jul 2020 18:54:32 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '19' + x-envoy-upstream-service-time: '24' status: code: 200 message: OK - url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/prebuilt/receipt/analyzeResults/85da910d-93d2-4669-8e92-bd5b4ae0e5c6 + url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/prebuilt/receipt/analyzeResults/719b20d5-2686-4068-b213-d3356c52391f version: 1 diff --git a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_receipt_from_url_async.test_receipt_multipage_url.yaml b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_receipt_from_url_async.test_receipt_multipage_url.yaml index d723801db801..c69bb6fce256 100644 --- a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_receipt_from_url_async.test_receipt_multipage_url.yaml +++ b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_receipt_from_url_async.test_receipt_multipage_url.yaml @@ -7,37 +7,35 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) method: POST - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/prebuilt/receipt/analyze?includeTextDetails=true + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/prebuilt/receipt/analyze?includeTextDetails=true response: body: string: '' headers: - apim-request-id: ada5a66c-e15c-41c3-8a30-73e7055dc581 + apim-request-id: fd160496-4aa4-473b-9a84-2f0438929e13 content-length: '0' - date: Thu, 11 Jun 2020 15:44:30 GMT - operation-location: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/prebuilt/receipt/analyzeResults/ada5a66c-e15c-41c3-8a30-73e7055dc581 + date: Fri, 10 Jul 2020 18:54:32 GMT + operation-location: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/prebuilt/receipt/analyzeResults/fd160496-4aa4-473b-9a84-2f0438929e13 strict-transport-security: max-age=31536000; includeSubDomains; preload x-content-type-options: nosniff - x-envoy-upstream-service-time: '121' + x-envoy-upstream-service-time: '211' status: code: 202 message: Accepted - url: https://centraluseuap.api.cognitive.microsoft.com//formrecognizer/v2.0-preview/prebuilt/receipt/analyze?includeTextDetails=true + url: https://centraluseuap.api.cognitive.microsoft.com//formrecognizer/v2.0/prebuilt/receipt/analyze?includeTextDetails=true - request: body: null headers: User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/prebuilt/receipt/analyzeResults/ada5a66c-e15c-41c3-8a30-73e7055dc581 + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/prebuilt/receipt/analyzeResults/fd160496-4aa4-473b-9a84-2f0438929e13 response: body: - string: '{"status": "succeeded", "createdDateTime": "2020-06-11T15:44:30Z", - "lastUpdatedDateTime": "2020-06-11T15:44:34Z", "analyzeResult": {"version": + string: '{"status": "succeeded", "createdDateTime": "2020-07-10T18:54:33Z", + "lastUpdatedDateTime": "2020-07-10T18:54:36Z", "analyzeResult": {"version": "2.0.0", "readResults": [{"page": 1, "angle": 0, "width": 8.5, "height": 11, "unit": "inch", "language": "en", "lines": [{"text": "Company A Invoice", "boundingBox": [0.8861, 1.1217, 2.3783, 1.1217, 2.3783, 1.2812, 0.8861, 1.2812], @@ -394,15 +392,15 @@ interactions: [5.811, 5.3445, 6.3422, 5.3445, 6.3422, 5.4533, 5.811, 5.4533], "page": 3, "confidence": 0.985, "elements": ["#/readResults/2/lines/36/words/1"]}}}]}}' headers: - apim-request-id: 41695204-e6dc-415c-89ca-f90c7271a1b5 + apim-request-id: 6d7f7138-b11a-47ac-87a1-7155faf115a8 content-type: application/json; charset=utf-8 - date: Thu, 11 Jun 2020 15:44:35 GMT + date: Fri, 10 Jul 2020 18:54:37 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '18' + x-envoy-upstream-service-time: '23' status: code: 200 message: OK - url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/prebuilt/receipt/analyzeResults/ada5a66c-e15c-41c3-8a30-73e7055dc581 + url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/prebuilt/receipt/analyzeResults/fd160496-4aa4-473b-9a84-2f0438929e13 version: 1 diff --git a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_receipt_from_url_async.test_receipt_url_auth_bad_key.yaml b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_receipt_from_url_async.test_receipt_url_auth_bad_key.yaml index f7fd4db215ee..486e9b923a66 100644 --- a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_receipt_from_url_async.test_receipt_url_auth_bad_key.yaml +++ b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_receipt_from_url_async.test_receipt_url_auth_bad_key.yaml @@ -7,20 +7,24 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) method: POST - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/prebuilt/receipt/analyze?includeTextDetails=false + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/prebuilt/receipt/analyze?includeTextDetails=false response: body: string: '{"error": {"code": "401", "message": "Access denied due to invalid subscription key or wrong API endpoint. Make sure to provide a valid key for an active subscription and use a correct regional API endpoint for your resource."}}' headers: - content-length: '224' - date: Thu, 11 Jun 2020 15:44:56 GMT + apim-request-id: 05cbae83-0862-470d-a0a3-9ca240ccceb1 + content-length: '225' + content-type: application/json + date: Fri, 10 Jul 2020 18:54:38 GMT + strict-transport-security: max-age=31536000; includeSubDomains; preload + www-authenticate: AzureApiManagementKey realm="https://centraluseuap.api.cognitive.microsoft.com/formrecognizer",name="Ocp-Apim-Subscription-Key",type="header" + x-content-type-options: nosniff status: code: 401 - message: PermissionDenied - url: https://centraluseuap.api.cognitive.microsoft.com//formrecognizer/v2.0-preview/prebuilt/receipt/analyze?includeTextDetails=false + message: Access Denied + url: https://centraluseuap.api.cognitive.microsoft.com//formrecognizer/v2.0/prebuilt/receipt/analyze?includeTextDetails=false version: 1 diff --git a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_receipt_from_url_async.test_receipt_url_auth_successful_key.yaml b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_receipt_from_url_async.test_receipt_url_auth_successful_key.yaml index 8258394be3da..5b689ef0e1be 100644 --- a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_receipt_from_url_async.test_receipt_url_auth_successful_key.yaml +++ b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_receipt_from_url_async.test_receipt_url_auth_successful_key.yaml @@ -7,37 +7,35 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) method: POST - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/prebuilt/receipt/analyze?includeTextDetails=false + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/prebuilt/receipt/analyze?includeTextDetails=false response: body: string: '' headers: - apim-request-id: b5519716-55a5-4f85-b64b-afe2d7f8d6e9 + apim-request-id: 6d3381a6-a574-4ca2-b62c-996ef694e2f3 content-length: '0' - date: Thu, 11 Jun 2020 15:44:32 GMT - operation-location: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/prebuilt/receipt/analyzeResults/b5519716-55a5-4f85-b64b-afe2d7f8d6e9 + date: Fri, 10 Jul 2020 18:54:39 GMT + operation-location: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/prebuilt/receipt/analyzeResults/6d3381a6-a574-4ca2-b62c-996ef694e2f3 strict-transport-security: max-age=31536000; includeSubDomains; preload x-content-type-options: nosniff - x-envoy-upstream-service-time: '147' + x-envoy-upstream-service-time: '151' status: code: 202 message: Accepted - url: https://centraluseuap.api.cognitive.microsoft.com//formrecognizer/v2.0-preview/prebuilt/receipt/analyze?includeTextDetails=false + url: https://centraluseuap.api.cognitive.microsoft.com//formrecognizer/v2.0/prebuilt/receipt/analyze?includeTextDetails=false - request: body: null headers: User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/prebuilt/receipt/analyzeResults/b5519716-55a5-4f85-b64b-afe2d7f8d6e9 + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/prebuilt/receipt/analyzeResults/6d3381a6-a574-4ca2-b62c-996ef694e2f3 response: body: - string: '{"status": "succeeded", "createdDateTime": "2020-06-11T15:44:33Z", - "lastUpdatedDateTime": "2020-06-11T15:44:34Z", "analyzeResult": {"version": + string: '{"status": "succeeded", "createdDateTime": "2020-07-10T18:54:39Z", + "lastUpdatedDateTime": "2020-07-10T18:54:41Z", "analyzeResult": {"version": "2.0.0", "readResults": [{"page": 1, "angle": 0.6893, "width": 1688, "height": 3000, "unit": "pixel", "language": "en"}], "documentResults": [{"docType": "prebuilt:receipt", "pageRange": [1, 1], "fields": {"ReceiptType": {"type": @@ -79,15 +77,15 @@ interactions: "boundingBox": [1034.2, 2617, 1387.5, 2638.2, 1380, 2763, 1026.7, 2741.8], "page": 1, "confidence": 0.985}}}]}}' headers: - apim-request-id: 189ab4d1-82f5-4b0e-a6c1-bec66ae02fb8 + apim-request-id: 7a41a04c-b467-40ef-8df0-2a497f4434b1 content-type: application/json; charset=utf-8 - date: Thu, 11 Jun 2020 15:44:38 GMT + date: Fri, 10 Jul 2020 18:54:44 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '13' + x-envoy-upstream-service-time: '12' status: code: 200 message: OK - url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/prebuilt/receipt/analyzeResults/b5519716-55a5-4f85-b64b-afe2d7f8d6e9 + url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/prebuilt/receipt/analyzeResults/6d3381a6-a574-4ca2-b62c-996ef694e2f3 version: 1 diff --git a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_receipt_from_url_async.test_receipt_url_include_field_elements.yaml b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_receipt_from_url_async.test_receipt_url_include_field_elements.yaml index 6bc90ed9d2fa..865575d394bd 100644 --- a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_receipt_from_url_async.test_receipt_url_include_field_elements.yaml +++ b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_receipt_from_url_async.test_receipt_url_include_field_elements.yaml @@ -7,37 +7,35 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) method: POST - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/prebuilt/receipt/analyze?includeTextDetails=true + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/prebuilt/receipt/analyze?includeTextDetails=true response: body: string: '' headers: - apim-request-id: d1ba99a7-a6c1-4f76-bca5-fc97f206c43c + apim-request-id: 64164c37-e238-484c-bf48-262612bc1b4f content-length: '0' - date: Thu, 11 Jun 2020 15:44:37 GMT - operation-location: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/prebuilt/receipt/analyzeResults/d1ba99a7-a6c1-4f76-bca5-fc97f206c43c + date: Fri, 10 Jul 2020 18:54:44 GMT + operation-location: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/prebuilt/receipt/analyzeResults/64164c37-e238-484c-bf48-262612bc1b4f strict-transport-security: max-age=31536000; includeSubDomains; preload x-content-type-options: nosniff - x-envoy-upstream-service-time: '113' + x-envoy-upstream-service-time: '151' status: code: 202 message: Accepted - url: https://centraluseuap.api.cognitive.microsoft.com//formrecognizer/v2.0-preview/prebuilt/receipt/analyze?includeTextDetails=true + url: https://centraluseuap.api.cognitive.microsoft.com//formrecognizer/v2.0/prebuilt/receipt/analyze?includeTextDetails=true - request: body: null headers: User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/prebuilt/receipt/analyzeResults/d1ba99a7-a6c1-4f76-bca5-fc97f206c43c + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/prebuilt/receipt/analyzeResults/64164c37-e238-484c-bf48-262612bc1b4f response: body: - string: '{"status": "succeeded", "createdDateTime": "2020-06-11T15:44:38Z", - "lastUpdatedDateTime": "2020-06-11T15:44:39Z", "analyzeResult": {"version": + string: '{"status": "succeeded", "createdDateTime": "2020-07-10T18:54:45Z", + "lastUpdatedDateTime": "2020-07-10T18:54:46Z", "analyzeResult": {"version": "2.0.0", "readResults": [{"page": 1, "angle": 0.6893, "width": 1688, "height": 3000, "unit": "pixel", "language": "en", "lines": [{"text": "Contoso", "boundingBox": [635, 510, 1086, 461, 1098, 558, 643, 604], "words": [{"text": "Contoso", @@ -159,15 +157,15 @@ interactions: [1034.2, 2617, 1387.5, 2638.2, 1380, 2763, 1026.7, 2741.8], "page": 1, "confidence": 0.985, "elements": ["#/readResults/0/lines/19/words/0"]}}}]}}' headers: - apim-request-id: d8d69120-04c2-4c2f-9d15-ecb7d68e0241 + apim-request-id: 484c0508-aa65-47b0-9156-290e5823e022 content-type: application/json; charset=utf-8 - date: Thu, 11 Jun 2020 15:44:43 GMT + date: Fri, 10 Jul 2020 18:54:49 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '16' + x-envoy-upstream-service-time: '17' status: code: 200 message: OK - url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/prebuilt/receipt/analyzeResults/d1ba99a7-a6c1-4f76-bca5-fc97f206c43c + url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/prebuilt/receipt/analyzeResults/64164c37-e238-484c-bf48-262612bc1b4f version: 1 diff --git a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_receipt_from_url_async.test_receipt_url_jpg.yaml b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_receipt_from_url_async.test_receipt_url_jpg.yaml index 3ed2d5ff0414..f8db49d32b26 100644 --- a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_receipt_from_url_async.test_receipt_url_jpg.yaml +++ b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_receipt_from_url_async.test_receipt_url_jpg.yaml @@ -7,37 +7,35 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) method: POST - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/prebuilt/receipt/analyze?includeTextDetails=false + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/prebuilt/receipt/analyze?includeTextDetails=false response: body: string: '' headers: - apim-request-id: 3917b371-b6b7-4b9d-a89e-ec80b05e9fa0 + apim-request-id: eb9c34ce-8f53-45df-b576-de178437addd content-length: '0' - date: Thu, 11 Jun 2020 15:44:33 GMT - operation-location: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/prebuilt/receipt/analyzeResults/3917b371-b6b7-4b9d-a89e-ec80b05e9fa0 + date: Fri, 10 Jul 2020 18:54:51 GMT + operation-location: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/prebuilt/receipt/analyzeResults/eb9c34ce-8f53-45df-b576-de178437addd strict-transport-security: max-age=31536000; includeSubDomains; preload x-content-type-options: nosniff - x-envoy-upstream-service-time: '124' + x-envoy-upstream-service-time: '145' status: code: 202 message: Accepted - url: https://centraluseuap.api.cognitive.microsoft.com//formrecognizer/v2.0-preview/prebuilt/receipt/analyze?includeTextDetails=false + url: https://centraluseuap.api.cognitive.microsoft.com//formrecognizer/v2.0/prebuilt/receipt/analyze?includeTextDetails=false - request: body: null headers: User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/prebuilt/receipt/analyzeResults/3917b371-b6b7-4b9d-a89e-ec80b05e9fa0 + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/prebuilt/receipt/analyzeResults/eb9c34ce-8f53-45df-b576-de178437addd response: body: - string: '{"status": "succeeded", "createdDateTime": "2020-06-11T15:44:34Z", - "lastUpdatedDateTime": "2020-06-11T15:44:35Z", "analyzeResult": {"version": + string: '{"status": "succeeded", "createdDateTime": "2020-07-10T18:54:50Z", + "lastUpdatedDateTime": "2020-07-10T18:54:52Z", "analyzeResult": {"version": "2.0.0", "readResults": [{"page": 1, "angle": 0.6893, "width": 1688, "height": 3000, "unit": "pixel", "language": "en"}], "documentResults": [{"docType": "prebuilt:receipt", "pageRange": [1, 1], "fields": {"ReceiptType": {"type": @@ -79,15 +77,15 @@ interactions: "boundingBox": [1034.2, 2617, 1387.5, 2638.2, 1380, 2763, 1026.7, 2741.8], "page": 1, "confidence": 0.985}}}]}}' headers: - apim-request-id: 7882845a-beae-4a21-8cf7-02434c777d16 + apim-request-id: 4485a238-19f4-4613-a487-a4a6addbb7d6 content-type: application/json; charset=utf-8 - date: Thu, 11 Jun 2020 15:44:39 GMT + date: Fri, 10 Jul 2020 18:54:55 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '13' + x-envoy-upstream-service-time: '15' status: code: 200 message: OK - url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/prebuilt/receipt/analyzeResults/3917b371-b6b7-4b9d-a89e-ec80b05e9fa0 + url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/prebuilt/receipt/analyzeResults/eb9c34ce-8f53-45df-b576-de178437addd version: 1 diff --git a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_receipt_from_url_async.test_receipt_url_pass_stream.yaml b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_receipt_from_url_async.test_receipt_url_pass_stream.yaml index a12ab3c43de7..b1e4d39f374f 100644 --- a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_receipt_from_url_async.test_receipt_url_pass_stream.yaml +++ b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_receipt_from_url_async.test_receipt_url_pass_stream.yaml @@ -7,18 +7,17 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) method: POST - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/prebuilt/receipt/analyze?includeTextDetails=false + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/prebuilt/receipt/analyze?includeTextDetails=false response: body: - string: '{"error": {"code": "InvalidImageURL", "innerError": {"requestId": "cd68f220-7bf1-4a82-9ec6-4e942a3e496a"}, + string: '{"error": {"code": "InvalidImageURL", "innerError": {"requestId": "0a55bfe6-0706-4586-8d25-2594edc2928c"}, "message": "Image URL is badly formatted."}}' headers: - apim-request-id: cd68f220-7bf1-4a82-9ec6-4e942a3e496a + apim-request-id: 0a55bfe6-0706-4586-8d25-2594edc2928c content-type: application/json; charset=utf-8 - date: Thu, 11 Jun 2020 15:44:36 GMT + date: Fri, 10 Jul 2020 18:54:05 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff @@ -26,5 +25,5 @@ interactions: status: code: 400 message: Bad Request - url: https://centraluseuap.api.cognitive.microsoft.com//formrecognizer/v2.0-preview/prebuilt/receipt/analyze?includeTextDetails=false + url: https://centraluseuap.api.cognitive.microsoft.com//formrecognizer/v2.0/prebuilt/receipt/analyze?includeTextDetails=false version: 1 diff --git a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_receipt_from_url_async.test_receipt_url_png.yaml b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_receipt_from_url_async.test_receipt_url_png.yaml index 5a878f32870a..d80da9a8f096 100644 --- a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_receipt_from_url_async.test_receipt_url_png.yaml +++ b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_receipt_from_url_async.test_receipt_url_png.yaml @@ -7,37 +7,35 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) method: POST - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/prebuilt/receipt/analyze?includeTextDetails=false + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/prebuilt/receipt/analyze?includeTextDetails=false response: body: string: '' headers: - apim-request-id: a3578187-5113-4d85-903c-bdd7cd37121a + apim-request-id: a476fd7f-3909-498f-a627-6c6a8ed7549f content-length: '0' - date: Thu, 11 Jun 2020 15:44:33 GMT - operation-location: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/prebuilt/receipt/analyzeResults/a3578187-5113-4d85-903c-bdd7cd37121a + date: Fri, 10 Jul 2020 18:54:06 GMT + operation-location: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/prebuilt/receipt/analyzeResults/a476fd7f-3909-498f-a627-6c6a8ed7549f strict-transport-security: max-age=31536000; includeSubDomains; preload x-content-type-options: nosniff - x-envoy-upstream-service-time: '348' + x-envoy-upstream-service-time: '268' status: code: 202 message: Accepted - url: https://centraluseuap.api.cognitive.microsoft.com//formrecognizer/v2.0-preview/prebuilt/receipt/analyze?includeTextDetails=false + url: https://centraluseuap.api.cognitive.microsoft.com//formrecognizer/v2.0/prebuilt/receipt/analyze?includeTextDetails=false - request: body: null headers: User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/prebuilt/receipt/analyzeResults/a3578187-5113-4d85-903c-bdd7cd37121a + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/prebuilt/receipt/analyzeResults/a476fd7f-3909-498f-a627-6c6a8ed7549f response: body: - string: '{"status": "succeeded", "createdDateTime": "2020-06-11T15:44:33Z", - "lastUpdatedDateTime": "2020-06-11T15:44:35Z", "analyzeResult": {"version": + string: '{"status": "succeeded", "createdDateTime": "2020-07-10T18:54:06Z", + "lastUpdatedDateTime": "2020-07-10T18:54:08Z", "analyzeResult": {"version": "2.0.0", "readResults": [{"page": 1, "angle": 0.2511, "width": 1688, "height": 3000, "unit": "pixel", "language": "en"}], "documentResults": [{"docType": "prebuilt:receipt", "pageRange": [1, 1], "fields": {"ReceiptType": {"type": @@ -75,15 +73,15 @@ interactions: 1203.39, "text": "1203.39", "boundingBox": [955, 2593.9, 1123, 2611, 1116.2, 2678.1, 948.2, 2661], "page": 1, "confidence": 0.774}}}]}}' headers: - apim-request-id: cc1485cd-df96-4198-9653-addcdaa39df6 + apim-request-id: 608e3800-4781-4c04-ab66-840fc8b22059 content-type: application/json; charset=utf-8 - date: Thu, 11 Jun 2020 15:44:38 GMT + date: Fri, 10 Jul 2020 18:54:11 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '12' + x-envoy-upstream-service-time: '16' status: code: 200 message: OK - url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/prebuilt/receipt/analyzeResults/a3578187-5113-4d85-903c-bdd7cd37121a + url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/prebuilt/receipt/analyzeResults/a476fd7f-3909-498f-a627-6c6a8ed7549f version: 1 diff --git a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_receipt_from_url_async.test_receipt_url_transform_jpg.yaml b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_receipt_from_url_async.test_receipt_url_transform_jpg.yaml index ef74050de8f2..43610865a5db 100644 --- a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_receipt_from_url_async.test_receipt_url_transform_jpg.yaml +++ b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_receipt_from_url_async.test_receipt_url_transform_jpg.yaml @@ -7,37 +7,35 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) method: POST - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/prebuilt/receipt/analyze?includeTextDetails=true + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/prebuilt/receipt/analyze?includeTextDetails=true response: body: string: '' headers: - apim-request-id: 5e134b98-55ee-4d30-874f-7a059d53a19b + apim-request-id: 7b62454b-0d3e-4fa7-8f2f-733320a92429 content-length: '0' - date: Thu, 11 Jun 2020 15:44:38 GMT - operation-location: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/prebuilt/receipt/analyzeResults/5e134b98-55ee-4d30-874f-7a059d53a19b + date: Fri, 10 Jul 2020 18:54:12 GMT + operation-location: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/prebuilt/receipt/analyzeResults/7b62454b-0d3e-4fa7-8f2f-733320a92429 strict-transport-security: max-age=31536000; includeSubDomains; preload x-content-type-options: nosniff - x-envoy-upstream-service-time: '124' + x-envoy-upstream-service-time: '155' status: code: 202 message: Accepted - url: https://centraluseuap.api.cognitive.microsoft.com//formrecognizer/v2.0-preview/prebuilt/receipt/analyze?includeTextDetails=true + url: https://centraluseuap.api.cognitive.microsoft.com//formrecognizer/v2.0/prebuilt/receipt/analyze?includeTextDetails=true - request: body: null headers: User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/prebuilt/receipt/analyzeResults/5e134b98-55ee-4d30-874f-7a059d53a19b + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/prebuilt/receipt/analyzeResults/7b62454b-0d3e-4fa7-8f2f-733320a92429 response: body: - string: '{"status": "succeeded", "createdDateTime": "2020-06-11T15:44:39Z", - "lastUpdatedDateTime": "2020-06-11T15:44:41Z", "analyzeResult": {"version": + string: '{"status": "succeeded", "createdDateTime": "2020-07-10T18:54:12Z", + "lastUpdatedDateTime": "2020-07-10T18:54:14Z", "analyzeResult": {"version": "2.0.0", "readResults": [{"page": 1, "angle": 0.6893, "width": 1688, "height": 3000, "unit": "pixel", "language": "en", "lines": [{"text": "Contoso", "boundingBox": [635, 510, 1086, 461, 1098, 558, 643, 604], "words": [{"text": "Contoso", @@ -159,15 +157,15 @@ interactions: [1034.2, 2617, 1387.5, 2638.2, 1380, 2763, 1026.7, 2741.8], "page": 1, "confidence": 0.985, "elements": ["#/readResults/0/lines/19/words/0"]}}}]}}' headers: - apim-request-id: b7aa5fc6-4384-476c-8b39-c3cb88f07587 + apim-request-id: 34d98fb8-d55b-45bd-939b-b3c1af4803f1 content-type: application/json; charset=utf-8 - date: Thu, 11 Jun 2020 15:44:44 GMT + date: Fri, 10 Jul 2020 18:54:17 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '15' + x-envoy-upstream-service-time: '14' status: code: 200 message: OK - url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/prebuilt/receipt/analyzeResults/5e134b98-55ee-4d30-874f-7a059d53a19b + url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/prebuilt/receipt/analyzeResults/7b62454b-0d3e-4fa7-8f2f-733320a92429 version: 1 diff --git a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_receipt_from_url_async.test_receipt_url_transform_png.yaml b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_receipt_from_url_async.test_receipt_url_transform_png.yaml index 0ad82a6291d0..94c4c699cacf 100644 --- a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_receipt_from_url_async.test_receipt_url_transform_png.yaml +++ b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_receipt_from_url_async.test_receipt_url_transform_png.yaml @@ -7,37 +7,35 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) method: POST - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/prebuilt/receipt/analyze?includeTextDetails=true + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/prebuilt/receipt/analyze?includeTextDetails=true response: body: string: '' headers: - apim-request-id: 7015b9a7-4687-4724-852d-00eaa042e1d7 + apim-request-id: cf0c234a-a06f-4480-a19d-5abf98faa2e6 content-length: '0' - date: Thu, 11 Jun 2020 15:44:38 GMT - operation-location: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/prebuilt/receipt/analyzeResults/7015b9a7-4687-4724-852d-00eaa042e1d7 + date: Fri, 10 Jul 2020 18:54:18 GMT + operation-location: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/prebuilt/receipt/analyzeResults/cf0c234a-a06f-4480-a19d-5abf98faa2e6 strict-transport-security: max-age=31536000; includeSubDomains; preload x-content-type-options: nosniff - x-envoy-upstream-service-time: '240' + x-envoy-upstream-service-time: '289' status: code: 202 message: Accepted - url: https://centraluseuap.api.cognitive.microsoft.com//formrecognizer/v2.0-preview/prebuilt/receipt/analyze?includeTextDetails=true + url: https://centraluseuap.api.cognitive.microsoft.com//formrecognizer/v2.0/prebuilt/receipt/analyze?includeTextDetails=true - request: body: null headers: User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/prebuilt/receipt/analyzeResults/7015b9a7-4687-4724-852d-00eaa042e1d7 + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/prebuilt/receipt/analyzeResults/cf0c234a-a06f-4480-a19d-5abf98faa2e6 response: body: - string: '{"status": "succeeded", "createdDateTime": "2020-06-11T15:44:39Z", - "lastUpdatedDateTime": "2020-06-11T15:44:41Z", "analyzeResult": {"version": + string: '{"status": "succeeded", "createdDateTime": "2020-07-10T18:54:18Z", + "lastUpdatedDateTime": "2020-07-10T18:54:21Z", "analyzeResult": {"version": "2.0.0", "readResults": [{"page": 1, "angle": 0.2511, "width": 1688, "height": 3000, "unit": "pixel", "language": "en", "lines": [{"text": "Contoso", "boundingBox": [619, 291, 1051, 284, 1053, 384, 620, 396], "words": [{"text": "Contoso", @@ -163,15 +161,15 @@ interactions: [955, 2593.9, 1123, 2611, 1116.2, 2678.1, 948.2, 2661], "page": 1, "confidence": 0.774, "elements": ["#/readResults/0/lines/18/words/1"]}}}]}}' headers: - apim-request-id: a3f2acad-c32d-4de6-9381-a4d4707d589d + apim-request-id: 67a5a27f-c665-49c2-a8df-a66ef98e7e70 content-type: application/json; charset=utf-8 - date: Thu, 11 Jun 2020 15:44:43 GMT + date: Fri, 10 Jul 2020 18:54:23 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '17' + x-envoy-upstream-service-time: '16' status: code: 200 message: OK - url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/prebuilt/receipt/analyzeResults/7015b9a7-4687-4724-852d-00eaa042e1d7 + url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/prebuilt/receipt/analyzeResults/cf0c234a-a06f-4480-a19d-5abf98faa2e6 version: 1 diff --git a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_receipt_from_url_async.test_receipts_encoded_url.yaml b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_receipt_from_url_async.test_receipts_encoded_url.yaml index a0b87d103190..a1934ea906e4 100644 --- a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_receipt_from_url_async.test_receipts_encoded_url.yaml +++ b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_receipt_from_url_async.test_receipts_encoded_url.yaml @@ -7,25 +7,24 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) method: POST - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/prebuilt/receipt/analyze?includeTextDetails=false + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/prebuilt/receipt/analyze?includeTextDetails=false response: body: string: '{"error": {"code": "FailedToDownloadImage", "innerError": {"requestId": - "b256740a-1a9f-4d69-8304-928f7e29befb"}, "message": "Failed to download image + "58ece1db-cd7a-472c-8fbd-a726fb02c211"}, "message": "Failed to download image from input URL."}}' headers: - apim-request-id: b256740a-1a9f-4d69-8304-928f7e29befb + apim-request-id: 58ece1db-cd7a-472c-8fbd-a726fb02c211 content-type: application/json; charset=utf-8 - date: Mon, 15 Jun 2020 18:28:14 GMT + date: Fri, 10 Jul 2020 18:54:27 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '3921' + x-envoy-upstream-service-time: '3896' status: code: 400 message: Bad Request - url: https://centraluseuap.api.cognitive.microsoft.com//formrecognizer/v2.0-preview/prebuilt/receipt/analyze?includeTextDetails=false + url: https://centraluseuap.api.cognitive.microsoft.com//formrecognizer/v2.0/prebuilt/receipt/analyze?includeTextDetails=false version: 1 diff --git a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_training.test_polling_interval.yaml b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_training.test_polling_interval.yaml index 51579c749a4d..1b706ec0b698 100644 --- a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_training.test_polling_interval.yaml +++ b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_training.test_polling_interval.yaml @@ -14,28 +14,27 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) method: POST - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models response: body: string: '' headers: apim-request-id: - - d39ac0fa-ba19-4498-9b41-2e4fe0a9db5e + - 242c51a3-1570-4166-8cf9-142aa4fc39e7 content-length: - '0' date: - - Fri, 12 Jun 2020 17:14:17 GMT + - Fri, 10 Jul 2020 18:57:33 GMT location: - - https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/bb293dcb-3705-4a5d-8453-5139686c2721 + - https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/ee98d2c4-f46e-4c10-93db-c369084966b3 strict-transport-security: - max-age=31536000; includeSubDomains; preload x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '1221' + - '70' status: code: 201 message: Created @@ -49,22 +48,21 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/bb293dcb-3705-4a5d-8453-5139686c2721?includeKeys=true + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/ee98d2c4-f46e-4c10-93db-c369084966b3?includeKeys=true response: body: - string: '{"modelInfo": {"modelId": "bb293dcb-3705-4a5d-8453-5139686c2721", "status": - "creating", "createdDateTime": "2020-06-12T17:14:16Z", "lastUpdatedDateTime": - "2020-06-12T17:14:16Z"}}' + string: '{"modelInfo": {"modelId": "ee98d2c4-f46e-4c10-93db-c369084966b3", "status": + "creating", "createdDateTime": "2020-07-10T18:57:33Z", "lastUpdatedDateTime": + "2020-07-10T18:57:33Z"}}' headers: apim-request-id: - - 1c623540-200a-4ff9-b93f-cabbe6768db0 + - 2fd57252-2f8b-4b67-8d7e-3f0ef78e3a2a content-type: - application/json; charset=utf-8 date: - - Fri, 12 Jun 2020 17:14:23 GMT + - Fri, 10 Jul 2020 18:57:40 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -72,7 +70,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '148' + - '688' status: code: 200 message: OK @@ -86,15 +84,14 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/bb293dcb-3705-4a5d-8453-5139686c2721?includeKeys=true + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/ee98d2c4-f46e-4c10-93db-c369084966b3?includeKeys=true response: body: - string: '{"modelInfo": {"modelId": "bb293dcb-3705-4a5d-8453-5139686c2721", "status": - "ready", "createdDateTime": "2020-06-12T17:14:16Z", "lastUpdatedDateTime": - "2020-06-12T17:14:28Z"}, "keys": {"clusters": {"0": ["Additional Notes:", + string: '{"modelInfo": {"modelId": "ee98d2c4-f46e-4c10-93db-c369084966b3", "status": + "ready", "createdDateTime": "2020-07-10T18:57:33Z", "lastUpdatedDateTime": + "2020-07-10T18:57:43Z"}, "keys": {"clusters": {"0": ["Additional Notes:", "Address:", "Company Name:", "Company Phone:", "Dated As:", "Details", "Email:", "Hero Limited", "Name:", "Phone:", "Purchase Order", "Purchase Order #:", "Quantity", "SUBTOTAL", "Seattle, WA 93849 Phone:", "Shipped From", "Shipped @@ -107,11 +104,11 @@ interactions: 1, "errors": [], "status": "succeeded"}], "errors": []}}' headers: apim-request-id: - - d15e05cb-2953-45ca-8b70-2517f1a7f9e7 + - 58426e93-b9be-4080-93cc-c29a05e9cd14 content-type: - application/json; charset=utf-8 date: - - Fri, 12 Jun 2020 17:14:29 GMT + - Fri, 10 Jul 2020 18:57:46 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -119,7 +116,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '149' + - '20' status: code: 200 message: OK @@ -138,28 +135,27 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) method: POST - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models response: body: string: '' headers: apim-request-id: - - 30022b63-b2d4-4772-9926-50c933b943c2 + - b8a37f18-8953-48ab-9664-85e58a4191e1 content-length: - '0' date: - - Fri, 12 Jun 2020 17:14:30 GMT + - Fri, 10 Jul 2020 18:57:46 GMT location: - - https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/b428e552-b46a-4a2e-a8cd-f8f5359656d5 + - https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/7ee01e6c-0089-4441-91d0-86fd49a13209 strict-transport-security: - max-age=31536000; includeSubDomains; preload x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '212' + - '94' status: code: 201 message: Created @@ -173,22 +169,21 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/b428e552-b46a-4a2e-a8cd-f8f5359656d5?includeKeys=true + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/7ee01e6c-0089-4441-91d0-86fd49a13209?includeKeys=true response: body: - string: '{"modelInfo": {"modelId": "b428e552-b46a-4a2e-a8cd-f8f5359656d5", "status": - "creating", "createdDateTime": "2020-06-12T17:14:30Z", "lastUpdatedDateTime": - "2020-06-12T17:14:30Z"}}' + string: '{"modelInfo": {"modelId": "7ee01e6c-0089-4441-91d0-86fd49a13209", "status": + "creating", "createdDateTime": "2020-07-10T18:57:47Z", "lastUpdatedDateTime": + "2020-07-10T18:57:47Z"}}' headers: apim-request-id: - - 17cf4951-a81f-4ee1-81b1-4b1f037ec32b + - 09fdd088-e9e4-458f-bec5-734a4a171052 content-type: - application/json; charset=utf-8 date: - - Fri, 12 Jun 2020 17:14:35 GMT + - Fri, 10 Jul 2020 18:57:52 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -196,7 +191,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '163' + - '19' status: code: 200 message: OK @@ -210,22 +205,21 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/b428e552-b46a-4a2e-a8cd-f8f5359656d5?includeKeys=true + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/7ee01e6c-0089-4441-91d0-86fd49a13209?includeKeys=true response: body: - string: '{"modelInfo": {"modelId": "b428e552-b46a-4a2e-a8cd-f8f5359656d5", "status": - "creating", "createdDateTime": "2020-06-12T17:14:30Z", "lastUpdatedDateTime": - "2020-06-12T17:14:30Z"}}' + string: '{"modelInfo": {"modelId": "7ee01e6c-0089-4441-91d0-86fd49a13209", "status": + "creating", "createdDateTime": "2020-07-10T18:57:47Z", "lastUpdatedDateTime": + "2020-07-10T18:57:47Z"}}' headers: apim-request-id: - - bf02c76e-cfe7-4dfc-9c9f-9dfa8404619f + - f9044926-ab94-47e1-ba8d-35924dd2050e content-type: - application/json; charset=utf-8 date: - - Fri, 12 Jun 2020 17:14:40 GMT + - Fri, 10 Jul 2020 18:57:56 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -233,7 +227,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '160' + - '51' status: code: 200 message: OK @@ -247,15 +241,14 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/b428e552-b46a-4a2e-a8cd-f8f5359656d5?includeKeys=true + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/7ee01e6c-0089-4441-91d0-86fd49a13209?includeKeys=true response: body: - string: '{"modelInfo": {"modelId": "b428e552-b46a-4a2e-a8cd-f8f5359656d5", "status": - "ready", "createdDateTime": "2020-06-12T17:14:30Z", "lastUpdatedDateTime": - "2020-06-12T17:14:43Z"}, "keys": {"clusters": {"0": ["Additional Notes:", + string: '{"modelInfo": {"modelId": "7ee01e6c-0089-4441-91d0-86fd49a13209", "status": + "ready", "createdDateTime": "2020-07-10T18:57:47Z", "lastUpdatedDateTime": + "2020-07-10T18:57:57Z"}, "keys": {"clusters": {"0": ["Additional Notes:", "Address:", "Company Name:", "Company Phone:", "Dated As:", "Details", "Email:", "Hero Limited", "Name:", "Phone:", "Purchase Order", "Purchase Order #:", "Quantity", "SUBTOTAL", "Seattle, WA 93849 Phone:", "Shipped From", "Shipped @@ -268,11 +261,11 @@ interactions: 1, "errors": [], "status": "succeeded"}], "errors": []}}' headers: apim-request-id: - - a1205f89-6b1b-41f5-b6f4-d09b7dc4cb0f + - ac11e7ef-0f25-4f8b-86c6-d798e668ed62 content-type: - application/json; charset=utf-8 date: - - Fri, 12 Jun 2020 17:14:45 GMT + - Fri, 10 Jul 2020 18:58:02 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -280,7 +273,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '195' + - '51' status: code: 200 message: OK diff --git a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_training.test_train_multipage_w_labels_transform.yaml b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_training.test_train_multipage_w_labels_transform.yaml index 9ae24798a4a9..0684b202af68 100644 --- a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_training.test_train_multipage_w_labels_transform.yaml +++ b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_training.test_train_multipage_w_labels_transform.yaml @@ -14,28 +14,27 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) method: POST - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models response: body: string: '' headers: apim-request-id: - - 9aeb374b-b96f-43eb-b04c-d4c3112a4ec3 + - ba5dfe1d-9560-4c92-be07-4922679436e9 content-length: - '0' date: - - Thu, 11 Jun 2020 15:44:44 GMT + - Fri, 10 Jul 2020 18:58:03 GMT location: - - https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/333e37d0-4a09-425c-8274-53d1fb00e9b2 + - https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/a457bc7d-89f0-4a04-9ed4-11c03cbe260c strict-transport-security: - max-age=31536000; includeSubDomains; preload x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '37' + - '70' status: code: 201 message: Created @@ -49,15 +48,14 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/333e37d0-4a09-425c-8274-53d1fb00e9b2?includeKeys=true + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/a457bc7d-89f0-4a04-9ed4-11c03cbe260c?includeKeys=true response: body: - string: '{"modelInfo": {"modelId": "333e37d0-4a09-425c-8274-53d1fb00e9b2", "status": - "ready", "createdDateTime": "2020-06-11T15:44:45Z", "lastUpdatedDateTime": - "2020-06-11T15:44:47Z"}, "trainResult": {"averageModelAccuracy": 0.889, "trainingDocuments": + string: '{"modelInfo": {"modelId": "a457bc7d-89f0-4a04-9ed4-11c03cbe260c", "status": + "ready", "createdDateTime": "2020-07-10T18:58:03Z", "lastUpdatedDateTime": + "2020-07-10T18:58:05Z"}, "trainResult": {"averageModelAccuracy": 0.889, "trainingDocuments": [{"documentName": "multipage_invoice1.pdf", "pages": 3, "status": "succeeded"}, {"documentName": "multipage_invoice2.pdf", "pages": 3, "status": "succeeded"}, {"documentName": "multipage_invoice3.pdf", "pages": 3, "status": "succeeded"}, @@ -76,11 +74,11 @@ interactions: 1.0}, {"fieldName": "Total2", "accuracy": 1.0}], "errors": []}}' headers: apim-request-id: - - 49be1aee-ec9e-44a5-b35d-eb45d0c7820b + - 8f9cfb84-c1ba-4574-846b-98e723b907cd content-type: - application/json; charset=utf-8 date: - - Thu, 11 Jun 2020 15:44:49 GMT + - Fri, 10 Jul 2020 18:58:07 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -88,7 +86,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '19' + - '51' status: code: 200 message: OK diff --git a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_training.test_training.yaml b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_training.test_training.yaml index c528a55abc42..66e5c22c33f4 100644 --- a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_training.test_training.yaml +++ b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_training.test_training.yaml @@ -14,28 +14,27 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) method: POST - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models response: body: string: '' headers: apim-request-id: - - 8ed239b6-43bf-4b0c-ad86-a31ec3e3ba72 + - 9a336b61-4580-4824-81eb-3efb07bad24e content-length: - '0' date: - - Thu, 11 Jun 2020 15:44:50 GMT + - Fri, 10 Jul 2020 18:57:04 GMT location: - - https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/cfe25181-ddce-4b96-ae00-de436f4ac044 + - https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/b093f01d-dca8-4b45-9e74-2ea43ec69737 strict-transport-security: - max-age=31536000; includeSubDomains; preload x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '87' + - '68' status: code: 201 message: Created @@ -49,59 +48,21 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/cfe25181-ddce-4b96-ae00-de436f4ac044?includeKeys=true + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/b093f01d-dca8-4b45-9e74-2ea43ec69737?includeKeys=true response: body: - string: '{"modelInfo": {"modelId": "cfe25181-ddce-4b96-ae00-de436f4ac044", "status": - "creating", "createdDateTime": "2020-06-11T15:44:50Z", "lastUpdatedDateTime": - "2020-06-11T15:44:50Z"}}' + string: '{"modelInfo": {"modelId": "b093f01d-dca8-4b45-9e74-2ea43ec69737", "status": + "creating", "createdDateTime": "2020-07-10T18:57:04Z", "lastUpdatedDateTime": + "2020-07-10T18:57:04Z"}}' headers: apim-request-id: - - d3e9b7dd-29f2-4c3b-9240-4066bac83260 + - d9185ea0-0280-47b4-9427-524244ef4151 content-type: - application/json; charset=utf-8 date: - - Thu, 11 Jun 2020 15:44:55 GMT - strict-transport-security: - - max-age=31536000; includeSubDomains; preload - transfer-encoding: - - chunked - x-content-type-options: - - nosniff - x-envoy-upstream-service-time: - - '17' - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) - method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/cfe25181-ddce-4b96-ae00-de436f4ac044?includeKeys=true - response: - body: - string: '{"modelInfo": {"modelId": "cfe25181-ddce-4b96-ae00-de436f4ac044", "status": - "creating", "createdDateTime": "2020-06-11T15:44:50Z", "lastUpdatedDateTime": - "2020-06-11T15:44:50Z"}}' - headers: - apim-request-id: - - aa687fd8-219b-44b6-b090-0ce3429c5724 - content-type: - - application/json; charset=utf-8 - date: - - Thu, 11 Jun 2020 15:45:01 GMT + - Fri, 10 Jul 2020 18:57:09 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -123,15 +84,14 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/cfe25181-ddce-4b96-ae00-de436f4ac044?includeKeys=true + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/b093f01d-dca8-4b45-9e74-2ea43ec69737?includeKeys=true response: body: - string: '{"modelInfo": {"modelId": "cfe25181-ddce-4b96-ae00-de436f4ac044", "status": - "ready", "createdDateTime": "2020-06-11T15:44:50Z", "lastUpdatedDateTime": - "2020-06-11T15:45:01Z"}, "keys": {"clusters": {"0": ["Additional Notes:", + string: '{"modelInfo": {"modelId": "b093f01d-dca8-4b45-9e74-2ea43ec69737", "status": + "ready", "createdDateTime": "2020-07-10T18:57:04Z", "lastUpdatedDateTime": + "2020-07-10T18:57:13Z"}, "keys": {"clusters": {"0": ["Additional Notes:", "Address:", "Company Name:", "Company Phone:", "Dated As:", "Details", "Email:", "Hero Limited", "Name:", "Phone:", "Purchase Order", "Purchase Order #:", "Quantity", "SUBTOTAL", "Seattle, WA 93849 Phone:", "Shipped From", "Shipped @@ -144,11 +104,11 @@ interactions: 1, "errors": [], "status": "succeeded"}], "errors": []}}' headers: apim-request-id: - - e8da87d1-5b74-44a5-af85-9779065641d8 + - fdbd1e23-a4b2-4326-96be-fd252144ed0a content-type: - application/json; charset=utf-8 date: - - Thu, 11 Jun 2020 15:45:05 GMT + - Fri, 10 Jul 2020 18:57:14 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -156,7 +116,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '19' + - '16' status: code: 200 message: OK diff --git a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_training.test_training_auth_bad_key.yaml b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_training.test_training_auth_bad_key.yaml index 6dfa65ad639f..69e669a8e9ef 100644 --- a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_training.test_training_auth_bad_key.yaml +++ b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_training.test_training_auth_bad_key.yaml @@ -14,21 +14,30 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) method: POST - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models response: body: string: '{"error": {"code": "401", "message": "Access denied due to invalid subscription key or wrong API endpoint. Make sure to provide a valid key for an active subscription and use a correct regional API endpoint for your resource."}}' headers: + apim-request-id: + - fe64a99b-5562-41c0-8707-00375f27d76c content-length: - - '224' + - '225' + content-type: + - application/json date: - - Thu, 11 Jun 2020 15:44:48 GMT + - Fri, 10 Jul 2020 18:57:15 GMT + strict-transport-security: + - max-age=31536000; includeSubDomains; preload + www-authenticate: + - AzureApiManagementKey realm="https://centraluseuap.api.cognitive.microsoft.com/formrecognizer",name="Ocp-Apim-Subscription-Key",type="header" + x-content-type-options: + - nosniff status: code: 401 - message: PermissionDenied + message: Access Denied version: 1 diff --git a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_training.test_training_encoded_url.yaml b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_training.test_training_encoded_url.yaml index e4de7a89865d..e854c245ef24 100644 --- a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_training.test_training_encoded_url.yaml +++ b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_training.test_training_encoded_url.yaml @@ -14,28 +14,27 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) method: POST - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models response: body: string: '' headers: apim-request-id: - - 0b8029d2-9586-4db7-b72d-dc71a3f5eb57 + - 0ef22750-69bb-417f-8604-97ed763b323e content-length: - '0' date: - - Mon, 15 Jun 2020 18:58:04 GMT + - Fri, 10 Jul 2020 18:57:20 GMT location: - - https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/f3ac1100-fae4-4edb-b428-a0d50c74e742 + - https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/ee6b5782-88de-406d-86ea-8a8e0c409931 strict-transport-security: - max-age=31536000; includeSubDomains; preload x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '1313' + - '2278' status: code: 201 message: Created @@ -49,22 +48,21 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/f3ac1100-fae4-4edb-b428-a0d50c74e742?includeKeys=true + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/ee6b5782-88de-406d-86ea-8a8e0c409931?includeKeys=true response: body: - string: '{"modelInfo": {"modelId": "f3ac1100-fae4-4edb-b428-a0d50c74e742", "status": - "creating", "createdDateTime": "2020-06-15T18:58:03Z", "lastUpdatedDateTime": - "2020-06-15T18:58:03Z"}}' + string: '{"modelInfo": {"modelId": "ee6b5782-88de-406d-86ea-8a8e0c409931", "status": + "creating", "createdDateTime": "2020-07-10T18:57:18Z", "lastUpdatedDateTime": + "2020-07-10T18:57:18Z"}}' headers: apim-request-id: - - 1c07f69a-22e3-4da9-b83e-ac12558f1d63 + - 039204ed-d41e-4b64-8160-f493059dedbf content-type: - application/json; charset=utf-8 date: - - Mon, 15 Jun 2020 18:58:09 GMT + - Fri, 10 Jul 2020 18:57:26 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -72,7 +70,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '209' + - '51' status: code: 200 message: OK @@ -86,22 +84,21 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/f3ac1100-fae4-4edb-b428-a0d50c74e742?includeKeys=true + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/ee6b5782-88de-406d-86ea-8a8e0c409931?includeKeys=true response: body: - string: '{"modelInfo": {"modelId": "f3ac1100-fae4-4edb-b428-a0d50c74e742", "status": - "creating", "createdDateTime": "2020-06-15T18:58:03Z", "lastUpdatedDateTime": - "2020-06-15T18:58:03Z"}}' + string: '{"modelInfo": {"modelId": "ee6b5782-88de-406d-86ea-8a8e0c409931", "status": + "creating", "createdDateTime": "2020-07-10T18:57:18Z", "lastUpdatedDateTime": + "2020-07-10T18:57:18Z"}}' headers: apim-request-id: - - 913fbe7a-01e1-48e7-a1d2-30620d76e3a2 + - c7afd920-c98f-4353-9361-e241dafbeae7 content-type: - application/json; charset=utf-8 date: - - Mon, 15 Jun 2020 18:58:14 GMT + - Fri, 10 Jul 2020 18:57:32 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -109,7 +106,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '157' + - '979' status: code: 200 message: OK @@ -123,22 +120,21 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/f3ac1100-fae4-4edb-b428-a0d50c74e742?includeKeys=true + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/ee6b5782-88de-406d-86ea-8a8e0c409931?includeKeys=true response: body: - string: '{"modelInfo": {"modelId": "f3ac1100-fae4-4edb-b428-a0d50c74e742", "status": - "creating", "createdDateTime": "2020-06-15T18:58:03Z", "lastUpdatedDateTime": - "2020-06-15T18:58:03Z"}}' + string: '{"modelInfo": {"modelId": "ee6b5782-88de-406d-86ea-8a8e0c409931", "status": + "creating", "createdDateTime": "2020-07-10T18:57:18Z", "lastUpdatedDateTime": + "2020-07-10T18:57:18Z"}}' headers: apim-request-id: - - f57fdaa5-0627-49b0-a4b9-33f1817ec9d8 + - 464bb4db-3495-46e4-b30e-03c890395935 content-type: - application/json; charset=utf-8 date: - - Mon, 15 Jun 2020 18:58:20 GMT + - Fri, 10 Jul 2020 18:57:36 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -146,7 +142,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '171' + - '61' status: code: 200 message: OK @@ -160,22 +156,21 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/f3ac1100-fae4-4edb-b428-a0d50c74e742?includeKeys=true + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/ee6b5782-88de-406d-86ea-8a8e0c409931?includeKeys=true response: body: - string: '{"modelInfo": {"modelId": "f3ac1100-fae4-4edb-b428-a0d50c74e742", "status": - "creating", "createdDateTime": "2020-06-15T18:58:03Z", "lastUpdatedDateTime": - "2020-06-15T18:58:03Z"}}' + string: '{"modelInfo": {"modelId": "ee6b5782-88de-406d-86ea-8a8e0c409931", "status": + "creating", "createdDateTime": "2020-07-10T18:57:18Z", "lastUpdatedDateTime": + "2020-07-10T18:57:18Z"}}' headers: apim-request-id: - - 94407af0-86fb-47e3-90c1-44e900220ad4 + - 9e2f0a09-1187-4146-b2fc-2d06c1e5a92d content-type: - application/json; charset=utf-8 date: - - Mon, 15 Jun 2020 18:58:25 GMT + - Fri, 10 Jul 2020 18:57:42 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -183,7 +178,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '157' + - '54' status: code: 200 message: OK @@ -197,22 +192,21 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/f3ac1100-fae4-4edb-b428-a0d50c74e742?includeKeys=true + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/ee6b5782-88de-406d-86ea-8a8e0c409931?includeKeys=true response: body: - string: '{"modelInfo": {"modelId": "f3ac1100-fae4-4edb-b428-a0d50c74e742", "status": - "creating", "createdDateTime": "2020-06-15T18:58:03Z", "lastUpdatedDateTime": - "2020-06-15T18:58:03Z"}}' + string: '{"modelInfo": {"modelId": "ee6b5782-88de-406d-86ea-8a8e0c409931", "status": + "creating", "createdDateTime": "2020-07-10T18:57:18Z", "lastUpdatedDateTime": + "2020-07-10T18:57:18Z"}}' headers: apim-request-id: - - ab67daae-9642-4927-9d21-5d3e112dcbe0 + - 0c3a98d1-4ad5-4b8b-8e72-b1bb6a432b0c content-type: - application/json; charset=utf-8 date: - - Mon, 15 Jun 2020 18:58:29 GMT + - Fri, 10 Jul 2020 18:57:47 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -220,7 +214,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '52' + - '19' status: code: 200 message: OK @@ -234,22 +228,21 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/f3ac1100-fae4-4edb-b428-a0d50c74e742?includeKeys=true + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/ee6b5782-88de-406d-86ea-8a8e0c409931?includeKeys=true response: body: - string: '{"modelInfo": {"modelId": "f3ac1100-fae4-4edb-b428-a0d50c74e742", "status": - "creating", "createdDateTime": "2020-06-15T18:58:03Z", "lastUpdatedDateTime": - "2020-06-15T18:58:03Z"}}' + string: '{"modelInfo": {"modelId": "ee6b5782-88de-406d-86ea-8a8e0c409931", "status": + "creating", "createdDateTime": "2020-07-10T18:57:18Z", "lastUpdatedDateTime": + "2020-07-10T18:57:18Z"}}' headers: apim-request-id: - - e9d797d5-a225-4849-9cb9-1d6c8f4e35b7 + - 8af29261-b704-456d-9a88-18d705df0a30 content-type: - application/json; charset=utf-8 date: - - Mon, 15 Jun 2020 18:58:35 GMT + - Fri, 10 Jul 2020 18:57:53 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -257,7 +250,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '188' + - '21' status: code: 200 message: OK @@ -271,22 +264,21 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/f3ac1100-fae4-4edb-b428-a0d50c74e742?includeKeys=true + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/ee6b5782-88de-406d-86ea-8a8e0c409931?includeKeys=true response: body: - string: '{"modelInfo": {"modelId": "f3ac1100-fae4-4edb-b428-a0d50c74e742", "status": - "creating", "createdDateTime": "2020-06-15T18:58:03Z", "lastUpdatedDateTime": - "2020-06-15T18:58:03Z"}}' + string: '{"modelInfo": {"modelId": "ee6b5782-88de-406d-86ea-8a8e0c409931", "status": + "creating", "createdDateTime": "2020-07-10T18:57:18Z", "lastUpdatedDateTime": + "2020-07-10T18:57:18Z"}}' headers: apim-request-id: - - b3dd9764-e86f-4b2d-8612-cdb021fe4ae0 + - 851cc43d-c1a1-46e4-8877-12dbfa929891 content-type: - application/json; charset=utf-8 date: - - Mon, 15 Jun 2020 18:58:46 GMT + - Fri, 10 Jul 2020 18:57:57 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -294,7 +286,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '5190' + - '17' status: code: 200 message: OK @@ -308,22 +300,21 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/f3ac1100-fae4-4edb-b428-a0d50c74e742?includeKeys=true + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/ee6b5782-88de-406d-86ea-8a8e0c409931?includeKeys=true response: body: - string: '{"modelInfo": {"modelId": "f3ac1100-fae4-4edb-b428-a0d50c74e742", "status": - "creating", "createdDateTime": "2020-06-15T18:58:03Z", "lastUpdatedDateTime": - "2020-06-15T18:58:03Z"}}' + string: '{"modelInfo": {"modelId": "ee6b5782-88de-406d-86ea-8a8e0c409931", "status": + "creating", "createdDateTime": "2020-07-10T18:57:18Z", "lastUpdatedDateTime": + "2020-07-10T18:57:18Z"}}' headers: apim-request-id: - - 1b3f4c13-2991-4e77-90b7-d1156432485a + - bbbe988c-633b-41a7-becc-ade51c227f65 content-type: - application/json; charset=utf-8 date: - - Mon, 15 Jun 2020 18:58:51 GMT + - Fri, 10 Jul 2020 18:58:02 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -331,7 +322,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '152' + - '16' status: code: 200 message: OK @@ -345,22 +336,21 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/f3ac1100-fae4-4edb-b428-a0d50c74e742?includeKeys=true + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/ee6b5782-88de-406d-86ea-8a8e0c409931?includeKeys=true response: body: - string: '{"modelInfo": {"modelId": "f3ac1100-fae4-4edb-b428-a0d50c74e742", "status": - "creating", "createdDateTime": "2020-06-15T18:58:03Z", "lastUpdatedDateTime": - "2020-06-15T18:58:03Z"}}' + string: '{"modelInfo": {"modelId": "ee6b5782-88de-406d-86ea-8a8e0c409931", "status": + "creating", "createdDateTime": "2020-07-10T18:57:18Z", "lastUpdatedDateTime": + "2020-07-10T18:57:18Z"}}' headers: apim-request-id: - - 7b404408-c76e-461f-87f6-5261567ad59a + - 2ca901de-9f56-4a14-8502-fd6cf100c79d content-type: - application/json; charset=utf-8 date: - - Mon, 15 Jun 2020 18:58:56 GMT + - Fri, 10 Jul 2020 18:58:07 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -368,7 +358,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '166' + - '45' status: code: 200 message: OK @@ -382,22 +372,21 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/f3ac1100-fae4-4edb-b428-a0d50c74e742?includeKeys=true + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/ee6b5782-88de-406d-86ea-8a8e0c409931?includeKeys=true response: body: - string: '{"modelInfo": {"modelId": "f3ac1100-fae4-4edb-b428-a0d50c74e742", "status": - "creating", "createdDateTime": "2020-06-15T18:58:03Z", "lastUpdatedDateTime": - "2020-06-15T18:58:03Z"}}' + string: '{"modelInfo": {"modelId": "ee6b5782-88de-406d-86ea-8a8e0c409931", "status": + "creating", "createdDateTime": "2020-07-10T18:57:18Z", "lastUpdatedDateTime": + "2020-07-10T18:57:18Z"}}' headers: apim-request-id: - - 972a96b3-fc68-4ff4-9995-5d7451268393 + - c53e61de-a7a1-4c1d-ad56-810b3b92a7fc content-type: - application/json; charset=utf-8 date: - - Mon, 15 Jun 2020 18:59:02 GMT + - Fri, 10 Jul 2020 18:58:14 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -405,7 +394,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '157' + - '731' status: code: 200 message: OK @@ -419,22 +408,21 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/f3ac1100-fae4-4edb-b428-a0d50c74e742?includeKeys=true + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/ee6b5782-88de-406d-86ea-8a8e0c409931?includeKeys=true response: body: - string: '{"modelInfo": {"modelId": "f3ac1100-fae4-4edb-b428-a0d50c74e742", "status": - "creating", "createdDateTime": "2020-06-15T18:58:03Z", "lastUpdatedDateTime": - "2020-06-15T18:58:03Z"}}' + string: '{"modelInfo": {"modelId": "ee6b5782-88de-406d-86ea-8a8e0c409931", "status": + "creating", "createdDateTime": "2020-07-10T18:57:18Z", "lastUpdatedDateTime": + "2020-07-10T18:57:18Z"}}' headers: apim-request-id: - - aab792f7-5c62-4206-9ca5-480879aad146 + - ad61e436-cb00-4f38-8536-a2eb6e446560 content-type: - application/json; charset=utf-8 date: - - Mon, 15 Jun 2020 18:59:12 GMT + - Fri, 10 Jul 2020 18:58:18 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -442,7 +430,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '5169' + - '46' status: code: 200 message: OK @@ -456,22 +444,21 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/f3ac1100-fae4-4edb-b428-a0d50c74e742?includeKeys=true + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/ee6b5782-88de-406d-86ea-8a8e0c409931?includeKeys=true response: body: - string: '{"modelInfo": {"modelId": "f3ac1100-fae4-4edb-b428-a0d50c74e742", "status": - "creating", "createdDateTime": "2020-06-15T18:58:03Z", "lastUpdatedDateTime": - "2020-06-15T18:58:03Z"}}' + string: '{"modelInfo": {"modelId": "ee6b5782-88de-406d-86ea-8a8e0c409931", "status": + "creating", "createdDateTime": "2020-07-10T18:57:18Z", "lastUpdatedDateTime": + "2020-07-10T18:57:18Z"}}' headers: apim-request-id: - - 06433fab-6468-4dd5-8171-282997cac442 + - 04be675b-9e20-4c62-a142-723d139394e4 content-type: - application/json; charset=utf-8 date: - - Mon, 15 Jun 2020 18:59:17 GMT + - Fri, 10 Jul 2020 18:58:24 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -479,7 +466,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '152' + - '45' status: code: 200 message: OK @@ -493,22 +480,21 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/f3ac1100-fae4-4edb-b428-a0d50c74e742?includeKeys=true + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/ee6b5782-88de-406d-86ea-8a8e0c409931?includeKeys=true response: body: - string: '{"modelInfo": {"modelId": "f3ac1100-fae4-4edb-b428-a0d50c74e742", "status": - "creating", "createdDateTime": "2020-06-15T18:58:03Z", "lastUpdatedDateTime": - "2020-06-15T18:58:03Z"}}' + string: '{"modelInfo": {"modelId": "ee6b5782-88de-406d-86ea-8a8e0c409931", "status": + "creating", "createdDateTime": "2020-07-10T18:57:18Z", "lastUpdatedDateTime": + "2020-07-10T18:57:18Z"}}' headers: apim-request-id: - - f2338ce8-420b-47a9-9fde-d53ab9b3e70b + - 4073846e-0ba8-4b43-b666-4c269d245558 content-type: - application/json; charset=utf-8 date: - - Mon, 15 Jun 2020 18:59:23 GMT + - Fri, 10 Jul 2020 18:58:30 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -516,7 +502,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '156' + - '48' status: code: 200 message: OK @@ -530,22 +516,21 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/f3ac1100-fae4-4edb-b428-a0d50c74e742?includeKeys=true + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/ee6b5782-88de-406d-86ea-8a8e0c409931?includeKeys=true response: body: - string: '{"modelInfo": {"modelId": "f3ac1100-fae4-4edb-b428-a0d50c74e742", "status": - "creating", "createdDateTime": "2020-06-15T18:58:03Z", "lastUpdatedDateTime": - "2020-06-15T18:58:03Z"}}' + string: '{"modelInfo": {"modelId": "ee6b5782-88de-406d-86ea-8a8e0c409931", "status": + "creating", "createdDateTime": "2020-07-10T18:57:18Z", "lastUpdatedDateTime": + "2020-07-10T18:57:18Z"}}' headers: apim-request-id: - - 9e3345e5-1d2f-4836-91a0-3c94edc84922 + - 151e8b17-7aa0-4624-9f6f-366d709be127 content-type: - application/json; charset=utf-8 date: - - Mon, 15 Jun 2020 18:59:27 GMT + - Fri, 10 Jul 2020 18:58:35 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -553,7 +538,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '53' + - '50' status: code: 200 message: OK @@ -567,22 +552,21 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/f3ac1100-fae4-4edb-b428-a0d50c74e742?includeKeys=true + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/ee6b5782-88de-406d-86ea-8a8e0c409931?includeKeys=true response: body: - string: '{"modelInfo": {"modelId": "f3ac1100-fae4-4edb-b428-a0d50c74e742", "status": - "creating", "createdDateTime": "2020-06-15T18:58:03Z", "lastUpdatedDateTime": - "2020-06-15T18:58:03Z"}}' + string: '{"modelInfo": {"modelId": "ee6b5782-88de-406d-86ea-8a8e0c409931", "status": + "creating", "createdDateTime": "2020-07-10T18:57:18Z", "lastUpdatedDateTime": + "2020-07-10T18:57:18Z"}}' headers: apim-request-id: - - 4c3d5398-01f4-4616-9d55-6683ef7f7f7b + - 522dc494-4894-4cf6-9b79-3bca24c53a52 content-type: - application/json; charset=utf-8 date: - - Mon, 15 Jun 2020 18:59:33 GMT + - Fri, 10 Jul 2020 18:58:41 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -590,7 +574,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '53' + - '932' status: code: 200 message: OK @@ -604,24 +588,95 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/f3ac1100-fae4-4edb-b428-a0d50c74e742?includeKeys=true + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/ee6b5782-88de-406d-86ea-8a8e0c409931?includeKeys=true response: body: - string: '{"modelInfo": {"modelId": "f3ac1100-fae4-4edb-b428-a0d50c74e742", "status": - "invalid", "createdDateTime": "2020-06-15T18:58:03Z", "lastUpdatedDateTime": - "2020-06-15T18:59:35Z"}, "keys": {"clusters": {}}, "trainResult": {"trainingDocuments": + string: '{"modelInfo": {"modelId": "ee6b5782-88de-406d-86ea-8a8e0c409931", "status": + "creating", "createdDateTime": "2020-07-10T18:57:18Z", "lastUpdatedDateTime": + "2020-07-10T18:57:18Z"}}' + headers: + apim-request-id: + - 4b1ca73c-95f1-4d22-a50f-1fd326409a5b + content-type: + - application/json; charset=utf-8 + date: + - Fri, 10 Jul 2020 18:58:45 GMT + strict-transport-security: + - max-age=31536000; includeSubDomains; preload + transfer-encoding: + - chunked + x-content-type-options: + - nosniff + x-envoy-upstream-service-time: + - '153' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + method: GET + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/ee6b5782-88de-406d-86ea-8a8e0c409931?includeKeys=true + response: + body: + string: '{"modelInfo": {"modelId": "ee6b5782-88de-406d-86ea-8a8e0c409931", "status": + "creating", "createdDateTime": "2020-07-10T18:57:18Z", "lastUpdatedDateTime": + "2020-07-10T18:57:18Z"}}' + headers: + apim-request-id: + - e5109e2f-ab90-414f-93e6-84b32472be15 + content-type: + - application/json; charset=utf-8 + date: + - Fri, 10 Jul 2020 18:58:52 GMT + strict-transport-security: + - max-age=31536000; includeSubDomains; preload + transfer-encoding: + - chunked + x-content-type-options: + - nosniff + x-envoy-upstream-service-time: + - '1486' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + method: GET + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/ee6b5782-88de-406d-86ea-8a8e0c409931?includeKeys=true + response: + body: + string: '{"modelInfo": {"modelId": "ee6b5782-88de-406d-86ea-8a8e0c409931", "status": + "invalid", "createdDateTime": "2020-07-10T18:57:18Z", "lastUpdatedDateTime": + "2020-07-10T18:58:52Z"}, "keys": {"clusters": {}}, "trainResult": {"trainingDocuments": [], "errors": [{"code": "2012", "message": "Unable to list blobs on the Azure blob storage account."}]}}' headers: apim-request-id: - - f751b1c9-2e05-44c5-909a-55c8966ab354 + - d637c561-74b8-4ca7-adbe-dd97ef81c8fa content-type: - application/json; charset=utf-8 date: - - Mon, 15 Jun 2020 18:59:38 GMT + - Fri, 10 Jul 2020 18:58:57 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -629,7 +684,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '961' + - '16' x-ms-cs-error-code: - '2012' status: diff --git a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_training.test_training_multipage.yaml b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_training.test_training_multipage.yaml index f7e3190be76e..4e67cdf2d4ee 100644 --- a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_training.test_training_multipage.yaml +++ b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_training.test_training_multipage.yaml @@ -14,28 +14,27 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) method: POST - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models response: body: string: '' headers: apim-request-id: - - 97adc539-6801-4c66-bffc-29d0ab011037 + - c01f28e7-e11b-4199-826c-cc1b26fee289 content-length: - '0' date: - - Thu, 11 Jun 2020 15:44:48 GMT + - Fri, 10 Jul 2020 18:58:59 GMT location: - - https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/feb0c161-553d-4573-ac83-c03baf11686a + - https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/cbae38ba-efd1-4868-8ba3-6f35bb77af85 strict-transport-security: - max-age=31536000; includeSubDomains; preload x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '82' + - '849' status: code: 201 message: Created @@ -49,22 +48,21 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/feb0c161-553d-4573-ac83-c03baf11686a?includeKeys=true + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/cbae38ba-efd1-4868-8ba3-6f35bb77af85?includeKeys=true response: body: - string: '{"modelInfo": {"modelId": "feb0c161-553d-4573-ac83-c03baf11686a", "status": - "creating", "createdDateTime": "2020-06-11T15:44:49Z", "lastUpdatedDateTime": - "2020-06-11T15:44:49Z"}}' + string: '{"modelInfo": {"modelId": "cbae38ba-efd1-4868-8ba3-6f35bb77af85", "status": + "creating", "createdDateTime": "2020-07-10T18:58:59Z", "lastUpdatedDateTime": + "2020-07-10T18:58:59Z"}}' headers: apim-request-id: - - 15573a82-c540-4ab8-8b3d-69fe638f0dfa + - 17564263-c3cf-493e-acea-99d727b68e02 content-type: - application/json; charset=utf-8 date: - - Thu, 11 Jun 2020 15:44:53 GMT + - Fri, 10 Jul 2020 18:59:05 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -72,7 +70,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '18' + - '772' status: code: 200 message: OK @@ -86,22 +84,21 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/feb0c161-553d-4573-ac83-c03baf11686a?includeKeys=true + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/cbae38ba-efd1-4868-8ba3-6f35bb77af85?includeKeys=true response: body: - string: '{"modelInfo": {"modelId": "feb0c161-553d-4573-ac83-c03baf11686a", "status": - "creating", "createdDateTime": "2020-06-11T15:44:49Z", "lastUpdatedDateTime": - "2020-06-11T15:44:49Z"}}' + string: '{"modelInfo": {"modelId": "cbae38ba-efd1-4868-8ba3-6f35bb77af85", "status": + "creating", "createdDateTime": "2020-07-10T18:58:59Z", "lastUpdatedDateTime": + "2020-07-10T18:58:59Z"}}' headers: apim-request-id: - - e7ebab02-563e-4846-8b23-89c874801bda + - bd20064a-ede4-4f1a-91b8-cc953f869b75 content-type: - application/json; charset=utf-8 date: - - Thu, 11 Jun 2020 15:44:59 GMT + - Fri, 10 Jul 2020 18:59:10 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -109,7 +106,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '18' + - '46' status: code: 200 message: OK @@ -123,15 +120,122 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/feb0c161-553d-4573-ac83-c03baf11686a?includeKeys=true + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/cbae38ba-efd1-4868-8ba3-6f35bb77af85?includeKeys=true response: body: - string: '{"modelInfo": {"modelId": "feb0c161-553d-4573-ac83-c03baf11686a", "status": - "ready", "createdDateTime": "2020-06-11T15:44:49Z", "lastUpdatedDateTime": - "2020-06-11T15:45:03Z"}, "keys": {"clusters": {"0": ["Address:", "Invoice + string: '{"modelInfo": {"modelId": "cbae38ba-efd1-4868-8ba3-6f35bb77af85", "status": + "creating", "createdDateTime": "2020-07-10T18:58:59Z", "lastUpdatedDateTime": + "2020-07-10T18:58:59Z"}}' + headers: + apim-request-id: + - cc758aab-113b-4701-a57c-a68cc4fd4ecb + content-type: + - application/json; charset=utf-8 + date: + - Fri, 10 Jul 2020 18:59:15 GMT + strict-transport-security: + - max-age=31536000; includeSubDomains; preload + transfer-encoding: + - chunked + x-content-type-options: + - nosniff + x-envoy-upstream-service-time: + - '45' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + method: GET + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/cbae38ba-efd1-4868-8ba3-6f35bb77af85?includeKeys=true + response: + body: + string: '{"modelInfo": {"modelId": "cbae38ba-efd1-4868-8ba3-6f35bb77af85", "status": + "creating", "createdDateTime": "2020-07-10T18:58:59Z", "lastUpdatedDateTime": + "2020-07-10T18:58:59Z"}}' + headers: + apim-request-id: + - a1135ef6-d8e1-42a5-b7f1-c6a100523f93 + content-type: + - application/json; charset=utf-8 + date: + - Fri, 10 Jul 2020 18:59:25 GMT + strict-transport-security: + - max-age=31536000; includeSubDomains; preload + transfer-encoding: + - chunked + x-content-type-options: + - nosniff + x-envoy-upstream-service-time: + - '5205' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + method: GET + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/cbae38ba-efd1-4868-8ba3-6f35bb77af85?includeKeys=true + response: + body: + string: '{"modelInfo": {"modelId": "cbae38ba-efd1-4868-8ba3-6f35bb77af85", "status": + "creating", "createdDateTime": "2020-07-10T18:58:59Z", "lastUpdatedDateTime": + "2020-07-10T18:58:59Z"}}' + headers: + apim-request-id: + - 04a2e287-9f7a-4b76-af37-fb4fe98b4276 + content-type: + - application/json; charset=utf-8 + date: + - Fri, 10 Jul 2020 18:59:31 GMT + strict-transport-security: + - max-age=31536000; includeSubDomains; preload + transfer-encoding: + - chunked + x-content-type-options: + - nosniff + x-envoy-upstream-service-time: + - '48' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + method: GET + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/cbae38ba-efd1-4868-8ba3-6f35bb77af85?includeKeys=true + response: + body: + string: '{"modelInfo": {"modelId": "cbae38ba-efd1-4868-8ba3-6f35bb77af85", "status": + "ready", "createdDateTime": "2020-07-10T18:58:59Z", "lastUpdatedDateTime": + "2020-07-10T18:59:14Z"}, "keys": {"clusters": {"0": ["Address:", "Invoice For:", "Item", "Price", "Quantity", "Redmond, WA", "Signature:", "Subtotal:", "Tax:", "Tip:", "Total:"]}}, "trainResult": {"trainingDocuments": [{"documentName": "multipage_invoice1.pdf", "pages": 3, "errors": [], "status": "succeeded"}, @@ -142,11 +246,11 @@ interactions: "pages": 3, "errors": [], "status": "succeeded"}], "errors": []}}' headers: apim-request-id: - - de89e09c-6427-4a10-b885-ed50e4a620b7 + - 196b4c72-280e-4a2f-86b7-604ce9f23e7b content-type: - application/json; charset=utf-8 date: - - Thu, 11 Jun 2020 15:45:05 GMT + - Fri, 10 Jul 2020 18:59:37 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -154,7 +258,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '787' + - '852' status: code: 200 message: OK diff --git a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_training.test_training_multipage_transform.yaml b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_training.test_training_multipage_transform.yaml index e53c36b1b66e..0c360b5d26e3 100644 --- a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_training.test_training_multipage_transform.yaml +++ b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_training.test_training_multipage_transform.yaml @@ -14,28 +14,27 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) method: POST - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models response: body: string: '' headers: apim-request-id: - - 6ed57733-160d-4b4d-9e4b-2496cb27c869 + - 2722f471-8eaa-4c81-9ada-9b47439d1496 content-length: - '0' date: - - Thu, 11 Jun 2020 15:45:05 GMT + - Fri, 10 Jul 2020 18:57:29 GMT location: - - https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/1492a371-7ebe-4121-93b1-bc7fa7ce191c + - https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/a335cff6-a80c-4a72-886a-4299dc132f84 strict-transport-security: - max-age=31536000; includeSubDomains; preload x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '38' + - '782' status: code: 201 message: Created @@ -49,22 +48,21 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/1492a371-7ebe-4121-93b1-bc7fa7ce191c?includeKeys=true + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/a335cff6-a80c-4a72-886a-4299dc132f84?includeKeys=true response: body: - string: '{"modelInfo": {"modelId": "1492a371-7ebe-4121-93b1-bc7fa7ce191c", "status": - "creating", "createdDateTime": "2020-06-11T15:45:06Z", "lastUpdatedDateTime": - "2020-06-11T15:45:06Z"}}' + string: '{"modelInfo": {"modelId": "a335cff6-a80c-4a72-886a-4299dc132f84", "status": + "creating", "createdDateTime": "2020-07-10T18:57:28Z", "lastUpdatedDateTime": + "2020-07-10T18:57:28Z"}}' headers: apim-request-id: - - a539d624-543c-4cbb-94a8-adcb9bde5add + - b26bb1fa-78f2-4352-a9b7-d3bf78bc9033 content-type: - application/json; charset=utf-8 date: - - Thu, 11 Jun 2020 15:45:11 GMT + - Fri, 10 Jul 2020 18:57:33 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -72,7 +70,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '20' + - '57' status: code: 200 message: OK @@ -86,22 +84,21 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/1492a371-7ebe-4121-93b1-bc7fa7ce191c?includeKeys=true + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/a335cff6-a80c-4a72-886a-4299dc132f84?includeKeys=true response: body: - string: '{"modelInfo": {"modelId": "1492a371-7ebe-4121-93b1-bc7fa7ce191c", "status": - "creating", "createdDateTime": "2020-06-11T15:45:06Z", "lastUpdatedDateTime": - "2020-06-11T15:45:06Z"}}' + string: '{"modelInfo": {"modelId": "a335cff6-a80c-4a72-886a-4299dc132f84", "status": + "creating", "createdDateTime": "2020-07-10T18:57:28Z", "lastUpdatedDateTime": + "2020-07-10T18:57:28Z"}}' headers: apim-request-id: - - 0a8df8e1-240d-4e32-887f-6623119a6e8d + - f02c6635-6c53-4f06-8484-5636c9215123 content-type: - application/json; charset=utf-8 date: - - Thu, 11 Jun 2020 15:45:15 GMT + - Fri, 10 Jul 2020 18:57:39 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -109,7 +106,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '48' + - '53' status: code: 200 message: OK @@ -123,15 +120,50 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/1492a371-7ebe-4121-93b1-bc7fa7ce191c?includeKeys=true + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/a335cff6-a80c-4a72-886a-4299dc132f84?includeKeys=true response: body: - string: '{"modelInfo": {"modelId": "1492a371-7ebe-4121-93b1-bc7fa7ce191c", "status": - "ready", "createdDateTime": "2020-06-11T15:45:06Z", "lastUpdatedDateTime": - "2020-06-11T15:45:20Z"}, "keys": {"clusters": {"0": ["Address:", "Invoice + string: '{"modelInfo": {"modelId": "a335cff6-a80c-4a72-886a-4299dc132f84", "status": + "creating", "createdDateTime": "2020-07-10T18:57:28Z", "lastUpdatedDateTime": + "2020-07-10T18:57:28Z"}}' + headers: + apim-request-id: + - 19d7b830-bce2-4dec-8952-567be39970f8 + content-type: + - application/json; charset=utf-8 + date: + - Fri, 10 Jul 2020 18:57:44 GMT + strict-transport-security: + - max-age=31536000; includeSubDomains; preload + transfer-encoding: + - chunked + x-content-type-options: + - nosniff + x-envoy-upstream-service-time: + - '68' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + method: GET + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/a335cff6-a80c-4a72-886a-4299dc132f84?includeKeys=true + response: + body: + string: '{"modelInfo": {"modelId": "a335cff6-a80c-4a72-886a-4299dc132f84", "status": + "ready", "createdDateTime": "2020-07-10T18:57:28Z", "lastUpdatedDateTime": + "2020-07-10T18:57:44Z"}, "keys": {"clusters": {"0": ["Address:", "Invoice For:", "Item", "Price", "Quantity", "Redmond, WA", "Signature:", "Subtotal:", "Tax:", "Tip:", "Total:"]}}, "trainResult": {"trainingDocuments": [{"documentName": "multipage_invoice1.pdf", "pages": 3, "errors": [], "status": "succeeded"}, @@ -142,11 +174,11 @@ interactions: "pages": 3, "errors": [], "status": "succeeded"}], "errors": []}}' headers: apim-request-id: - - bcec1773-d806-4b27-8cf1-b0f48ad27d93 + - be9a8ba5-4f01-4014-af5c-3dd861a85d4e content-type: - application/json; charset=utf-8 date: - - Thu, 11 Jun 2020 15:45:21 GMT + - Fri, 10 Jul 2020 18:57:50 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -154,7 +186,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '762' + - '51' status: code: 200 message: OK diff --git a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_training.test_training_multipage_with_labels.yaml b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_training.test_training_multipage_with_labels.yaml index bb55248e9273..8465b0be44b7 100644 --- a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_training.test_training_multipage_with_labels.yaml +++ b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_training.test_training_multipage_with_labels.yaml @@ -14,28 +14,27 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) method: POST - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models response: body: string: '' headers: apim-request-id: - - a7c500e8-de0b-4a2e-86c1-3f36c8f2b611 + - 16b198cc-b6c7-487b-aa17-43834afdd0fd content-length: - '0' date: - - Thu, 11 Jun 2020 15:44:49 GMT + - Fri, 10 Jul 2020 18:57:50 GMT location: - - https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/2d28add3-8236-4431-960e-f85de7652808 + - https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/22cc53a1-ce73-47ee-be21-be945f2df481 strict-transport-security: - max-age=31536000; includeSubDomains; preload x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '66' + - '71' status: code: 201 message: Created @@ -49,15 +48,14 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/2d28add3-8236-4431-960e-f85de7652808?includeKeys=true + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/22cc53a1-ce73-47ee-be21-be945f2df481?includeKeys=true response: body: - string: '{"modelInfo": {"modelId": "2d28add3-8236-4431-960e-f85de7652808", "status": - "ready", "createdDateTime": "2020-06-11T15:44:50Z", "lastUpdatedDateTime": - "2020-06-11T15:44:55Z"}, "trainResult": {"averageModelAccuracy": 0.889, "trainingDocuments": + string: '{"modelInfo": {"modelId": "22cc53a1-ce73-47ee-be21-be945f2df481", "status": + "ready", "createdDateTime": "2020-07-10T18:57:50Z", "lastUpdatedDateTime": + "2020-07-10T18:57:54Z"}, "trainResult": {"averageModelAccuracy": 0.889, "trainingDocuments": [{"documentName": "multipage_invoice1.pdf", "pages": 3, "status": "succeeded"}, {"documentName": "multipage_invoice2.pdf", "pages": 3, "status": "succeeded"}, {"documentName": "multipage_invoice3.pdf", "pages": 3, "status": "succeeded"}, @@ -76,11 +74,11 @@ interactions: 1.0}, {"fieldName": "Total2", "accuracy": 1.0}], "errors": []}}' headers: apim-request-id: - - dd810446-9365-444d-a7ee-3c95283544cd + - 99320637-70eb-44fc-8c1b-85824ef099fc content-type: - application/json; charset=utf-8 date: - - Thu, 11 Jun 2020 15:44:54 GMT + - Fri, 10 Jul 2020 18:57:55 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -88,7 +86,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '17' + - '18' status: code: 200 message: OK diff --git a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_training.test_training_transform.yaml b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_training.test_training_transform.yaml index 6b2d7a21828d..e61deea93449 100644 --- a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_training.test_training_transform.yaml +++ b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_training.test_training_transform.yaml @@ -14,28 +14,27 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) method: POST - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models response: body: string: '' headers: apim-request-id: - - 58d54b58-1087-4c88-a540-172e2f69cfae + - bb5492a4-d195-432c-8d20-b10662d115a1 content-length: - '0' date: - - Thu, 11 Jun 2020 15:44:56 GMT + - Fri, 10 Jul 2020 18:57:55 GMT location: - - https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/63b8d6bf-753e-4dc8-a53e-9cbbc9ca1e04 + - https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/b22424b6-2918-4a13-af2c-76b8352cdc8b strict-transport-security: - max-age=31536000; includeSubDomains; preload x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '38' + - '71' status: code: 201 message: Created @@ -49,22 +48,21 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/63b8d6bf-753e-4dc8-a53e-9cbbc9ca1e04?includeKeys=true + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/b22424b6-2918-4a13-af2c-76b8352cdc8b?includeKeys=true response: body: - string: '{"modelInfo": {"modelId": "63b8d6bf-753e-4dc8-a53e-9cbbc9ca1e04", "status": - "creating", "createdDateTime": "2020-06-11T15:44:56Z", "lastUpdatedDateTime": - "2020-06-11T15:44:56Z"}}' + string: '{"modelInfo": {"modelId": "b22424b6-2918-4a13-af2c-76b8352cdc8b", "status": + "creating", "createdDateTime": "2020-07-10T18:57:56Z", "lastUpdatedDateTime": + "2020-07-10T18:57:56Z"}}' headers: apim-request-id: - - f935ef63-da93-4d29-b027-8676305a9879 + - c2834bba-a25b-4175-87b6-d47d9e5677fd content-type: - application/json; charset=utf-8 date: - - Thu, 11 Jun 2020 15:45:00 GMT + - Fri, 10 Jul 2020 18:58:00 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -72,7 +70,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '19' + - '47' status: code: 200 message: OK @@ -86,96 +84,21 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/63b8d6bf-753e-4dc8-a53e-9cbbc9ca1e04?includeKeys=true + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/b22424b6-2918-4a13-af2c-76b8352cdc8b?includeKeys=true response: body: - string: '{"modelInfo": {"modelId": "63b8d6bf-753e-4dc8-a53e-9cbbc9ca1e04", "status": - "creating", "createdDateTime": "2020-06-11T15:44:56Z", "lastUpdatedDateTime": - "2020-06-11T15:44:56Z"}}' + string: '{"modelInfo": {"modelId": "b22424b6-2918-4a13-af2c-76b8352cdc8b", "status": + "creating", "createdDateTime": "2020-07-10T18:57:56Z", "lastUpdatedDateTime": + "2020-07-10T18:57:56Z"}}' headers: apim-request-id: - - 5dc97bab-38ad-4ea9-91f3-7d129dbbc34f + - 1f0562d4-d2c0-4255-a785-2d239d5fbc4a content-type: - application/json; charset=utf-8 date: - - Thu, 11 Jun 2020 15:45:06 GMT - strict-transport-security: - - max-age=31536000; includeSubDomains; preload - transfer-encoding: - - chunked - x-content-type-options: - - nosniff - x-envoy-upstream-service-time: - - '21' - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) - method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/63b8d6bf-753e-4dc8-a53e-9cbbc9ca1e04?includeKeys=true - response: - body: - string: '{"modelInfo": {"modelId": "63b8d6bf-753e-4dc8-a53e-9cbbc9ca1e04", "status": - "creating", "createdDateTime": "2020-06-11T15:44:56Z", "lastUpdatedDateTime": - "2020-06-11T15:44:56Z"}}' - headers: - apim-request-id: - - 2ef209a8-d98b-4f58-a1f0-3c70058bcb28 - content-type: - - application/json; charset=utf-8 - date: - - Thu, 11 Jun 2020 15:45:10 GMT - strict-transport-security: - - max-age=31536000; includeSubDomains; preload - transfer-encoding: - - chunked - x-content-type-options: - - nosniff - x-envoy-upstream-service-time: - - '17' - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) - method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/63b8d6bf-753e-4dc8-a53e-9cbbc9ca1e04?includeKeys=true - response: - body: - string: '{"modelInfo": {"modelId": "63b8d6bf-753e-4dc8-a53e-9cbbc9ca1e04", "status": - "creating", "createdDateTime": "2020-06-11T15:44:56Z", "lastUpdatedDateTime": - "2020-06-11T15:44:56Z"}}' - headers: - apim-request-id: - - c98596d3-b64d-4a47-a70b-b1ebaa5d5c79 - content-type: - - application/json; charset=utf-8 - date: - - Thu, 11 Jun 2020 15:45:16 GMT + - Fri, 10 Jul 2020 18:58:05 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -197,52 +120,14 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) - method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/63b8d6bf-753e-4dc8-a53e-9cbbc9ca1e04?includeKeys=true - response: - body: - string: '{"modelInfo": {"modelId": "63b8d6bf-753e-4dc8-a53e-9cbbc9ca1e04", "status": - "creating", "createdDateTime": "2020-06-11T15:44:56Z", "lastUpdatedDateTime": - "2020-06-11T15:44:56Z"}}' - headers: - apim-request-id: - - 02e992fc-8a44-4690-a07e-cf805a9b8ae1 - content-type: - - application/json; charset=utf-8 - date: - - Thu, 11 Jun 2020 15:45:27 GMT - strict-transport-security: - - max-age=31536000; includeSubDomains; preload - transfer-encoding: - - chunked - x-content-type-options: - - nosniff - x-envoy-upstream-service-time: - - '5173' - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/63b8d6bf-753e-4dc8-a53e-9cbbc9ca1e04?includeKeys=true + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/b22424b6-2918-4a13-af2c-76b8352cdc8b?includeKeys=true response: body: - string: '{"modelInfo": {"modelId": "63b8d6bf-753e-4dc8-a53e-9cbbc9ca1e04", "status": - "ready", "createdDateTime": "2020-06-11T15:44:56Z", "lastUpdatedDateTime": - "2020-06-11T15:45:27Z"}, "keys": {"clusters": {"0": ["Additional Notes:", + string: '{"modelInfo": {"modelId": "b22424b6-2918-4a13-af2c-76b8352cdc8b", "status": + "ready", "createdDateTime": "2020-07-10T18:57:56Z", "lastUpdatedDateTime": + "2020-07-10T18:58:06Z"}, "keys": {"clusters": {"0": ["Additional Notes:", "Address:", "Company Name:", "Company Phone:", "Dated As:", "Details", "Email:", "Hero Limited", "Name:", "Phone:", "Purchase Order", "Purchase Order #:", "Quantity", "SUBTOTAL", "Seattle, WA 93849 Phone:", "Shipped From", "Shipped @@ -255,11 +140,11 @@ interactions: 1, "errors": [], "status": "succeeded"}], "errors": []}}' headers: apim-request-id: - - d6308cba-c1b3-41f3-be98-450184e08b3e + - 24cd8f26-bace-432b-9c21-50491012a5c6 content-type: - application/json; charset=utf-8 date: - - Thu, 11 Jun 2020 15:45:33 GMT + - Fri, 10 Jul 2020 18:58:11 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -267,7 +152,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '812' + - '45' status: code: 200 message: OK diff --git a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_training.test_training_with_files_filter.yaml b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_training.test_training_with_files_filter.yaml index 6781f24cda50..b2b01ab8853c 100644 --- a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_training.test_training_with_files_filter.yaml +++ b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_training.test_training_with_files_filter.yaml @@ -14,28 +14,27 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) method: POST - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models response: body: string: '' headers: apim-request-id: - - 2fb2d7b0-749e-4da4-8fce-78403d0b355b + - 74fd1e7e-d314-46f3-bc0d-2caba0b8991f content-length: - '0' date: - - Thu, 11 Jun 2020 15:45:06 GMT + - Fri, 10 Jul 2020 18:58:11 GMT location: - - https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/661c9776-443c-45b2-8003-305d505721cd + - https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/fe7d756b-b445-41d6-a861-e2f4e443a114 strict-transport-security: - max-age=31536000; includeSubDomains; preload x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '114' + - '71' status: code: 201 message: Created @@ -49,22 +48,21 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/661c9776-443c-45b2-8003-305d505721cd?includeKeys=true + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/fe7d756b-b445-41d6-a861-e2f4e443a114?includeKeys=true response: body: - string: '{"modelInfo": {"modelId": "661c9776-443c-45b2-8003-305d505721cd", "status": - "creating", "createdDateTime": "2020-06-11T15:45:06Z", "lastUpdatedDateTime": - "2020-06-11T15:45:06Z"}}' + string: '{"modelInfo": {"modelId": "fe7d756b-b445-41d6-a861-e2f4e443a114", "status": + "creating", "createdDateTime": "2020-07-10T18:58:12Z", "lastUpdatedDateTime": + "2020-07-10T18:58:12Z"}}' headers: apim-request-id: - - 96998cdc-dab6-4b70-a5e2-90ac03a99917 + - b7773f81-bd5f-45d6-b783-0557af727bca content-type: - application/json; charset=utf-8 date: - - Thu, 11 Jun 2020 15:45:12 GMT + - Fri, 10 Jul 2020 18:58:17 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -72,7 +70,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '15' + - '19' status: code: 200 message: OK @@ -86,22 +84,21 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/661c9776-443c-45b2-8003-305d505721cd?includeKeys=true + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/fe7d756b-b445-41d6-a861-e2f4e443a114?includeKeys=true response: body: - string: '{"modelInfo": {"modelId": "661c9776-443c-45b2-8003-305d505721cd", "status": - "creating", "createdDateTime": "2020-06-11T15:45:06Z", "lastUpdatedDateTime": - "2020-06-11T15:45:06Z"}}' + string: '{"modelInfo": {"modelId": "fe7d756b-b445-41d6-a861-e2f4e443a114", "status": + "creating", "createdDateTime": "2020-07-10T18:58:12Z", "lastUpdatedDateTime": + "2020-07-10T18:58:12Z"}}' headers: apim-request-id: - - ac1c8120-61fd-462c-95e5-cc464687aa09 + - c190dd7d-5477-4c96-adce-f174acc0a4e6 content-type: - application/json; charset=utf-8 date: - - Thu, 11 Jun 2020 15:45:17 GMT + - Fri, 10 Jul 2020 18:58:22 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -109,7 +106,187 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '936' + - '17' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + method: GET + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/fe7d756b-b445-41d6-a861-e2f4e443a114?includeKeys=true + response: + body: + string: '{"modelInfo": {"modelId": "fe7d756b-b445-41d6-a861-e2f4e443a114", "status": + "creating", "createdDateTime": "2020-07-10T18:58:12Z", "lastUpdatedDateTime": + "2020-07-10T18:58:12Z"}}' + headers: + apim-request-id: + - 981c527f-98c8-4191-8b92-c80e29106d78 + content-type: + - application/json; charset=utf-8 + date: + - Fri, 10 Jul 2020 18:58:27 GMT + strict-transport-security: + - max-age=31536000; includeSubDomains; preload + transfer-encoding: + - chunked + x-content-type-options: + - nosniff + x-envoy-upstream-service-time: + - '49' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + method: GET + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/fe7d756b-b445-41d6-a861-e2f4e443a114?includeKeys=true + response: + body: + string: '{"modelInfo": {"modelId": "fe7d756b-b445-41d6-a861-e2f4e443a114", "status": + "creating", "createdDateTime": "2020-07-10T18:58:12Z", "lastUpdatedDateTime": + "2020-07-10T18:58:12Z"}}' + headers: + apim-request-id: + - b8760296-4baa-4ac7-9901-558099fb55c2 + content-type: + - application/json; charset=utf-8 + date: + - Fri, 10 Jul 2020 18:58:32 GMT + strict-transport-security: + - max-age=31536000; includeSubDomains; preload + transfer-encoding: + - chunked + x-content-type-options: + - nosniff + x-envoy-upstream-service-time: + - '49' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + method: GET + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/fe7d756b-b445-41d6-a861-e2f4e443a114?includeKeys=true + response: + body: + string: '{"modelInfo": {"modelId": "fe7d756b-b445-41d6-a861-e2f4e443a114", "status": + "creating", "createdDateTime": "2020-07-10T18:58:12Z", "lastUpdatedDateTime": + "2020-07-10T18:58:12Z"}}' + headers: + apim-request-id: + - 01327a0d-872e-4553-a5fc-de014b3184da + content-type: + - application/json; charset=utf-8 + date: + - Fri, 10 Jul 2020 18:58:37 GMT + strict-transport-security: + - max-age=31536000; includeSubDomains; preload + transfer-encoding: + - chunked + x-content-type-options: + - nosniff + x-envoy-upstream-service-time: + - '20' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + method: GET + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/fe7d756b-b445-41d6-a861-e2f4e443a114?includeKeys=true + response: + body: + string: '{"modelInfo": {"modelId": "fe7d756b-b445-41d6-a861-e2f4e443a114", "status": + "creating", "createdDateTime": "2020-07-10T18:58:12Z", "lastUpdatedDateTime": + "2020-07-10T18:58:12Z"}}' + headers: + apim-request-id: + - 3286d3dd-6b8c-4027-9053-931022f54483 + content-type: + - application/json; charset=utf-8 + date: + - Fri, 10 Jul 2020 18:58:43 GMT + strict-transport-security: + - max-age=31536000; includeSubDomains; preload + transfer-encoding: + - chunked + x-content-type-options: + - nosniff + x-envoy-upstream-service-time: + - '19' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + method: GET + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/fe7d756b-b445-41d6-a861-e2f4e443a114?includeKeys=true + response: + body: + string: '{"modelInfo": {"modelId": "fe7d756b-b445-41d6-a861-e2f4e443a114", "status": + "creating", "createdDateTime": "2020-07-10T18:58:12Z", "lastUpdatedDateTime": + "2020-07-10T18:58:12Z"}}' + headers: + apim-request-id: + - dcba9956-52a6-4817-9f0d-a02da46c99fa + content-type: + - application/json; charset=utf-8 + date: + - Fri, 10 Jul 2020 18:58:48 GMT + strict-transport-security: + - max-age=31536000; includeSubDomains; preload + transfer-encoding: + - chunked + x-content-type-options: + - nosniff + x-envoy-upstream-service-time: + - '20' status: code: 200 message: OK @@ -123,15 +300,122 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/661c9776-443c-45b2-8003-305d505721cd?includeKeys=true + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/fe7d756b-b445-41d6-a861-e2f4e443a114?includeKeys=true response: body: - string: '{"modelInfo": {"modelId": "661c9776-443c-45b2-8003-305d505721cd", "status": - "ready", "createdDateTime": "2020-06-11T15:45:06Z", "lastUpdatedDateTime": - "2020-06-11T15:45:18Z"}, "keys": {"clusters": {"0": ["Additional Notes:", + string: '{"modelInfo": {"modelId": "fe7d756b-b445-41d6-a861-e2f4e443a114", "status": + "creating", "createdDateTime": "2020-07-10T18:58:12Z", "lastUpdatedDateTime": + "2020-07-10T18:58:12Z"}}' + headers: + apim-request-id: + - 5b465775-8298-4ff0-80ce-5ba25535caae + content-type: + - application/json; charset=utf-8 + date: + - Fri, 10 Jul 2020 18:58:53 GMT + strict-transport-security: + - max-age=31536000; includeSubDomains; preload + transfer-encoding: + - chunked + x-content-type-options: + - nosniff + x-envoy-upstream-service-time: + - '23' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + method: GET + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/fe7d756b-b445-41d6-a861-e2f4e443a114?includeKeys=true + response: + body: + string: '{"modelInfo": {"modelId": "fe7d756b-b445-41d6-a861-e2f4e443a114", "status": + "creating", "createdDateTime": "2020-07-10T18:58:12Z", "lastUpdatedDateTime": + "2020-07-10T18:58:12Z"}}' + headers: + apim-request-id: + - c2e672b2-014f-408c-9f5a-99dd8ea7acd0 + content-type: + - application/json; charset=utf-8 + date: + - Fri, 10 Jul 2020 18:58:58 GMT + strict-transport-security: + - max-age=31536000; includeSubDomains; preload + transfer-encoding: + - chunked + x-content-type-options: + - nosniff + x-envoy-upstream-service-time: + - '16' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + method: GET + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/fe7d756b-b445-41d6-a861-e2f4e443a114?includeKeys=true + response: + body: + string: '{"modelInfo": {"modelId": "fe7d756b-b445-41d6-a861-e2f4e443a114", "status": + "creating", "createdDateTime": "2020-07-10T18:58:12Z", "lastUpdatedDateTime": + "2020-07-10T18:58:12Z"}}' + headers: + apim-request-id: + - 2aae5104-944f-4d6c-8bb7-23b51e22d430 + content-type: + - application/json; charset=utf-8 + date: + - Fri, 10 Jul 2020 18:59:03 GMT + strict-transport-security: + - max-age=31536000; includeSubDomains; preload + transfer-encoding: + - chunked + x-content-type-options: + - nosniff + x-envoy-upstream-service-time: + - '23' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + method: GET + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/fe7d756b-b445-41d6-a861-e2f4e443a114?includeKeys=true + response: + body: + string: '{"modelInfo": {"modelId": "fe7d756b-b445-41d6-a861-e2f4e443a114", "status": + "ready", "createdDateTime": "2020-07-10T18:58:12Z", "lastUpdatedDateTime": + "2020-07-10T18:59:04Z"}, "keys": {"clusters": {"0": ["Additional Notes:", "Address:", "Company Name:", "Company Phone:", "Dated As:", "Details", "Email:", "Hero Limited", "Name:", "Phone:", "Purchase Order", "Purchase Order #:", "Quantity", "SUBTOTAL", "Seattle, WA 93849 Phone:", "Shipped From", "Shipped @@ -145,11 +429,11 @@ interactions: "pages": 1, "errors": [], "status": "succeeded"}], "errors": []}}' headers: apim-request-id: - - 6fcdd876-7312-45e3-a292-f6013c4588f3 + - 9795ab2d-dcf9-4322-b5bc-9e4691e273ff content-type: - application/json; charset=utf-8 date: - - Thu, 11 Jun 2020 15:45:22 GMT + - Fri, 10 Jul 2020 18:59:08 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -157,7 +441,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '16' + - '17' status: code: 200 message: OK @@ -176,28 +460,27 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) method: POST - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models response: body: string: '' headers: apim-request-id: - - b8ae6123-86ab-46ae-81b9-772134341b36 + - 38246281-de76-4c3f-9fe4-54b58b8cd4d5 content-length: - '0' date: - - Thu, 11 Jun 2020 15:45:22 GMT + - Fri, 10 Jul 2020 18:59:08 GMT location: - - https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/53356382-d730-4e60-8303-2b9596f0a56e + - https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/66a3596f-3c1d-4c3f-ba5a-03624d76af23 strict-transport-security: - max-age=31536000; includeSubDomains; preload x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '38' + - '109' status: code: 201 message: Created @@ -211,22 +494,25 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/53356382-d730-4e60-8303-2b9596f0a56e?includeKeys=true + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/66a3596f-3c1d-4c3f-ba5a-03624d76af23?includeKeys=true response: body: - string: '{"modelInfo": {"modelId": "53356382-d730-4e60-8303-2b9596f0a56e", "status": - "creating", "createdDateTime": "2020-06-11T15:45:23Z", "lastUpdatedDateTime": - "2020-06-11T15:45:23Z"}}' + string: '{"modelInfo": {"modelId": "66a3596f-3c1d-4c3f-ba5a-03624d76af23", "status": + "ready", "createdDateTime": "2020-07-10T18:59:09Z", "lastUpdatedDateTime": + "2020-07-10T18:59:13Z"}, "keys": {"clusters": {"0": ["Address:", "Company + Name:", "Company Phone:", "Dated As:", "Details", "Name:", "Phone:", "Purchase + Order #:", "Quantity", "Total", "Unit Price", "Vendor Name:", "Website:"]}}, + "trainResult": {"trainingDocuments": [{"documentName": "subfolder/Form_6.jpg", + "pages": 1, "errors": [], "status": "succeeded"}], "errors": []}}' headers: apim-request-id: - - 1d9321e3-cd5c-4242-a586-3a5a069e0942 + - 53651b78-3439-4a8d-833f-a8c26039ea78 content-type: - application/json; charset=utf-8 date: - - Thu, 11 Jun 2020 15:45:28 GMT + - Fri, 10 Jul 2020 18:59:14 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -234,10 +520,49 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '17' + - '901' status: code: 200 message: OK +- request: + body: 'b''b\''{"source": "containersasurl", "sourceFilter": {"prefix": "xxx", + "includeSubFolders": false}, "useLabelFile": false}\''''' + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '291' + Content-Type: + - application/json + User-Agent: + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + method: POST + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models + response: + body: + string: '' + headers: + apim-request-id: + - decce70e-4a03-4161-a4f9-4e854feef04d + content-length: + - '0' + date: + - Fri, 10 Jul 2020 18:59:16 GMT + location: + - https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/276c317e-5931-45b7-9ee6-413f1ad89ac7 + strict-transport-security: + - max-age=31536000; includeSubDomains; preload + x-content-type-options: + - nosniff + x-envoy-upstream-service-time: + - '1107' + status: + code: 201 + message: Created - request: body: null headers: @@ -248,26 +573,21 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/53356382-d730-4e60-8303-2b9596f0a56e?includeKeys=true + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/276c317e-5931-45b7-9ee6-413f1ad89ac7?includeKeys=true response: body: - string: '{"modelInfo": {"modelId": "53356382-d730-4e60-8303-2b9596f0a56e", "status": - "ready", "createdDateTime": "2020-06-11T15:45:23Z", "lastUpdatedDateTime": - "2020-06-11T15:45:30Z"}, "keys": {"clusters": {"0": ["Address:", "Company - Name:", "Company Phone:", "Dated As:", "Details", "Name:", "Phone:", "Purchase - Order #:", "Quantity", "Total", "Unit Price", "Vendor Name:", "Website:"]}}, - "trainResult": {"trainingDocuments": [{"documentName": "subfolder/Form_6.jpg", - "pages": 1, "errors": [], "status": "succeeded"}], "errors": []}}' + string: '{"modelInfo": {"modelId": "276c317e-5931-45b7-9ee6-413f1ad89ac7", "status": + "creating", "createdDateTime": "2020-07-10T18:59:16Z", "lastUpdatedDateTime": + "2020-07-10T18:59:16Z"}}' headers: apim-request-id: - - 0966e493-9eae-4927-bbfb-2f066731ff2e + - 8d0e4566-fd6d-4f6f-8abf-af597b3305d8 content-type: - application/json; charset=utf-8 date: - - Thu, 11 Jun 2020 15:45:33 GMT + - Fri, 10 Jul 2020 18:59:21 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -280,8 +600,7 @@ interactions: code: 200 message: OK - request: - body: 'b''b\''{"source": "containersasurl", "sourceFilter": {"prefix": "xxx", - "includeSubFolders": false}, "useLabelFile": false}\''''' + body: null headers: Accept: - '*/*' @@ -289,36 +608,69 @@ interactions: - gzip, deflate Connection: - keep-alive - Content-Length: - - '291' - Content-Type: - - application/json User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) - method: POST - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + method: GET + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/276c317e-5931-45b7-9ee6-413f1ad89ac7?includeKeys=true response: body: - string: '' + string: '{"modelInfo": {"modelId": "276c317e-5931-45b7-9ee6-413f1ad89ac7", "status": + "creating", "createdDateTime": "2020-07-10T18:59:16Z", "lastUpdatedDateTime": + "2020-07-10T18:59:16Z"}}' headers: apim-request-id: - - 324c5347-1e14-4b96-8d24-ad9e74964660 - content-length: - - '0' + - 91d853a4-07d3-41f9-a250-f321bbbaeab1 + content-type: + - application/json; charset=utf-8 date: - - Thu, 11 Jun 2020 15:45:33 GMT - location: - - https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/609c323a-65bb-4647-8a67-5d7527f6cc25 + - Fri, 10 Jul 2020 18:59:26 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload + transfer-encoding: + - chunked x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '40' + - '19' status: - code: 201 - message: Created + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + method: GET + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/276c317e-5931-45b7-9ee6-413f1ad89ac7?includeKeys=true + response: + body: + string: '{"modelInfo": {"modelId": "276c317e-5931-45b7-9ee6-413f1ad89ac7", "status": + "creating", "createdDateTime": "2020-07-10T18:59:16Z", "lastUpdatedDateTime": + "2020-07-10T18:59:16Z"}}' + headers: + apim-request-id: + - 147f0bbc-90fb-4453-8a85-9bc53c4c2d2d + content-type: + - application/json; charset=utf-8 + date: + - Fri, 10 Jul 2020 18:59:31 GMT + strict-transport-security: + - max-age=31536000; includeSubDomains; preload + transfer-encoding: + - chunked + x-content-type-options: + - nosniff + x-envoy-upstream-service-time: + - '23' + status: + code: 200 + message: OK - request: body: null headers: @@ -329,25 +681,24 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/609c323a-65bb-4647-8a67-5d7527f6cc25?includeKeys=true + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/276c317e-5931-45b7-9ee6-413f1ad89ac7?includeKeys=true response: body: - string: '{"modelInfo": {"modelId": "609c323a-65bb-4647-8a67-5d7527f6cc25", "status": - "invalid", "createdDateTime": "2020-06-11T15:45:33Z", "lastUpdatedDateTime": - "2020-06-11T15:45:34Z"}, "keys": {"clusters": {}}, "trainResult": {"trainingDocuments": + string: '{"modelInfo": {"modelId": "276c317e-5931-45b7-9ee6-413f1ad89ac7", "status": + "invalid", "createdDateTime": "2020-07-10T18:59:16Z", "lastUpdatedDateTime": + "2020-07-10T18:59:32Z"}, "keys": {"clusters": {}}, "trainResult": {"trainingDocuments": [], "errors": [{"code": "2014", "message": "No valid blobs found in the specified Azure blob container. Please conform to the document format/size/page/dimensions requirements."}]}}' headers: apim-request-id: - - 73662e4b-343e-4e19-94c3-6874863111ea + - aad66651-f1a5-4a57-ab91-8cb0c941c87c content-type: - application/json; charset=utf-8 date: - - Thu, 11 Jun 2020 15:45:38 GMT + - Fri, 10 Jul 2020 18:59:36 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -355,7 +706,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '27' + - '18' x-ms-cs-error-code: - '2014' status: diff --git a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_training.test_training_with_labels.yaml b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_training.test_training_with_labels.yaml index 698ba79c3830..d47721b747db 100644 --- a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_training.test_training_with_labels.yaml +++ b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_training.test_training_with_labels.yaml @@ -14,22 +14,21 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) method: POST - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models response: body: string: '' headers: apim-request-id: - - f2ddea5a-8b76-4800-8578-498467731a69 + - 97f439bb-6f4c-46c9-ae22-3cb84d378cac content-length: - '0' date: - - Thu, 11 Jun 2020 15:44:59 GMT + - Fri, 10 Jul 2020 18:58:09 GMT location: - - https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/24c6f8bd-2712-4a01-9d6b-ff2a66c6e028 + - https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/69938daf-d966-48dd-868c-3d0fd287b049 strict-transport-security: - max-age=31536000; includeSubDomains; preload x-content-type-options: @@ -49,15 +48,14 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/24c6f8bd-2712-4a01-9d6b-ff2a66c6e028?includeKeys=true + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/69938daf-d966-48dd-868c-3d0fd287b049?includeKeys=true response: body: - string: '{"modelInfo": {"modelId": "24c6f8bd-2712-4a01-9d6b-ff2a66c6e028", "status": - "ready", "createdDateTime": "2020-06-11T15:44:59Z", "lastUpdatedDateTime": - "2020-06-11T15:45:02Z"}, "trainResult": {"averageModelAccuracy": 0.973, "trainingDocuments": + string: '{"modelInfo": {"modelId": "69938daf-d966-48dd-868c-3d0fd287b049", "status": + "ready", "createdDateTime": "2020-07-10T18:58:09Z", "lastUpdatedDateTime": + "2020-07-10T18:58:12Z"}, "trainResult": {"averageModelAccuracy": 0.973, "trainingDocuments": [{"documentName": "Form_1.jpg", "pages": 1, "status": "succeeded"}, {"documentName": "Form_2.jpg", "pages": 1, "status": "succeeded"}, {"documentName": "Form_3.jpg", "pages": 1, "status": "succeeded"}, {"documentName": "Form_4.jpg", "pages": @@ -74,11 +72,11 @@ interactions: "errors": []}}' headers: apim-request-id: - - c625d7db-1df0-40e1-b18b-80e9291bfb16 + - b02b67f4-790f-498d-9563-880d099ff818 content-type: - application/json; charset=utf-8 date: - - Thu, 11 Jun 2020 15:45:04 GMT + - Fri, 10 Jul 2020 18:58:14 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -86,7 +84,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '48' + - '955' status: code: 200 message: OK diff --git a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_training.test_training_with_labels_transform.yaml b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_training.test_training_with_labels_transform.yaml index 5d1c24d1f4d1..6e227a315d08 100644 --- a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_training.test_training_with_labels_transform.yaml +++ b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_training.test_training_with_labels_transform.yaml @@ -14,28 +14,27 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) method: POST - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models response: body: string: '' headers: apim-request-id: - - 40e56610-7064-4e01-9844-04021e62368b + - 182c2d02-7ef4-46b1-b14a-328e6acc9e1b content-length: - '0' date: - - Thu, 11 Jun 2020 15:45:08 GMT + - Fri, 10 Jul 2020 18:58:15 GMT location: - - https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/2f5fee85-68dd-4ac0-b19b-4a6b58f244c4 + - https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/31f9ba9a-929c-4129-b6ce-fcbe5ab23ad2 strict-transport-security: - max-age=31536000; includeSubDomains; preload x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '39' + - '68' status: code: 201 message: Created @@ -49,15 +48,14 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/2f5fee85-68dd-4ac0-b19b-4a6b58f244c4?includeKeys=true + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/31f9ba9a-929c-4129-b6ce-fcbe5ab23ad2?includeKeys=true response: body: - string: '{"modelInfo": {"modelId": "2f5fee85-68dd-4ac0-b19b-4a6b58f244c4", "status": - "ready", "createdDateTime": "2020-06-11T15:45:08Z", "lastUpdatedDateTime": - "2020-06-11T15:45:11Z"}, "trainResult": {"averageModelAccuracy": 0.973, "trainingDocuments": + string: '{"modelInfo": {"modelId": "31f9ba9a-929c-4129-b6ce-fcbe5ab23ad2", "status": + "ready", "createdDateTime": "2020-07-10T18:58:15Z", "lastUpdatedDateTime": + "2020-07-10T18:58:18Z"}, "trainResult": {"averageModelAccuracy": 0.973, "trainingDocuments": [{"documentName": "Form_1.jpg", "pages": 1, "status": "succeeded"}, {"documentName": "Form_2.jpg", "pages": 1, "status": "succeeded"}, {"documentName": "Form_3.jpg", "pages": 1, "status": "succeeded"}, {"documentName": "Form_4.jpg", "pages": @@ -74,11 +72,11 @@ interactions: "errors": []}}' headers: apim-request-id: - - cc2b317f-2b9e-45dc-816f-60123f4c6ec2 + - 2c2c725f-a49b-4852-a078-00cb03911069 content-type: - application/json; charset=utf-8 date: - - Thu, 11 Jun 2020 15:45:13 GMT + - Fri, 10 Jul 2020 18:58:21 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -86,7 +84,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '16' + - '968' status: code: 200 message: OK diff --git a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_training_async.test_polling_interval.yaml b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_training_async.test_polling_interval.yaml index 3ca99f843569..d6d59542c5c2 100644 --- a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_training_async.test_polling_interval.yaml +++ b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_training_async.test_polling_interval.yaml @@ -8,63 +8,60 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) method: POST - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models response: body: string: '' headers: - apim-request-id: 266ae45e-1e1a-4c42-a21a-f73ca5bbefb8 + apim-request-id: 532da8f9-e5cc-4c25-979f-ec74db9078c2 content-length: '0' - date: Fri, 12 Jun 2020 17:17:20 GMT - location: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/280b1966-c58c-400b-aa00-967fbc90cbf6 + date: Fri, 10 Jul 2020 18:59:37 GMT + location: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/d2f9b7bd-c8a6-4450-a246-dfea0ca7c36b strict-transport-security: max-age=31536000; includeSubDomains; preload x-content-type-options: nosniff - x-envoy-upstream-service-time: '523' + x-envoy-upstream-service-time: '64' status: code: 201 message: Created - url: https://centraluseuap.api.cognitive.microsoft.com//formrecognizer/v2.0-preview/custom/models + url: https://centraluseuap.api.cognitive.microsoft.com//formrecognizer/v2.0/custom/models - request: body: null headers: User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/280b1966-c58c-400b-aa00-967fbc90cbf6?includeKeys=true + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/d2f9b7bd-c8a6-4450-a246-dfea0ca7c36b?includeKeys=true response: body: - string: '{"modelInfo": {"modelId": "280b1966-c58c-400b-aa00-967fbc90cbf6", "status": - "creating", "createdDateTime": "2020-06-12T17:17:20Z", "lastUpdatedDateTime": - "2020-06-12T17:17:20Z"}}' + string: '{"modelInfo": {"modelId": "d2f9b7bd-c8a6-4450-a246-dfea0ca7c36b", "status": + "creating", "createdDateTime": "2020-07-10T18:59:37Z", "lastUpdatedDateTime": + "2020-07-10T18:59:37Z"}}' headers: - apim-request-id: 7f1bf53e-0d76-4bec-84fe-ac6d448fba4e + apim-request-id: a6c96cbc-394e-4fbe-a447-3e4743dff671 content-type: application/json; charset=utf-8 - date: Fri, 12 Jun 2020 17:17:26 GMT + date: Fri, 10 Jul 2020 18:59:44 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '67' + x-envoy-upstream-service-time: '1827' status: code: 200 message: OK - url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/280b1966-c58c-400b-aa00-967fbc90cbf6?includeKeys=true + url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/d2f9b7bd-c8a6-4450-a246-dfea0ca7c36b?includeKeys=true - request: body: null headers: User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/280b1966-c58c-400b-aa00-967fbc90cbf6?includeKeys=true + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/d2f9b7bd-c8a6-4450-a246-dfea0ca7c36b?includeKeys=true response: body: - string: '{"modelInfo": {"modelId": "280b1966-c58c-400b-aa00-967fbc90cbf6", "status": - "ready", "createdDateTime": "2020-06-12T17:17:20Z", "lastUpdatedDateTime": - "2020-06-12T17:17:30Z"}, "keys": {"clusters": {"0": ["Additional Notes:", + string: '{"modelInfo": {"modelId": "d2f9b7bd-c8a6-4450-a246-dfea0ca7c36b", "status": + "ready", "createdDateTime": "2020-07-10T18:59:37Z", "lastUpdatedDateTime": + "2020-07-10T18:59:49Z"}, "keys": {"clusters": {"0": ["Additional Notes:", "Address:", "Company Name:", "Company Phone:", "Dated As:", "Details", "Email:", "Hero Limited", "Name:", "Phone:", "Purchase Order", "Purchase Order #:", "Quantity", "SUBTOTAL", "Seattle, WA 93849 Phone:", "Shipped From", "Shipped @@ -76,17 +73,17 @@ interactions: 1, "errors": [], "status": "succeeded"}, {"documentName": "Form_5.jpg", "pages": 1, "errors": [], "status": "succeeded"}], "errors": []}}' headers: - apim-request-id: e5ce8d1a-e6ce-4637-ad2d-c81861343bd2 + apim-request-id: 1121811a-42a3-4a98-9945-77f7b07d2dbe content-type: application/json; charset=utf-8 - date: Fri, 12 Jun 2020 17:17:33 GMT + date: Fri, 10 Jul 2020 18:59:51 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '157' + x-envoy-upstream-service-time: '50' status: code: 200 message: OK - url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/280b1966-c58c-400b-aa00-967fbc90cbf6?includeKeys=true + url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/d2f9b7bd-c8a6-4450-a246-dfea0ca7c36b?includeKeys=true - request: body: 'b''b\''{"source": "containersasurl", "sourceFilter": {"prefix": "", "includeSubFolders": false}, "useLabelFile": false}\''''' @@ -96,88 +93,156 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) method: POST - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models response: body: string: '' headers: - apim-request-id: fb75dd82-85ff-4a90-a429-74c065ad7df4 + apim-request-id: a3c2d47d-da70-4645-9734-f38b1ed1c284 content-length: '0' - date: Fri, 12 Jun 2020 17:17:33 GMT - location: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/6f6b1513-1eca-4d9a-9f79-cdc500551d01 + date: Fri, 10 Jul 2020 18:59:51 GMT + location: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/1067aebb-eaa1-4469-ac61-e9573fcf81a0 strict-transport-security: max-age=31536000; includeSubDomains; preload x-content-type-options: nosniff - x-envoy-upstream-service-time: '188' + x-envoy-upstream-service-time: '71' status: code: 201 message: Created - url: https://centraluseuap.api.cognitive.microsoft.com//formrecognizer/v2.0-preview/custom/models + url: https://centraluseuap.api.cognitive.microsoft.com//formrecognizer/v2.0/custom/models - request: body: null headers: User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/6f6b1513-1eca-4d9a-9f79-cdc500551d01?includeKeys=true + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/1067aebb-eaa1-4469-ac61-e9573fcf81a0?includeKeys=true response: body: - string: '{"modelInfo": {"modelId": "6f6b1513-1eca-4d9a-9f79-cdc500551d01", "status": - "creating", "createdDateTime": "2020-06-12T17:17:33Z", "lastUpdatedDateTime": - "2020-06-12T17:17:33Z"}}' + string: '{"modelInfo": {"modelId": "1067aebb-eaa1-4469-ac61-e9573fcf81a0", "status": + "creating", "createdDateTime": "2020-07-10T18:59:52Z", "lastUpdatedDateTime": + "2020-07-10T18:59:52Z"}}' headers: - apim-request-id: a26cf20e-3646-41c7-a707-22719fceaf6a + apim-request-id: a8f69864-2259-45d1-8d4b-706db491b788 content-type: application/json; charset=utf-8 - date: Fri, 12 Jun 2020 17:17:44 GMT + date: Fri, 10 Jul 2020 18:59:58 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '5227' + x-envoy-upstream-service-time: '995' status: code: 200 message: OK - url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/6f6b1513-1eca-4d9a-9f79-cdc500551d01?includeKeys=true + url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/1067aebb-eaa1-4469-ac61-e9573fcf81a0?includeKeys=true - request: body: null headers: User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/6f6b1513-1eca-4d9a-9f79-cdc500551d01?includeKeys=true + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/1067aebb-eaa1-4469-ac61-e9573fcf81a0?includeKeys=true response: body: - string: '{"modelInfo": {"modelId": "6f6b1513-1eca-4d9a-9f79-cdc500551d01", "status": - "creating", "createdDateTime": "2020-06-12T17:17:33Z", "lastUpdatedDateTime": - "2020-06-12T17:17:33Z"}}' + string: '{"modelInfo": {"modelId": "1067aebb-eaa1-4469-ac61-e9573fcf81a0", "status": + "creating", "createdDateTime": "2020-07-10T18:59:52Z", "lastUpdatedDateTime": + "2020-07-10T18:59:52Z"}}' headers: - apim-request-id: fb1c69cf-7ef4-4140-bff4-a40efc38492d + apim-request-id: 22087eaf-f20f-4ea2-b2ce-998c3aa068a1 content-type: application/json; charset=utf-8 - date: Fri, 12 Jun 2020 17:17:49 GMT + date: Fri, 10 Jul 2020 19:00:02 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '203' + x-envoy-upstream-service-time: '17' + status: + code: 200 + message: OK + url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/1067aebb-eaa1-4469-ac61-e9573fcf81a0?includeKeys=true +- request: + body: null + headers: + User-Agent: + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + method: GET + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/1067aebb-eaa1-4469-ac61-e9573fcf81a0?includeKeys=true + response: + body: + string: '{"modelInfo": {"modelId": "1067aebb-eaa1-4469-ac61-e9573fcf81a0", "status": + "creating", "createdDateTime": "2020-07-10T18:59:52Z", "lastUpdatedDateTime": + "2020-07-10T18:59:52Z"}}' + headers: + apim-request-id: 113fe960-b7f6-489d-bf1a-7dace3bc4571 + content-type: application/json; charset=utf-8 + date: Fri, 10 Jul 2020 19:00:08 GMT + strict-transport-security: max-age=31536000; includeSubDomains; preload + transfer-encoding: chunked + x-content-type-options: nosniff + x-envoy-upstream-service-time: '161' status: code: 200 message: OK - url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/6f6b1513-1eca-4d9a-9f79-cdc500551d01?includeKeys=true + url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/1067aebb-eaa1-4469-ac61-e9573fcf81a0?includeKeys=true - request: body: null headers: User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/6f6b1513-1eca-4d9a-9f79-cdc500551d01?includeKeys=true + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/1067aebb-eaa1-4469-ac61-e9573fcf81a0?includeKeys=true response: body: - string: '{"modelInfo": {"modelId": "6f6b1513-1eca-4d9a-9f79-cdc500551d01", "status": - "ready", "createdDateTime": "2020-06-12T17:17:33Z", "lastUpdatedDateTime": - "2020-06-12T17:17:53Z"}, "keys": {"clusters": {"0": ["Additional Notes:", + string: '{"modelInfo": {"modelId": "1067aebb-eaa1-4469-ac61-e9573fcf81a0", "status": + "creating", "createdDateTime": "2020-07-10T18:59:52Z", "lastUpdatedDateTime": + "2020-07-10T18:59:52Z"}}' + headers: + apim-request-id: 80c732bd-9b5c-4073-bd4a-d8d003e79b63 + content-type: application/json; charset=utf-8 + date: Fri, 10 Jul 2020 19:00:13 GMT + strict-transport-security: max-age=31536000; includeSubDomains; preload + transfer-encoding: chunked + x-content-type-options: nosniff + x-envoy-upstream-service-time: '18' + status: + code: 200 + message: OK + url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/1067aebb-eaa1-4469-ac61-e9573fcf81a0?includeKeys=true +- request: + body: null + headers: + User-Agent: + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + method: GET + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/1067aebb-eaa1-4469-ac61-e9573fcf81a0?includeKeys=true + response: + body: + string: '{"modelInfo": {"modelId": "1067aebb-eaa1-4469-ac61-e9573fcf81a0", "status": + "creating", "createdDateTime": "2020-07-10T18:59:52Z", "lastUpdatedDateTime": + "2020-07-10T18:59:52Z"}}' + headers: + apim-request-id: 0439dedb-9b9b-4c8f-8528-2211efedbeac + content-type: application/json; charset=utf-8 + date: Fri, 10 Jul 2020 19:00:18 GMT + strict-transport-security: max-age=31536000; includeSubDomains; preload + transfer-encoding: chunked + x-content-type-options: nosniff + x-envoy-upstream-service-time: '20' + status: + code: 200 + message: OK + url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/1067aebb-eaa1-4469-ac61-e9573fcf81a0?includeKeys=true +- request: + body: null + headers: + User-Agent: + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + method: GET + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/1067aebb-eaa1-4469-ac61-e9573fcf81a0?includeKeys=true + response: + body: + string: '{"modelInfo": {"modelId": "1067aebb-eaa1-4469-ac61-e9573fcf81a0", "status": + "ready", "createdDateTime": "2020-07-10T18:59:52Z", "lastUpdatedDateTime": + "2020-07-10T19:00:22Z"}, "keys": {"clusters": {"0": ["Additional Notes:", "Address:", "Company Name:", "Company Phone:", "Dated As:", "Details", "Email:", "Hero Limited", "Name:", "Phone:", "Purchase Order", "Purchase Order #:", "Quantity", "SUBTOTAL", "Seattle, WA 93849 Phone:", "Shipped From", "Shipped @@ -189,15 +254,15 @@ interactions: 1, "errors": [], "status": "succeeded"}, {"documentName": "Form_5.jpg", "pages": 1, "errors": [], "status": "succeeded"}], "errors": []}}' headers: - apim-request-id: b4e7cf16-37d8-4853-b0b3-ae8ec59768f5 + apim-request-id: 8c8e46fe-bfb6-4e63-b086-9997393cb2ea content-type: application/json; charset=utf-8 - date: Fri, 12 Jun 2020 17:17:54 GMT + date: Fri, 10 Jul 2020 19:00:23 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '17' + x-envoy-upstream-service-time: '49' status: code: 200 message: OK - url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/6f6b1513-1eca-4d9a-9f79-cdc500551d01?includeKeys=true + url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/1067aebb-eaa1-4469-ac61-e9573fcf81a0?includeKeys=true version: 1 diff --git a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_training_async.test_train_multipage_w_lbls_trnsfrm.yaml b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_training_async.test_train_multipage_w_lbls_trnsfrm.yaml index 9234f3f9d2ab..0077304c77a2 100644 --- a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_training_async.test_train_multipage_w_lbls_trnsfrm.yaml +++ b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_training_async.test_train_multipage_w_lbls_trnsfrm.yaml @@ -8,38 +8,36 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) method: POST - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models response: body: string: '' headers: - apim-request-id: 8ce89369-0cda-416d-a7e8-acc1a039f8f1 + apim-request-id: db463be5-4574-460d-ac5f-f0c4fe6b1f30 content-length: '0' - date: Thu, 11 Jun 2020 15:44:51 GMT - location: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/b61b0ec1-d42c-48c2-b5c2-f046a34b30f0 + date: Fri, 10 Jul 2020 18:58:21 GMT + location: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/d7c639cf-2c24-4664-be20-d518f3fc5f81 strict-transport-security: max-age=31536000; includeSubDomains; preload x-content-type-options: nosniff - x-envoy-upstream-service-time: '63' + x-envoy-upstream-service-time: '73' status: code: 201 message: Created - url: https://centraluseuap.api.cognitive.microsoft.com//formrecognizer/v2.0-preview/custom/models + url: https://centraluseuap.api.cognitive.microsoft.com//formrecognizer/v2.0/custom/models - request: body: null headers: User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/b61b0ec1-d42c-48c2-b5c2-f046a34b30f0?includeKeys=true + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/d7c639cf-2c24-4664-be20-d518f3fc5f81?includeKeys=true response: body: - string: '{"modelInfo": {"modelId": "b61b0ec1-d42c-48c2-b5c2-f046a34b30f0", "status": - "ready", "createdDateTime": "2020-06-11T15:44:51Z", "lastUpdatedDateTime": - "2020-06-11T15:44:54Z"}, "trainResult": {"averageModelAccuracy": 0.889, "trainingDocuments": + string: '{"modelInfo": {"modelId": "d7c639cf-2c24-4664-be20-d518f3fc5f81", "status": + "ready", "createdDateTime": "2020-07-10T18:58:22Z", "lastUpdatedDateTime": + "2020-07-10T18:58:27Z"}, "trainResult": {"averageModelAccuracy": 0.889, "trainingDocuments": [{"documentName": "multipage_invoice1.pdf", "pages": 3, "status": "succeeded"}, {"documentName": "multipage_invoice2.pdf", "pages": 3, "status": "succeeded"}, {"documentName": "multipage_invoice3.pdf", "pages": 3, "status": "succeeded"}, @@ -57,15 +55,15 @@ interactions: 1.0}, {"fieldName": "Tip", "accuracy": 1.0}, {"fieldName": "Total", "accuracy": 1.0}, {"fieldName": "Total2", "accuracy": 1.0}], "errors": []}}' headers: - apim-request-id: 9b9f6000-c8d5-4753-a16b-e3ff43fe6e24 + apim-request-id: 1a0cc889-4cff-4bc9-a157-d7ef863a3aac content-type: application/json; charset=utf-8 - date: Thu, 11 Jun 2020 15:44:56 GMT + date: Fri, 10 Jul 2020 18:58:27 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '17' + x-envoy-upstream-service-time: '19' status: code: 200 message: OK - url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/b61b0ec1-d42c-48c2-b5c2-f046a34b30f0?includeKeys=true + url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/d7c639cf-2c24-4664-be20-d518f3fc5f81?includeKeys=true version: 1 diff --git a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_training_async.test_training.yaml b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_training_async.test_training.yaml index 51e5195231b8..84a6612d8971 100644 --- a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_training_async.test_training.yaml +++ b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_training_async.test_training.yaml @@ -8,88 +8,60 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) method: POST - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models response: body: string: '' headers: - apim-request-id: 6b2a5326-05c3-4ee6-871a-470ceadf0443 + apim-request-id: f99b00b0-2747-435e-ad7a-bacdcece4c60 content-length: '0' - date: Thu, 11 Jun 2020 15:44:58 GMT - location: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/dcd6a320-1c68-4eb1-a6e1-9a8c7bf9ad5e + date: Fri, 10 Jul 2020 18:58:32 GMT + location: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/65d2d3fd-caee-4208-87c1-d2020a6c1af8 strict-transport-security: max-age=31536000; includeSubDomains; preload x-content-type-options: nosniff - x-envoy-upstream-service-time: '751' + x-envoy-upstream-service-time: '5165' status: code: 201 message: Created - url: https://centraluseuap.api.cognitive.microsoft.com//formrecognizer/v2.0-preview/custom/models + url: https://centraluseuap.api.cognitive.microsoft.com//formrecognizer/v2.0/custom/models - request: body: null headers: User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/dcd6a320-1c68-4eb1-a6e1-9a8c7bf9ad5e?includeKeys=true + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/65d2d3fd-caee-4208-87c1-d2020a6c1af8?includeKeys=true response: body: - string: '{"modelInfo": {"modelId": "dcd6a320-1c68-4eb1-a6e1-9a8c7bf9ad5e", "status": - "creating", "createdDateTime": "2020-06-11T15:44:58Z", "lastUpdatedDateTime": - "2020-06-11T15:44:58Z"}}' + string: '{"modelInfo": {"modelId": "65d2d3fd-caee-4208-87c1-d2020a6c1af8", "status": + "creating", "createdDateTime": "2020-07-10T18:58:28Z", "lastUpdatedDateTime": + "2020-07-10T18:58:28Z"}}' headers: - apim-request-id: 13bfd2fa-9faa-4663-bd5c-095dcc4e07e7 + apim-request-id: 75390e12-a1d4-4426-98a9-081caa3b0bfc content-type: application/json; charset=utf-8 - date: Thu, 11 Jun 2020 15:45:02 GMT + date: Fri, 10 Jul 2020 18:58:37 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '16' + x-envoy-upstream-service-time: '48' status: code: 200 message: OK - url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/dcd6a320-1c68-4eb1-a6e1-9a8c7bf9ad5e?includeKeys=true + url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/65d2d3fd-caee-4208-87c1-d2020a6c1af8?includeKeys=true - request: body: null headers: User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/dcd6a320-1c68-4eb1-a6e1-9a8c7bf9ad5e?includeKeys=true + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/65d2d3fd-caee-4208-87c1-d2020a6c1af8?includeKeys=true response: body: - string: '{"modelInfo": {"modelId": "dcd6a320-1c68-4eb1-a6e1-9a8c7bf9ad5e", "status": - "creating", "createdDateTime": "2020-06-11T15:44:58Z", "lastUpdatedDateTime": - "2020-06-11T15:44:58Z"}}' - headers: - apim-request-id: f48d6f51-f098-4fc8-bffa-868fd1729215 - content-type: application/json; charset=utf-8 - date: Thu, 11 Jun 2020 15:45:07 GMT - strict-transport-security: max-age=31536000; includeSubDomains; preload - transfer-encoding: chunked - x-content-type-options: nosniff - x-envoy-upstream-service-time: '19' - status: - code: 200 - message: OK - url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/dcd6a320-1c68-4eb1-a6e1-9a8c7bf9ad5e?includeKeys=true -- request: - body: null - headers: - User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) - method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/dcd6a320-1c68-4eb1-a6e1-9a8c7bf9ad5e?includeKeys=true - response: - body: - string: '{"modelInfo": {"modelId": "dcd6a320-1c68-4eb1-a6e1-9a8c7bf9ad5e", "status": - "ready", "createdDateTime": "2020-06-11T15:44:58Z", "lastUpdatedDateTime": - "2020-06-11T15:45:09Z"}, "keys": {"clusters": {"0": ["Additional Notes:", + string: '{"modelInfo": {"modelId": "65d2d3fd-caee-4208-87c1-d2020a6c1af8", "status": + "ready", "createdDateTime": "2020-07-10T18:58:28Z", "lastUpdatedDateTime": + "2020-07-10T18:58:42Z"}, "keys": {"clusters": {"0": ["Additional Notes:", "Address:", "Company Name:", "Company Phone:", "Dated As:", "Details", "Email:", "Hero Limited", "Name:", "Phone:", "Purchase Order", "Purchase Order #:", "Quantity", "SUBTOTAL", "Seattle, WA 93849 Phone:", "Shipped From", "Shipped @@ -101,15 +73,15 @@ interactions: 1, "errors": [], "status": "succeeded"}, {"documentName": "Form_5.jpg", "pages": 1, "errors": [], "status": "succeeded"}], "errors": []}}' headers: - apim-request-id: 1048e0d0-ef26-40a5-982d-d944c41343ed + apim-request-id: 910fea9a-2b47-4e59-80d7-162689e30527 content-type: application/json; charset=utf-8 - date: Thu, 11 Jun 2020 15:45:12 GMT + date: Fri, 10 Jul 2020 18:58:44 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '51' + x-envoy-upstream-service-time: '997' status: code: 200 message: OK - url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/dcd6a320-1c68-4eb1-a6e1-9a8c7bf9ad5e?includeKeys=true + url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/65d2d3fd-caee-4208-87c1-d2020a6c1af8?includeKeys=true version: 1 diff --git a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_training_async.test_training_auth_bad_key.yaml b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_training_async.test_training_auth_bad_key.yaml index e12eae5d996b..69b192e04777 100644 --- a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_training_async.test_training_auth_bad_key.yaml +++ b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_training_async.test_training_auth_bad_key.yaml @@ -8,20 +8,24 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) method: POST - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models response: body: string: '{"error": {"code": "401", "message": "Access denied due to invalid subscription key or wrong API endpoint. Make sure to provide a valid key for an active subscription and use a correct regional API endpoint for your resource."}}' headers: - content-length: '224' - date: Thu, 11 Jun 2020 15:45:00 GMT + apim-request-id: 0669b984-9525-4ff0-b85b-7a390844193c + content-length: '225' + content-type: application/json + date: Fri, 10 Jul 2020 18:58:44 GMT + strict-transport-security: max-age=31536000; includeSubDomains; preload + www-authenticate: AzureApiManagementKey realm="https://centraluseuap.api.cognitive.microsoft.com/formrecognizer",name="Ocp-Apim-Subscription-Key",type="header" + x-content-type-options: nosniff status: code: 401 - message: PermissionDenied - url: https://centraluseuap.api.cognitive.microsoft.com//formrecognizer/v2.0-preview/custom/models + message: Access Denied + url: https://centraluseuap.api.cognitive.microsoft.com//formrecognizer/v2.0/custom/models version: 1 diff --git a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_training_async.test_training_encoded_url.yaml b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_training_async.test_training_encoded_url.yaml index 8e9e4496258d..2736d3b98c52 100644 --- a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_training_async.test_training_encoded_url.yaml +++ b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_training_async.test_training_encoded_url.yaml @@ -8,426 +8,409 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) method: POST - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models response: body: string: '' headers: - apim-request-id: 8f9f92f4-ab5e-4c58-a420-dda9e2c05512 + apim-request-id: 445ab792-7815-4b19-8add-70a7a0757af6 content-length: '0' - date: Mon, 15 Jun 2020 19:04:51 GMT - location: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/39f91c56-f66f-407e-812c-3b9a001feacd + date: Fri, 10 Jul 2020 18:59:06 GMT + location: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/fc13e581-e163-4d2c-96bd-d935537fbf6f strict-transport-security: max-age=31536000; includeSubDomains; preload x-content-type-options: nosniff - x-envoy-upstream-service-time: '228' + x-envoy-upstream-service-time: '71' status: code: 201 message: Created - url: https://centraluseuap.api.cognitive.microsoft.com//formrecognizer/v2.0-preview/custom/models + url: https://centraluseuap.api.cognitive.microsoft.com//formrecognizer/v2.0/custom/models - request: body: null headers: User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/39f91c56-f66f-407e-812c-3b9a001feacd?includeKeys=true + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/fc13e581-e163-4d2c-96bd-d935537fbf6f?includeKeys=true response: body: - string: '{"modelInfo": {"modelId": "39f91c56-f66f-407e-812c-3b9a001feacd", "status": - "creating", "createdDateTime": "2020-06-15T19:04:52Z", "lastUpdatedDateTime": - "2020-06-15T19:04:52Z"}}' + string: '{"modelInfo": {"modelId": "fc13e581-e163-4d2c-96bd-d935537fbf6f", "status": + "creating", "createdDateTime": "2020-07-10T18:59:06Z", "lastUpdatedDateTime": + "2020-07-10T18:59:06Z"}}' headers: - apim-request-id: cc2ac788-855b-4635-a6ec-dc46e77e413a + apim-request-id: eeea1259-da4e-4f30-8ca8-54399122d93b content-type: application/json; charset=utf-8 - date: Mon, 15 Jun 2020 19:04:57 GMT + date: Fri, 10 Jul 2020 18:59:10 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '148' + x-envoy-upstream-service-time: '169' status: code: 200 message: OK - url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/39f91c56-f66f-407e-812c-3b9a001feacd?includeKeys=true + url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/fc13e581-e163-4d2c-96bd-d935537fbf6f?includeKeys=true - request: body: null headers: User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/39f91c56-f66f-407e-812c-3b9a001feacd?includeKeys=true + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/fc13e581-e163-4d2c-96bd-d935537fbf6f?includeKeys=true response: body: - string: '{"modelInfo": {"modelId": "39f91c56-f66f-407e-812c-3b9a001feacd", "status": - "creating", "createdDateTime": "2020-06-15T19:04:52Z", "lastUpdatedDateTime": - "2020-06-15T19:04:52Z"}}' + string: '{"modelInfo": {"modelId": "fc13e581-e163-4d2c-96bd-d935537fbf6f", "status": + "creating", "createdDateTime": "2020-07-10T18:59:06Z", "lastUpdatedDateTime": + "2020-07-10T18:59:06Z"}}' headers: - apim-request-id: 773a3922-676d-4781-af86-622449bdbc6e + apim-request-id: 444584b9-6000-4bfb-95ad-c2649b4717ba content-type: application/json; charset=utf-8 - date: Mon, 15 Jun 2020 19:05:02 GMT + date: Fri, 10 Jul 2020 18:59:15 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '160' + x-envoy-upstream-service-time: '47' status: code: 200 message: OK - url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/39f91c56-f66f-407e-812c-3b9a001feacd?includeKeys=true + url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/fc13e581-e163-4d2c-96bd-d935537fbf6f?includeKeys=true - request: body: null headers: User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/39f91c56-f66f-407e-812c-3b9a001feacd?includeKeys=true + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/fc13e581-e163-4d2c-96bd-d935537fbf6f?includeKeys=true response: body: - string: '{"modelInfo": {"modelId": "39f91c56-f66f-407e-812c-3b9a001feacd", "status": - "creating", "createdDateTime": "2020-06-15T19:04:52Z", "lastUpdatedDateTime": - "2020-06-15T19:04:52Z"}}' + string: '{"modelInfo": {"modelId": "fc13e581-e163-4d2c-96bd-d935537fbf6f", "status": + "creating", "createdDateTime": "2020-07-10T18:59:06Z", "lastUpdatedDateTime": + "2020-07-10T18:59:06Z"}}' headers: - apim-request-id: a68288e9-29cf-4bc7-a9ba-3d4bddbc99b8 + apim-request-id: dd4ae566-4b1c-4445-bc60-937fb96eb2e4 content-type: application/json; charset=utf-8 - date: Mon, 15 Jun 2020 19:05:07 GMT + date: Fri, 10 Jul 2020 18:59:21 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '150' + x-envoy-upstream-service-time: '65' status: code: 200 message: OK - url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/39f91c56-f66f-407e-812c-3b9a001feacd?includeKeys=true + url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/fc13e581-e163-4d2c-96bd-d935537fbf6f?includeKeys=true - request: body: null headers: User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/39f91c56-f66f-407e-812c-3b9a001feacd?includeKeys=true + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/fc13e581-e163-4d2c-96bd-d935537fbf6f?includeKeys=true response: body: - string: '{"modelInfo": {"modelId": "39f91c56-f66f-407e-812c-3b9a001feacd", "status": - "creating", "createdDateTime": "2020-06-15T19:04:52Z", "lastUpdatedDateTime": - "2020-06-15T19:04:52Z"}}' + string: '{"modelInfo": {"modelId": "fc13e581-e163-4d2c-96bd-d935537fbf6f", "status": + "creating", "createdDateTime": "2020-07-10T18:59:06Z", "lastUpdatedDateTime": + "2020-07-10T18:59:06Z"}}' headers: - apim-request-id: 7ffff9b7-1c16-4832-9ddb-604fa1ebe317 + apim-request-id: 34055f8a-e2e4-4563-9097-577427a0aea1 content-type: application/json; charset=utf-8 - date: Mon, 15 Jun 2020 19:05:13 GMT + date: Fri, 10 Jul 2020 18:59:26 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '143' + x-envoy-upstream-service-time: '171' status: code: 200 message: OK - url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/39f91c56-f66f-407e-812c-3b9a001feacd?includeKeys=true + url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/fc13e581-e163-4d2c-96bd-d935537fbf6f?includeKeys=true - request: body: null headers: User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/39f91c56-f66f-407e-812c-3b9a001feacd?includeKeys=true + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/fc13e581-e163-4d2c-96bd-d935537fbf6f?includeKeys=true response: body: - string: '{"modelInfo": {"modelId": "39f91c56-f66f-407e-812c-3b9a001feacd", "status": - "creating", "createdDateTime": "2020-06-15T19:04:52Z", "lastUpdatedDateTime": - "2020-06-15T19:04:52Z"}}' + string: '{"modelInfo": {"modelId": "fc13e581-e163-4d2c-96bd-d935537fbf6f", "status": + "creating", "createdDateTime": "2020-07-10T18:59:06Z", "lastUpdatedDateTime": + "2020-07-10T18:59:06Z"}}' headers: - apim-request-id: 083fbfac-88c4-4628-8c27-a6ee9f7423d4 + apim-request-id: 09155328-dc40-42f0-aead-868c01049828 content-type: application/json; charset=utf-8 - date: Mon, 15 Jun 2020 19:05:18 GMT + date: Fri, 10 Jul 2020 18:59:34 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '157' + x-envoy-upstream-service-time: '2141' status: code: 200 message: OK - url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/39f91c56-f66f-407e-812c-3b9a001feacd?includeKeys=true + url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/fc13e581-e163-4d2c-96bd-d935537fbf6f?includeKeys=true - request: body: null headers: User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/39f91c56-f66f-407e-812c-3b9a001feacd?includeKeys=true + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/fc13e581-e163-4d2c-96bd-d935537fbf6f?includeKeys=true response: body: - string: '{"modelInfo": {"modelId": "39f91c56-f66f-407e-812c-3b9a001feacd", "status": - "creating", "createdDateTime": "2020-06-15T19:04:52Z", "lastUpdatedDateTime": - "2020-06-15T19:04:52Z"}}' + string: '{"modelInfo": {"modelId": "fc13e581-e163-4d2c-96bd-d935537fbf6f", "status": + "creating", "createdDateTime": "2020-07-10T18:59:06Z", "lastUpdatedDateTime": + "2020-07-10T18:59:06Z"}}' headers: - apim-request-id: 1a10f67f-28a8-4749-8f4f-deea10dd0fe4 + apim-request-id: f22068b3-db54-45e8-bed6-3f7f22e2cba0 content-type: application/json; charset=utf-8 - date: Mon, 15 Jun 2020 19:05:23 GMT + date: Fri, 10 Jul 2020 18:59:38 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '58' + x-envoy-upstream-service-time: '16' status: code: 200 message: OK - url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/39f91c56-f66f-407e-812c-3b9a001feacd?includeKeys=true + url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/fc13e581-e163-4d2c-96bd-d935537fbf6f?includeKeys=true - request: body: null headers: User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/39f91c56-f66f-407e-812c-3b9a001feacd?includeKeys=true + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/fc13e581-e163-4d2c-96bd-d935537fbf6f?includeKeys=true response: body: - string: '{"modelInfo": {"modelId": "39f91c56-f66f-407e-812c-3b9a001feacd", "status": - "creating", "createdDateTime": "2020-06-15T19:04:52Z", "lastUpdatedDateTime": - "2020-06-15T19:04:52Z"}}' + string: '{"modelInfo": {"modelId": "fc13e581-e163-4d2c-96bd-d935537fbf6f", "status": + "creating", "createdDateTime": "2020-07-10T18:59:06Z", "lastUpdatedDateTime": + "2020-07-10T18:59:06Z"}}' headers: - apim-request-id: 6af74830-a874-4da4-a9fa-9df635ed5a57 + apim-request-id: b9bb7923-6ff9-4c3c-abbc-4a05e145c185 content-type: application/json; charset=utf-8 - date: Mon, 15 Jun 2020 19:05:28 GMT + date: Fri, 10 Jul 2020 18:59:44 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '189' + x-envoy-upstream-service-time: '47' status: code: 200 message: OK - url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/39f91c56-f66f-407e-812c-3b9a001feacd?includeKeys=true + url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/fc13e581-e163-4d2c-96bd-d935537fbf6f?includeKeys=true - request: body: null headers: User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/39f91c56-f66f-407e-812c-3b9a001feacd?includeKeys=true + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/fc13e581-e163-4d2c-96bd-d935537fbf6f?includeKeys=true response: body: - string: '{"modelInfo": {"modelId": "39f91c56-f66f-407e-812c-3b9a001feacd", "status": - "creating", "createdDateTime": "2020-06-15T19:04:52Z", "lastUpdatedDateTime": - "2020-06-15T19:04:52Z"}}' + string: '{"modelInfo": {"modelId": "fc13e581-e163-4d2c-96bd-d935537fbf6f", "status": + "creating", "createdDateTime": "2020-07-10T18:59:06Z", "lastUpdatedDateTime": + "2020-07-10T18:59:06Z"}}' headers: - apim-request-id: ce288b5b-8fe3-41b8-a529-9bc86a8dc7e7 + apim-request-id: 1b496966-f263-426e-bb98-03bbad445d4b content-type: application/json; charset=utf-8 - date: Mon, 15 Jun 2020 19:05:34 GMT + date: Fri, 10 Jul 2020 18:59:49 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '174' + x-envoy-upstream-service-time: '16' status: code: 200 message: OK - url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/39f91c56-f66f-407e-812c-3b9a001feacd?includeKeys=true + url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/fc13e581-e163-4d2c-96bd-d935537fbf6f?includeKeys=true - request: body: null headers: User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/39f91c56-f66f-407e-812c-3b9a001feacd?includeKeys=true + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/fc13e581-e163-4d2c-96bd-d935537fbf6f?includeKeys=true response: body: - string: '{"modelInfo": {"modelId": "39f91c56-f66f-407e-812c-3b9a001feacd", "status": - "creating", "createdDateTime": "2020-06-15T19:04:52Z", "lastUpdatedDateTime": - "2020-06-15T19:04:52Z"}}' + string: '{"modelInfo": {"modelId": "fc13e581-e163-4d2c-96bd-d935537fbf6f", "status": + "creating", "createdDateTime": "2020-07-10T18:59:06Z", "lastUpdatedDateTime": + "2020-07-10T18:59:06Z"}}' headers: - apim-request-id: cbafe13a-dc66-4764-ac0d-cabb961a068d + apim-request-id: 19b2996a-2ae0-40f1-9a64-156306f29417 content-type: application/json; charset=utf-8 - date: Mon, 15 Jun 2020 19:05:39 GMT + date: Fri, 10 Jul 2020 18:59:55 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '45' + x-envoy-upstream-service-time: '901' status: code: 200 message: OK - url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/39f91c56-f66f-407e-812c-3b9a001feacd?includeKeys=true + url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/fc13e581-e163-4d2c-96bd-d935537fbf6f?includeKeys=true - request: body: null headers: User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/39f91c56-f66f-407e-812c-3b9a001feacd?includeKeys=true + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/fc13e581-e163-4d2c-96bd-d935537fbf6f?includeKeys=true response: body: - string: '{"modelInfo": {"modelId": "39f91c56-f66f-407e-812c-3b9a001feacd", "status": - "creating", "createdDateTime": "2020-06-15T19:04:52Z", "lastUpdatedDateTime": - "2020-06-15T19:04:52Z"}}' + string: '{"modelInfo": {"modelId": "fc13e581-e163-4d2c-96bd-d935537fbf6f", "status": + "creating", "createdDateTime": "2020-07-10T18:59:06Z", "lastUpdatedDateTime": + "2020-07-10T18:59:06Z"}}' headers: - apim-request-id: ab0a49dc-bbf7-405b-ba72-ef4a139e847e + apim-request-id: d0d2ffb2-4a4c-43f9-b353-7a703d83218a content-type: application/json; charset=utf-8 - date: Mon, 15 Jun 2020 19:05:44 GMT + date: Fri, 10 Jul 2020 19:00:00 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '202' + x-envoy-upstream-service-time: '47' status: code: 200 message: OK - url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/39f91c56-f66f-407e-812c-3b9a001feacd?includeKeys=true + url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/fc13e581-e163-4d2c-96bd-d935537fbf6f?includeKeys=true - request: body: null headers: User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/39f91c56-f66f-407e-812c-3b9a001feacd?includeKeys=true + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/fc13e581-e163-4d2c-96bd-d935537fbf6f?includeKeys=true response: body: - string: '{"modelInfo": {"modelId": "39f91c56-f66f-407e-812c-3b9a001feacd", "status": - "creating", "createdDateTime": "2020-06-15T19:04:52Z", "lastUpdatedDateTime": - "2020-06-15T19:04:52Z"}}' + string: '{"modelInfo": {"modelId": "fc13e581-e163-4d2c-96bd-d935537fbf6f", "status": + "creating", "createdDateTime": "2020-07-10T18:59:06Z", "lastUpdatedDateTime": + "2020-07-10T18:59:06Z"}}' headers: - apim-request-id: e36d9517-1d97-4fa7-be87-53eb0a4bdbf6 + apim-request-id: 27e8e084-706d-4661-8457-a70602ea6ea7 content-type: application/json; charset=utf-8 - date: Mon, 15 Jun 2020 19:05:50 GMT + date: Fri, 10 Jul 2020 19:00:05 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '1001' + x-envoy-upstream-service-time: '40' status: code: 200 message: OK - url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/39f91c56-f66f-407e-812c-3b9a001feacd?includeKeys=true + url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/fc13e581-e163-4d2c-96bd-d935537fbf6f?includeKeys=true - request: body: null headers: User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/39f91c56-f66f-407e-812c-3b9a001feacd?includeKeys=true + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/fc13e581-e163-4d2c-96bd-d935537fbf6f?includeKeys=true response: body: - string: '{"modelInfo": {"modelId": "39f91c56-f66f-407e-812c-3b9a001feacd", "status": - "creating", "createdDateTime": "2020-06-15T19:04:52Z", "lastUpdatedDateTime": - "2020-06-15T19:04:52Z"}}' + string: '{"modelInfo": {"modelId": "fc13e581-e163-4d2c-96bd-d935537fbf6f", "status": + "creating", "createdDateTime": "2020-07-10T18:59:06Z", "lastUpdatedDateTime": + "2020-07-10T18:59:06Z"}}' headers: - apim-request-id: 936bb6e2-6182-4899-b1f0-f485de49d07f + apim-request-id: c193a8f1-4803-4a49-bcd6-ac369abe0962 content-type: application/json; charset=utf-8 - date: Mon, 15 Jun 2020 19:05:55 GMT + date: Fri, 10 Jul 2020 19:00:11 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '55' + x-envoy-upstream-service-time: '21' status: code: 200 message: OK - url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/39f91c56-f66f-407e-812c-3b9a001feacd?includeKeys=true + url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/fc13e581-e163-4d2c-96bd-d935537fbf6f?includeKeys=true - request: body: null headers: User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/39f91c56-f66f-407e-812c-3b9a001feacd?includeKeys=true + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/fc13e581-e163-4d2c-96bd-d935537fbf6f?includeKeys=true response: body: - string: '{"modelInfo": {"modelId": "39f91c56-f66f-407e-812c-3b9a001feacd", "status": - "creating", "createdDateTime": "2020-06-15T19:04:52Z", "lastUpdatedDateTime": - "2020-06-15T19:04:52Z"}}' + string: '{"modelInfo": {"modelId": "fc13e581-e163-4d2c-96bd-d935537fbf6f", "status": + "creating", "createdDateTime": "2020-07-10T18:59:06Z", "lastUpdatedDateTime": + "2020-07-10T18:59:06Z"}}' headers: - apim-request-id: 42f73d9c-751c-4b12-9199-a6268775a5eb + apim-request-id: 6fd40fa5-2061-4d04-92cc-e15d086b5def content-type: application/json; charset=utf-8 - date: Mon, 15 Jun 2020 19:06:01 GMT + date: Fri, 10 Jul 2020 19:00:15 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '53' + x-envoy-upstream-service-time: '238' status: code: 200 message: OK - url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/39f91c56-f66f-407e-812c-3b9a001feacd?includeKeys=true + url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/fc13e581-e163-4d2c-96bd-d935537fbf6f?includeKeys=true - request: body: null headers: User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/39f91c56-f66f-407e-812c-3b9a001feacd?includeKeys=true + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/fc13e581-e163-4d2c-96bd-d935537fbf6f?includeKeys=true response: body: - string: '{"modelInfo": {"modelId": "39f91c56-f66f-407e-812c-3b9a001feacd", "status": - "creating", "createdDateTime": "2020-06-15T19:04:52Z", "lastUpdatedDateTime": - "2020-06-15T19:04:52Z"}}' + string: '{"modelInfo": {"modelId": "fc13e581-e163-4d2c-96bd-d935537fbf6f", "status": + "creating", "createdDateTime": "2020-07-10T18:59:06Z", "lastUpdatedDateTime": + "2020-07-10T18:59:06Z"}}' headers: - apim-request-id: 86718cdb-68a6-4134-9684-3084eeecc406 + apim-request-id: 84473b1f-a368-4869-a4ac-bae526e163f7 content-type: application/json; charset=utf-8 - date: Mon, 15 Jun 2020 19:06:07 GMT + date: Fri, 10 Jul 2020 19:00:21 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '1009' + x-envoy-upstream-service-time: '18' status: code: 200 message: OK - url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/39f91c56-f66f-407e-812c-3b9a001feacd?includeKeys=true + url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/fc13e581-e163-4d2c-96bd-d935537fbf6f?includeKeys=true - request: body: null headers: User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/39f91c56-f66f-407e-812c-3b9a001feacd?includeKeys=true + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/fc13e581-e163-4d2c-96bd-d935537fbf6f?includeKeys=true response: body: - string: '{"modelInfo": {"modelId": "39f91c56-f66f-407e-812c-3b9a001feacd", "status": - "creating", "createdDateTime": "2020-06-15T19:04:52Z", "lastUpdatedDateTime": - "2020-06-15T19:04:52Z"}}' + string: '{"modelInfo": {"modelId": "fc13e581-e163-4d2c-96bd-d935537fbf6f", "status": + "creating", "createdDateTime": "2020-07-10T18:59:06Z", "lastUpdatedDateTime": + "2020-07-10T18:59:06Z"}}' headers: - apim-request-id: 0ed716e4-2620-4d7f-99f5-014715244fc4 + apim-request-id: 1ff97455-383b-4493-b82c-3907419a2e05 content-type: application/json; charset=utf-8 - date: Mon, 15 Jun 2020 19:06:12 GMT + date: Fri, 10 Jul 2020 19:00:26 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '197' + x-envoy-upstream-service-time: '53' status: code: 200 message: OK - url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/39f91c56-f66f-407e-812c-3b9a001feacd?includeKeys=true + url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/fc13e581-e163-4d2c-96bd-d935537fbf6f?includeKeys=true - request: body: null headers: User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/39f91c56-f66f-407e-812c-3b9a001feacd?includeKeys=true + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/fc13e581-e163-4d2c-96bd-d935537fbf6f?includeKeys=true response: body: - string: '{"modelInfo": {"modelId": "39f91c56-f66f-407e-812c-3b9a001feacd", "status": - "invalid", "createdDateTime": "2020-06-15T19:04:52Z", "lastUpdatedDateTime": - "2020-06-15T19:06:17Z"}, "keys": {"clusters": {}}, "trainResult": {"trainingDocuments": + string: '{"modelInfo": {"modelId": "fc13e581-e163-4d2c-96bd-d935537fbf6f", "status": + "invalid", "createdDateTime": "2020-07-10T18:59:06Z", "lastUpdatedDateTime": + "2020-07-10T19:00:31Z"}, "keys": {"clusters": {}}, "trainResult": {"trainingDocuments": [], "errors": [{"code": "2012", "message": "Unable to list blobs on the Azure blob storage account."}]}}' headers: - apim-request-id: 8d03ed67-430b-4b51-af2f-f008284854ce + apim-request-id: 1a335d9c-6123-4a50-b46b-3e36f7dd6fdc content-type: application/json; charset=utf-8 - date: Mon, 15 Jun 2020 19:06:17 GMT + date: Fri, 10 Jul 2020 19:00:31 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '50' + x-envoy-upstream-service-time: '20' x-ms-cs-error-code: '2012' status: code: 200 message: OK - url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/39f91c56-f66f-407e-812c-3b9a001feacd?includeKeys=true + url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/fc13e581-e163-4d2c-96bd-d935537fbf6f?includeKeys=true version: 1 diff --git a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_training_async.test_training_multipage.yaml b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_training_async.test_training_multipage.yaml index 871ec1aac269..706c6f899e06 100644 --- a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_training_async.test_training_multipage.yaml +++ b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_training_async.test_training_multipage.yaml @@ -8,88 +8,108 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) method: POST - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models response: body: string: '' headers: - apim-request-id: 13bd08e8-ec8d-4f11-acda-c455066f0f93 + apim-request-id: 34f4d98c-1ab3-43a6-bc1a-c74d30126972 content-length: '0' - date: Thu, 11 Jun 2020 15:45:19 GMT - location: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/591ba974-83a2-47a9-94a0-caa1f3a72c57 + date: Fri, 10 Jul 2020 18:59:37 GMT + location: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/debac28e-0abf-4357-ba59-bc3734a3f283 strict-transport-security: max-age=31536000; includeSubDomains; preload x-content-type-options: nosniff - x-envoy-upstream-service-time: '68' + x-envoy-upstream-service-time: '74' status: code: 201 message: Created - url: https://centraluseuap.api.cognitive.microsoft.com//formrecognizer/v2.0-preview/custom/models + url: https://centraluseuap.api.cognitive.microsoft.com//formrecognizer/v2.0/custom/models - request: body: null headers: User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/591ba974-83a2-47a9-94a0-caa1f3a72c57?includeKeys=true + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/debac28e-0abf-4357-ba59-bc3734a3f283?includeKeys=true response: body: - string: '{"modelInfo": {"modelId": "591ba974-83a2-47a9-94a0-caa1f3a72c57", "status": - "creating", "createdDateTime": "2020-06-11T15:45:20Z", "lastUpdatedDateTime": - "2020-06-11T15:45:20Z"}}' + string: '{"modelInfo": {"modelId": "debac28e-0abf-4357-ba59-bc3734a3f283", "status": + "creating", "createdDateTime": "2020-07-10T18:59:37Z", "lastUpdatedDateTime": + "2020-07-10T18:59:37Z"}}' headers: - apim-request-id: 63bf3291-79ee-4f0d-a7f9-d6e4c7c9c71f + apim-request-id: f0f6e8bf-3a31-4ae7-b0f7-2d4a5f6dd272 content-type: application/json; charset=utf-8 - date: Thu, 11 Jun 2020 15:45:24 GMT + date: Fri, 10 Jul 2020 18:59:42 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '17' + x-envoy-upstream-service-time: '18' status: code: 200 message: OK - url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/591ba974-83a2-47a9-94a0-caa1f3a72c57?includeKeys=true + url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/debac28e-0abf-4357-ba59-bc3734a3f283?includeKeys=true - request: body: null headers: User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/591ba974-83a2-47a9-94a0-caa1f3a72c57?includeKeys=true + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/debac28e-0abf-4357-ba59-bc3734a3f283?includeKeys=true response: body: - string: '{"modelInfo": {"modelId": "591ba974-83a2-47a9-94a0-caa1f3a72c57", "status": - "creating", "createdDateTime": "2020-06-11T15:45:20Z", "lastUpdatedDateTime": - "2020-06-11T15:45:20Z"}}' + string: '{"modelInfo": {"modelId": "debac28e-0abf-4357-ba59-bc3734a3f283", "status": + "creating", "createdDateTime": "2020-07-10T18:59:37Z", "lastUpdatedDateTime": + "2020-07-10T18:59:37Z"}}' headers: - apim-request-id: a75bc197-0712-4813-b8da-92c72a2e64e7 + apim-request-id: b676beb5-12d0-4410-80cb-b9d495391ddb content-type: application/json; charset=utf-8 - date: Thu, 11 Jun 2020 15:45:30 GMT + date: Fri, 10 Jul 2020 18:59:48 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '720' + x-envoy-upstream-service-time: '48' status: code: 200 message: OK - url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/591ba974-83a2-47a9-94a0-caa1f3a72c57?includeKeys=true + url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/debac28e-0abf-4357-ba59-bc3734a3f283?includeKeys=true - request: body: null headers: User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/591ba974-83a2-47a9-94a0-caa1f3a72c57?includeKeys=true + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/debac28e-0abf-4357-ba59-bc3734a3f283?includeKeys=true response: body: - string: '{"modelInfo": {"modelId": "591ba974-83a2-47a9-94a0-caa1f3a72c57", "status": - "ready", "createdDateTime": "2020-06-11T15:45:20Z", "lastUpdatedDateTime": - "2020-06-11T15:45:34Z"}, "keys": {"clusters": {"0": ["Address:", "Invoice + string: '{"modelInfo": {"modelId": "debac28e-0abf-4357-ba59-bc3734a3f283", "status": + "creating", "createdDateTime": "2020-07-10T18:59:37Z", "lastUpdatedDateTime": + "2020-07-10T18:59:37Z"}}' + headers: + apim-request-id: e09bd4dc-bdfe-418f-bc17-e728ab6b37d3 + content-type: application/json; charset=utf-8 + date: Fri, 10 Jul 2020 18:59:53 GMT + strict-transport-security: max-age=31536000; includeSubDomains; preload + transfer-encoding: chunked + x-content-type-options: nosniff + x-envoy-upstream-service-time: '788' + status: + code: 200 + message: OK + url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/debac28e-0abf-4357-ba59-bc3734a3f283?includeKeys=true +- request: + body: null + headers: + User-Agent: + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + method: GET + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/debac28e-0abf-4357-ba59-bc3734a3f283?includeKeys=true + response: + body: + string: '{"modelInfo": {"modelId": "debac28e-0abf-4357-ba59-bc3734a3f283", "status": + "ready", "createdDateTime": "2020-07-10T18:59:37Z", "lastUpdatedDateTime": + "2020-07-10T18:59:55Z"}, "keys": {"clusters": {"0": ["Address:", "Invoice For:", "Item", "Price", "Quantity", "Redmond, WA", "Signature:", "Subtotal:", "Tax:", "Tip:", "Total:"]}}, "trainResult": {"trainingDocuments": [{"documentName": "multipage_invoice1.pdf", "pages": 3, "errors": [], "status": "succeeded"}, @@ -99,15 +119,15 @@ interactions: 3, "errors": [], "status": "succeeded"}, {"documentName": "multipage_invoice5.pdf", "pages": 3, "errors": [], "status": "succeeded"}], "errors": []}}' headers: - apim-request-id: 01fd4b97-abf9-4602-aafa-e30f8d11323c + apim-request-id: 6a7a4af6-1531-4605-a5eb-b1c588227c84 content-type: application/json; charset=utf-8 - date: Thu, 11 Jun 2020 15:45:35 GMT + date: Fri, 10 Jul 2020 18:59:58 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '53' + x-envoy-upstream-service-time: '20' status: code: 200 message: OK - url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/591ba974-83a2-47a9-94a0-caa1f3a72c57?includeKeys=true + url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/debac28e-0abf-4357-ba59-bc3734a3f283?includeKeys=true version: 1 diff --git a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_training_async.test_training_multipage_transform.yaml b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_training_async.test_training_multipage_transform.yaml index ff436e4611c7..6d2f1ca6691c 100644 --- a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_training_async.test_training_multipage_transform.yaml +++ b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_training_async.test_training_multipage_transform.yaml @@ -8,117 +8,64 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) method: POST - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models response: body: string: '' headers: - apim-request-id: b127d7f4-6bbf-4f00-975e-92634d558997 + apim-request-id: 0b2b0194-6880-48f1-ab2c-b27ca979c60a content-length: '0' - date: Thu, 11 Jun 2020 15:45:33 GMT - location: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/deae7d3e-5209-44fd-bdb7-ffc41b52f9e7 + date: Fri, 10 Jul 2020 19:00:32 GMT + location: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/697a0e43-a4f6-4c7b-80ac-878da38059d7 strict-transport-security: max-age=31536000; includeSubDomains; preload x-content-type-options: nosniff - x-envoy-upstream-service-time: '74' + x-envoy-upstream-service-time: '117' status: code: 201 message: Created - url: https://centraluseuap.api.cognitive.microsoft.com//formrecognizer/v2.0-preview/custom/models + url: https://centraluseuap.api.cognitive.microsoft.com//formrecognizer/v2.0/custom/models - request: body: null headers: User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/deae7d3e-5209-44fd-bdb7-ffc41b52f9e7?includeKeys=true + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/697a0e43-a4f6-4c7b-80ac-878da38059d7?includeKeys=true response: body: - string: '{"modelInfo": {"modelId": "deae7d3e-5209-44fd-bdb7-ffc41b52f9e7", "status": - "creating", "createdDateTime": "2020-06-11T15:45:33Z", "lastUpdatedDateTime": - "2020-06-11T15:45:33Z"}}' + string: '{"modelInfo": {"modelId": "697a0e43-a4f6-4c7b-80ac-878da38059d7", "status": + "creating", "createdDateTime": "2020-07-10T19:00:32Z", "lastUpdatedDateTime": + "2020-07-10T19:00:32Z"}}' headers: - apim-request-id: 69c26369-ca86-43ec-b822-e14f98931841 + apim-request-id: be6bfb67-04be-488f-be75-72f7ed1aa910 content-type: application/json; charset=utf-8 - date: Thu, 11 Jun 2020 15:45:37 GMT + date: Fri, 10 Jul 2020 19:00:37 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '16' + x-envoy-upstream-service-time: '19' status: code: 200 message: OK - url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/deae7d3e-5209-44fd-bdb7-ffc41b52f9e7?includeKeys=true + url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/697a0e43-a4f6-4c7b-80ac-878da38059d7?includeKeys=true - request: body: null headers: User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/deae7d3e-5209-44fd-bdb7-ffc41b52f9e7?includeKeys=true + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/697a0e43-a4f6-4c7b-80ac-878da38059d7?includeKeys=true response: body: - string: '{"modelInfo": {"modelId": "deae7d3e-5209-44fd-bdb7-ffc41b52f9e7", "status": - "creating", "createdDateTime": "2020-06-11T15:45:33Z", "lastUpdatedDateTime": - "2020-06-11T15:45:33Z"}}' + string: '{"modelInfo": {"modelId": "697a0e43-a4f6-4c7b-80ac-878da38059d7", "status": + "creating", "createdDateTime": "2020-07-10T19:00:32Z", "lastUpdatedDateTime": + "2020-07-10T19:00:32Z"}}' headers: - apim-request-id: 17ddc68e-e3ba-4221-bb56-ce0a3fd5bdad + apim-request-id: ebc22f1b-3516-43e1-841f-4ec653a8976b content-type: application/json; charset=utf-8 - date: Thu, 11 Jun 2020 15:45:43 GMT - strict-transport-security: max-age=31536000; includeSubDomains; preload - transfer-encoding: chunked - x-content-type-options: nosniff - x-envoy-upstream-service-time: '17' - status: - code: 200 - message: OK - url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/deae7d3e-5209-44fd-bdb7-ffc41b52f9e7?includeKeys=true -- request: - body: null - headers: - User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) - method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/deae7d3e-5209-44fd-bdb7-ffc41b52f9e7?includeKeys=true - response: - body: - string: '{"modelInfo": {"modelId": "deae7d3e-5209-44fd-bdb7-ffc41b52f9e7", "status": - "creating", "createdDateTime": "2020-06-11T15:45:33Z", "lastUpdatedDateTime": - "2020-06-11T15:45:33Z"}}' - headers: - apim-request-id: 1c5d4866-183e-41d3-9c21-8cc1e0b3ca85 - content-type: application/json; charset=utf-8 - date: Thu, 11 Jun 2020 15:45:50 GMT - strict-transport-security: max-age=31536000; includeSubDomains; preload - transfer-encoding: chunked - x-content-type-options: nosniff - x-envoy-upstream-service-time: '2584' - status: - code: 200 - message: OK - url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/deae7d3e-5209-44fd-bdb7-ffc41b52f9e7?includeKeys=true -- request: - body: null - headers: - User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) - method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/deae7d3e-5209-44fd-bdb7-ffc41b52f9e7?includeKeys=true - response: - body: - string: '{"modelInfo": {"modelId": "deae7d3e-5209-44fd-bdb7-ffc41b52f9e7", "status": - "creating", "createdDateTime": "2020-06-11T15:45:33Z", "lastUpdatedDateTime": - "2020-06-11T15:45:33Z"}}' - headers: - apim-request-id: 246b7d3f-627d-4f45-b62a-ffcc0962240c - content-type: application/json; charset=utf-8 - date: Thu, 11 Jun 2020 15:45:56 GMT + date: Fri, 10 Jul 2020 19:00:42 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff @@ -126,70 +73,19 @@ interactions: status: code: 200 message: OK - url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/deae7d3e-5209-44fd-bdb7-ffc41b52f9e7?includeKeys=true -- request: - body: null - headers: - User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) - method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/deae7d3e-5209-44fd-bdb7-ffc41b52f9e7?includeKeys=true - response: - body: - string: '{"modelInfo": {"modelId": "deae7d3e-5209-44fd-bdb7-ffc41b52f9e7", "status": - "creating", "createdDateTime": "2020-06-11T15:45:33Z", "lastUpdatedDateTime": - "2020-06-11T15:45:33Z"}}' - headers: - apim-request-id: c20f65a5-56ea-4de9-9eb6-d6fdf70d552c - content-type: application/json; charset=utf-8 - date: Thu, 11 Jun 2020 15:46:01 GMT - strict-transport-security: max-age=31536000; includeSubDomains; preload - transfer-encoding: chunked - x-content-type-options: nosniff - x-envoy-upstream-service-time: '21' - status: - code: 200 - message: OK - url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/deae7d3e-5209-44fd-bdb7-ffc41b52f9e7?includeKeys=true -- request: - body: null - headers: - User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) - method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/deae7d3e-5209-44fd-bdb7-ffc41b52f9e7?includeKeys=true - response: - body: - string: '{"modelInfo": {"modelId": "deae7d3e-5209-44fd-bdb7-ffc41b52f9e7", "status": - "creating", "createdDateTime": "2020-06-11T15:45:33Z", "lastUpdatedDateTime": - "2020-06-11T15:45:33Z"}}' - headers: - apim-request-id: 304ad4e0-0b34-4ad6-b984-373111236c53 - content-type: application/json; charset=utf-8 - date: Thu, 11 Jun 2020 15:46:05 GMT - strict-transport-security: max-age=31536000; includeSubDomains; preload - transfer-encoding: chunked - x-content-type-options: nosniff - x-envoy-upstream-service-time: '53' - status: - code: 200 - message: OK - url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/deae7d3e-5209-44fd-bdb7-ffc41b52f9e7?includeKeys=true + url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/697a0e43-a4f6-4c7b-80ac-878da38059d7?includeKeys=true - request: body: null headers: User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/deae7d3e-5209-44fd-bdb7-ffc41b52f9e7?includeKeys=true + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/697a0e43-a4f6-4c7b-80ac-878da38059d7?includeKeys=true response: body: - string: '{"modelInfo": {"modelId": "deae7d3e-5209-44fd-bdb7-ffc41b52f9e7", "status": - "ready", "createdDateTime": "2020-06-11T15:45:33Z", "lastUpdatedDateTime": - "2020-06-11T15:45:47Z"}, "keys": {"clusters": {"0": ["Address:", "Invoice + string: '{"modelInfo": {"modelId": "697a0e43-a4f6-4c7b-80ac-878da38059d7", "status": + "ready", "createdDateTime": "2020-07-10T19:00:32Z", "lastUpdatedDateTime": + "2020-07-10T19:00:46Z"}, "keys": {"clusters": {"0": ["Address:", "Invoice For:", "Item", "Price", "Quantity", "Redmond, WA", "Signature:", "Subtotal:", "Tax:", "Tip:", "Total:"]}}, "trainResult": {"trainingDocuments": [{"documentName": "multipage_invoice1.pdf", "pages": 3, "errors": [], "status": "succeeded"}, @@ -199,15 +95,15 @@ interactions: 3, "errors": [], "status": "succeeded"}, {"documentName": "multipage_invoice5.pdf", "pages": 3, "errors": [], "status": "succeeded"}], "errors": []}}' headers: - apim-request-id: e5b9bcd8-4407-4902-8a17-2d40145310f2 + apim-request-id: f88ab64f-f12a-471d-82ef-2079b4fd3711 content-type: application/json; charset=utf-8 - date: Thu, 11 Jun 2020 15:46:11 GMT + date: Fri, 10 Jul 2020 19:00:47 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '48' + x-envoy-upstream-service-time: '19' status: code: 200 message: OK - url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/deae7d3e-5209-44fd-bdb7-ffc41b52f9e7?includeKeys=true + url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/697a0e43-a4f6-4c7b-80ac-878da38059d7?includeKeys=true version: 1 diff --git a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_training_async.test_training_multipage_with_labels.yaml b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_training_async.test_training_multipage_with_labels.yaml index abd9c3d80da2..79a21fa55244 100644 --- a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_training_async.test_training_multipage_with_labels.yaml +++ b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_training_async.test_training_multipage_with_labels.yaml @@ -8,38 +8,36 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) method: POST - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models response: body: string: '' headers: - apim-request-id: bf23ed2b-190b-463e-a034-2af24900e38a + apim-request-id: 0065a544-c0c1-4b18-88c0-b4773cd1b412 content-length: '0' - date: Thu, 11 Jun 2020 15:45:13 GMT - location: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/f037141b-616d-4f06-a904-e7bfa35caebe + date: Fri, 10 Jul 2020 19:00:25 GMT + location: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/912674ba-d5f0-40d7-912b-471871d3b8f7 strict-transport-security: max-age=31536000; includeSubDomains; preload x-content-type-options: nosniff - x-envoy-upstream-service-time: '67' + x-envoy-upstream-service-time: '912' status: code: 201 message: Created - url: https://centraluseuap.api.cognitive.microsoft.com//formrecognizer/v2.0-preview/custom/models + url: https://centraluseuap.api.cognitive.microsoft.com//formrecognizer/v2.0/custom/models - request: body: null headers: User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/f037141b-616d-4f06-a904-e7bfa35caebe?includeKeys=true + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/912674ba-d5f0-40d7-912b-471871d3b8f7?includeKeys=true response: body: - string: '{"modelInfo": {"modelId": "f037141b-616d-4f06-a904-e7bfa35caebe", "status": - "ready", "createdDateTime": "2020-06-11T15:45:13Z", "lastUpdatedDateTime": - "2020-06-11T15:45:15Z"}, "trainResult": {"averageModelAccuracy": 0.889, "trainingDocuments": + string: '{"modelInfo": {"modelId": "912674ba-d5f0-40d7-912b-471871d3b8f7", "status": + "ready", "createdDateTime": "2020-07-10T19:00:24Z", "lastUpdatedDateTime": + "2020-07-10T19:00:28Z"}, "trainResult": {"averageModelAccuracy": 0.889, "trainingDocuments": [{"documentName": "multipage_invoice1.pdf", "pages": 3, "status": "succeeded"}, {"documentName": "multipage_invoice2.pdf", "pages": 3, "status": "succeeded"}, {"documentName": "multipage_invoice3.pdf", "pages": 3, "status": "succeeded"}, @@ -57,15 +55,15 @@ interactions: 1.0}, {"fieldName": "Tip", "accuracy": 1.0}, {"fieldName": "Total", "accuracy": 1.0}, {"fieldName": "Total2", "accuracy": 1.0}], "errors": []}}' headers: - apim-request-id: fc708af3-5030-4b3f-a8ad-1d8f795b0485 + apim-request-id: 1792f338-debf-4bb0-a8a8-235c92ff17c5 content-type: application/json; charset=utf-8 - date: Thu, 11 Jun 2020 15:45:18 GMT + date: Fri, 10 Jul 2020 19:00:30 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '18' + x-envoy-upstream-service-time: '17' status: code: 200 message: OK - url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/f037141b-616d-4f06-a904-e7bfa35caebe?includeKeys=true + url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/912674ba-d5f0-40d7-912b-471871d3b8f7?includeKeys=true version: 1 diff --git a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_training_async.test_training_transform.yaml b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_training_async.test_training_transform.yaml index 60ba6efaf749..93f457fac8bf 100644 --- a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_training_async.test_training_transform.yaml +++ b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_training_async.test_training_transform.yaml @@ -8,88 +8,84 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) method: POST - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models response: body: string: '' headers: - apim-request-id: a04b6e29-c8ef-43a7-b4e5-153c937d9584 + apim-request-id: 56dcafd4-98a2-4fd6-83d0-7142bb71351b content-length: '0' - date: Thu, 11 Jun 2020 15:44:57 GMT - location: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/a4aec2fe-17aa-47cd-95d4-8d221764aefb + date: Fri, 10 Jul 2020 19:00:04 GMT + location: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/791ac27c-ed29-4e04-b5e4-0bab0f01f8ea strict-transport-security: max-age=31536000; includeSubDomains; preload x-content-type-options: nosniff - x-envoy-upstream-service-time: '36' + x-envoy-upstream-service-time: '6025' status: code: 201 message: Created - url: https://centraluseuap.api.cognitive.microsoft.com//formrecognizer/v2.0-preview/custom/models + url: https://centraluseuap.api.cognitive.microsoft.com//formrecognizer/v2.0/custom/models - request: body: null headers: User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/a4aec2fe-17aa-47cd-95d4-8d221764aefb?includeKeys=true + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/791ac27c-ed29-4e04-b5e4-0bab0f01f8ea?includeKeys=true response: body: - string: '{"modelInfo": {"modelId": "a4aec2fe-17aa-47cd-95d4-8d221764aefb", "status": - "creating", "createdDateTime": "2020-06-11T15:44:57Z", "lastUpdatedDateTime": - "2020-06-11T15:44:57Z"}}' + string: '{"modelInfo": {"modelId": "791ac27c-ed29-4e04-b5e4-0bab0f01f8ea", "status": + "creating", "createdDateTime": "2020-07-10T19:00:05Z", "lastUpdatedDateTime": + "2020-07-10T19:00:05Z"}}' headers: - apim-request-id: abdfe98c-2f22-462b-963e-8868e9678ebe + apim-request-id: 208b2565-9301-4a02-9e3e-7517e95af23f content-type: application/json; charset=utf-8 - date: Thu, 11 Jun 2020 15:45:02 GMT + date: Fri, 10 Jul 2020 19:00:10 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '17' + x-envoy-upstream-service-time: '47' status: code: 200 message: OK - url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/a4aec2fe-17aa-47cd-95d4-8d221764aefb?includeKeys=true + url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/791ac27c-ed29-4e04-b5e4-0bab0f01f8ea?includeKeys=true - request: body: null headers: User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/a4aec2fe-17aa-47cd-95d4-8d221764aefb?includeKeys=true + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/791ac27c-ed29-4e04-b5e4-0bab0f01f8ea?includeKeys=true response: body: - string: '{"modelInfo": {"modelId": "a4aec2fe-17aa-47cd-95d4-8d221764aefb", "status": - "creating", "createdDateTime": "2020-06-11T15:44:57Z", "lastUpdatedDateTime": - "2020-06-11T15:44:57Z"}}' + string: '{"modelInfo": {"modelId": "791ac27c-ed29-4e04-b5e4-0bab0f01f8ea", "status": + "creating", "createdDateTime": "2020-07-10T19:00:05Z", "lastUpdatedDateTime": + "2020-07-10T19:00:05Z"}}' headers: - apim-request-id: 51b2761f-4029-4476-95ba-0f4b63b5bfe7 + apim-request-id: b371b411-7b5f-4697-8f86-90ef227875fa content-type: application/json; charset=utf-8 - date: Thu, 11 Jun 2020 15:45:07 GMT + date: Fri, 10 Jul 2020 19:00:15 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '51' + x-envoy-upstream-service-time: '19' status: code: 200 message: OK - url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/a4aec2fe-17aa-47cd-95d4-8d221764aefb?includeKeys=true + url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/791ac27c-ed29-4e04-b5e4-0bab0f01f8ea?includeKeys=true - request: body: null headers: User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/a4aec2fe-17aa-47cd-95d4-8d221764aefb?includeKeys=true + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/791ac27c-ed29-4e04-b5e4-0bab0f01f8ea?includeKeys=true response: body: - string: '{"modelInfo": {"modelId": "a4aec2fe-17aa-47cd-95d4-8d221764aefb", "status": - "ready", "createdDateTime": "2020-06-11T15:44:57Z", "lastUpdatedDateTime": - "2020-06-11T15:45:08Z"}, "keys": {"clusters": {"0": ["Additional Notes:", + string: '{"modelInfo": {"modelId": "791ac27c-ed29-4e04-b5e4-0bab0f01f8ea", "status": + "ready", "createdDateTime": "2020-07-10T19:00:05Z", "lastUpdatedDateTime": + "2020-07-10T19:00:15Z"}, "keys": {"clusters": {"0": ["Additional Notes:", "Address:", "Company Name:", "Company Phone:", "Dated As:", "Details", "Email:", "Hero Limited", "Name:", "Phone:", "Purchase Order", "Purchase Order #:", "Quantity", "SUBTOTAL", "Seattle, WA 93849 Phone:", "Shipped From", "Shipped @@ -101,15 +97,15 @@ interactions: 1, "errors": [], "status": "succeeded"}, {"documentName": "Form_5.jpg", "pages": 1, "errors": [], "status": "succeeded"}], "errors": []}}' headers: - apim-request-id: 5a833136-026a-425a-aa2d-3ceac1d420bc + apim-request-id: 4d5ee810-2362-49ee-8a7d-9c5bd17c6537 content-type: application/json; charset=utf-8 - date: Thu, 11 Jun 2020 15:45:12 GMT + date: Fri, 10 Jul 2020 19:00:20 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '17' + x-envoy-upstream-service-time: '20' status: code: 200 message: OK - url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/a4aec2fe-17aa-47cd-95d4-8d221764aefb?includeKeys=true + url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/791ac27c-ed29-4e04-b5e4-0bab0f01f8ea?includeKeys=true version: 1 diff --git a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_training_async.test_training_with_files_filter.yaml b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_training_async.test_training_with_files_filter.yaml index 90142223d639..2e25887c9387 100644 --- a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_training_async.test_training_with_files_filter.yaml +++ b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_training_async.test_training_with_files_filter.yaml @@ -8,42 +8,64 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) method: POST - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models response: body: string: '' headers: - apim-request-id: 4113b3dd-7fc6-4ad4-bbcf-2c396b965c39 + apim-request-id: 886f0b69-730b-4333-b30a-d838cc372e20 content-length: '0' - date: Thu, 11 Jun 2020 15:45:13 GMT - location: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/cdef505e-6c35-4dd9-afaf-2039ae3b5fec + date: Fri, 10 Jul 2020 19:00:21 GMT + location: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/ca5bda2a-f7c6-43be-adb4-1a6199a86aee strict-transport-security: max-age=31536000; includeSubDomains; preload x-content-type-options: nosniff - x-envoy-upstream-service-time: '36' + x-envoy-upstream-service-time: '92' status: code: 201 message: Created - url: https://centraluseuap.api.cognitive.microsoft.com//formrecognizer/v2.0-preview/custom/models + url: https://centraluseuap.api.cognitive.microsoft.com//formrecognizer/v2.0/custom/models - request: body: null headers: User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/cdef505e-6c35-4dd9-afaf-2039ae3b5fec?includeKeys=true + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/ca5bda2a-f7c6-43be-adb4-1a6199a86aee?includeKeys=true response: body: - string: '{"modelInfo": {"modelId": "cdef505e-6c35-4dd9-afaf-2039ae3b5fec", "status": - "creating", "createdDateTime": "2020-06-11T15:45:13Z", "lastUpdatedDateTime": - "2020-06-11T15:45:13Z"}}' + string: '{"modelInfo": {"modelId": "ca5bda2a-f7c6-43be-adb4-1a6199a86aee", "status": + "creating", "createdDateTime": "2020-07-10T19:00:21Z", "lastUpdatedDateTime": + "2020-07-10T19:00:21Z"}}' headers: - apim-request-id: 4245aba9-c768-46a4-96a0-c62f387685b3 + apim-request-id: d9df1048-4811-41db-9736-b0d8c39d8cf6 content-type: application/json; charset=utf-8 - date: Thu, 11 Jun 2020 15:45:18 GMT + date: Fri, 10 Jul 2020 19:00:26 GMT + strict-transport-security: max-age=31536000; includeSubDomains; preload + transfer-encoding: chunked + x-content-type-options: nosniff + x-envoy-upstream-service-time: '19' + status: + code: 200 + message: OK + url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/ca5bda2a-f7c6-43be-adb4-1a6199a86aee?includeKeys=true +- request: + body: null + headers: + User-Agent: + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + method: GET + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/ca5bda2a-f7c6-43be-adb4-1a6199a86aee?includeKeys=true + response: + body: + string: '{"modelInfo": {"modelId": "ca5bda2a-f7c6-43be-adb4-1a6199a86aee", "status": + "creating", "createdDateTime": "2020-07-10T19:00:21Z", "lastUpdatedDateTime": + "2020-07-10T19:00:21Z"}}' + headers: + apim-request-id: 282d77da-eb23-4c6f-bac8-9ac2b0629fff + content-type: application/json; charset=utf-8 + date: Fri, 10 Jul 2020 19:00:31 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff @@ -51,45 +73,115 @@ interactions: status: code: 200 message: OK - url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/cdef505e-6c35-4dd9-afaf-2039ae3b5fec?includeKeys=true + url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/ca5bda2a-f7c6-43be-adb4-1a6199a86aee?includeKeys=true +- request: + body: null + headers: + User-Agent: + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + method: GET + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/ca5bda2a-f7c6-43be-adb4-1a6199a86aee?includeKeys=true + response: + body: + string: '{"modelInfo": {"modelId": "ca5bda2a-f7c6-43be-adb4-1a6199a86aee", "status": + "creating", "createdDateTime": "2020-07-10T19:00:21Z", "lastUpdatedDateTime": + "2020-07-10T19:00:21Z"}}' + headers: + apim-request-id: 1bdb6c83-772c-430b-8826-56685416fcb2 + content-type: application/json; charset=utf-8 + date: Fri, 10 Jul 2020 19:00:36 GMT + strict-transport-security: max-age=31536000; includeSubDomains; preload + transfer-encoding: chunked + x-content-type-options: nosniff + x-envoy-upstream-service-time: '21' + status: + code: 200 + message: OK + url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/ca5bda2a-f7c6-43be-adb4-1a6199a86aee?includeKeys=true +- request: + body: null + headers: + User-Agent: + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + method: GET + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/ca5bda2a-f7c6-43be-adb4-1a6199a86aee?includeKeys=true + response: + body: + string: '{"modelInfo": {"modelId": "ca5bda2a-f7c6-43be-adb4-1a6199a86aee", "status": + "creating", "createdDateTime": "2020-07-10T19:00:21Z", "lastUpdatedDateTime": + "2020-07-10T19:00:21Z"}}' + headers: + apim-request-id: 9a143af5-e53e-45d9-b0b3-a1b6759c636c + content-type: application/json; charset=utf-8 + date: Fri, 10 Jul 2020 19:00:41 GMT + strict-transport-security: max-age=31536000; includeSubDomains; preload + transfer-encoding: chunked + x-content-type-options: nosniff + x-envoy-upstream-service-time: '17' + status: + code: 200 + message: OK + url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/ca5bda2a-f7c6-43be-adb4-1a6199a86aee?includeKeys=true +- request: + body: null + headers: + User-Agent: + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + method: GET + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/ca5bda2a-f7c6-43be-adb4-1a6199a86aee?includeKeys=true + response: + body: + string: '{"modelInfo": {"modelId": "ca5bda2a-f7c6-43be-adb4-1a6199a86aee", "status": + "creating", "createdDateTime": "2020-07-10T19:00:21Z", "lastUpdatedDateTime": + "2020-07-10T19:00:21Z"}}' + headers: + apim-request-id: 3d008d3c-b610-45bd-b89f-c5e1b1cbbf08 + content-type: application/json; charset=utf-8 + date: Fri, 10 Jul 2020 19:00:46 GMT + strict-transport-security: max-age=31536000; includeSubDomains; preload + transfer-encoding: chunked + x-content-type-options: nosniff + x-envoy-upstream-service-time: '18' + status: + code: 200 + message: OK + url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/ca5bda2a-f7c6-43be-adb4-1a6199a86aee?includeKeys=true - request: body: null headers: User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/cdef505e-6c35-4dd9-afaf-2039ae3b5fec?includeKeys=true + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/ca5bda2a-f7c6-43be-adb4-1a6199a86aee?includeKeys=true response: body: - string: '{"modelInfo": {"modelId": "cdef505e-6c35-4dd9-afaf-2039ae3b5fec", "status": - "creating", "createdDateTime": "2020-06-11T15:45:13Z", "lastUpdatedDateTime": - "2020-06-11T15:45:13Z"}}' + string: '{"modelInfo": {"modelId": "ca5bda2a-f7c6-43be-adb4-1a6199a86aee", "status": + "creating", "createdDateTime": "2020-07-10T19:00:21Z", "lastUpdatedDateTime": + "2020-07-10T19:00:21Z"}}' headers: - apim-request-id: 4bf0441d-edf4-4f1a-9805-74d98601720d + apim-request-id: d73d3f64-24f3-4b3a-8528-b79f7fc79a85 content-type: application/json; charset=utf-8 - date: Thu, 11 Jun 2020 15:45:24 GMT + date: Fri, 10 Jul 2020 19:00:52 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '50' + x-envoy-upstream-service-time: '16' status: code: 200 message: OK - url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/cdef505e-6c35-4dd9-afaf-2039ae3b5fec?includeKeys=true + url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/ca5bda2a-f7c6-43be-adb4-1a6199a86aee?includeKeys=true - request: body: null headers: User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/cdef505e-6c35-4dd9-afaf-2039ae3b5fec?includeKeys=true + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/ca5bda2a-f7c6-43be-adb4-1a6199a86aee?includeKeys=true response: body: - string: '{"modelInfo": {"modelId": "cdef505e-6c35-4dd9-afaf-2039ae3b5fec", "status": - "ready", "createdDateTime": "2020-06-11T15:45:13Z", "lastUpdatedDateTime": - "2020-06-11T15:45:24Z"}, "keys": {"clusters": {"0": ["Additional Notes:", + string: '{"modelInfo": {"modelId": "ca5bda2a-f7c6-43be-adb4-1a6199a86aee", "status": + "ready", "createdDateTime": "2020-07-10T19:00:21Z", "lastUpdatedDateTime": + "2020-07-10T19:00:33Z"}, "keys": {"clusters": {"0": ["Additional Notes:", "Address:", "Company Name:", "Company Phone:", "Dated As:", "Details", "Email:", "Hero Limited", "Name:", "Phone:", "Purchase Order", "Purchase Order #:", "Quantity", "SUBTOTAL", "Seattle, WA 93849 Phone:", "Shipped From", "Shipped @@ -102,17 +194,17 @@ interactions: 1, "errors": [], "status": "succeeded"}, {"documentName": "subfolder/Form_6.jpg", "pages": 1, "errors": [], "status": "succeeded"}], "errors": []}}' headers: - apim-request-id: 374069fb-8e86-427f-981b-c39da424304a + apim-request-id: 93b25f2a-e79c-4854-acbe-51b6d0a33997 content-type: application/json; charset=utf-8 - date: Thu, 11 Jun 2020 15:45:28 GMT + date: Fri, 10 Jul 2020 19:00:57 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '17' + x-envoy-upstream-service-time: '18' status: code: 200 message: OK - url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/cdef505e-6c35-4dd9-afaf-2039ae3b5fec?includeKeys=true + url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/ca5bda2a-f7c6-43be-adb4-1a6199a86aee?includeKeys=true - request: body: 'b''b\''{"source": "containersasurl", "sourceFilter": {"prefix": "subfolder", "includeSubFolders": true}, "useLabelFile": false}\''''' @@ -122,54 +214,76 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) method: POST - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models response: body: string: '' headers: - apim-request-id: 4c22a4ab-84c2-436a-ad1b-d911c21f6714 + apim-request-id: 28be00d2-a79a-4bff-a9ad-feff1f6f3cb4 content-length: '0' - date: Thu, 11 Jun 2020 15:45:28 GMT - location: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/99cbbe3e-5e6b-4945-937c-ff84100fe4e1 + date: Fri, 10 Jul 2020 19:00:57 GMT + location: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/3147eb57-5e40-418a-a192-7de7839934e3 strict-transport-security: max-age=31536000; includeSubDomains; preload x-content-type-options: nosniff - x-envoy-upstream-service-time: '40' + x-envoy-upstream-service-time: '181' status: code: 201 message: Created - url: https://centraluseuap.api.cognitive.microsoft.com//formrecognizer/v2.0-preview/custom/models + url: https://centraluseuap.api.cognitive.microsoft.com//formrecognizer/v2.0/custom/models +- request: + body: null + headers: + User-Agent: + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + method: GET + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/3147eb57-5e40-418a-a192-7de7839934e3?includeKeys=true + response: + body: + string: '{"modelInfo": {"modelId": "3147eb57-5e40-418a-a192-7de7839934e3", "status": + "creating", "createdDateTime": "2020-07-10T19:00:57Z", "lastUpdatedDateTime": + "2020-07-10T19:00:57Z"}}' + headers: + apim-request-id: 65eb1151-efd7-4b50-874e-b44320a0742a + content-type: application/json; charset=utf-8 + date: Fri, 10 Jul 2020 19:01:02 GMT + strict-transport-security: max-age=31536000; includeSubDomains; preload + transfer-encoding: chunked + x-content-type-options: nosniff + x-envoy-upstream-service-time: '48' + status: + code: 200 + message: OK + url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/3147eb57-5e40-418a-a192-7de7839934e3?includeKeys=true - request: body: null headers: User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/99cbbe3e-5e6b-4945-937c-ff84100fe4e1?includeKeys=true + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/3147eb57-5e40-418a-a192-7de7839934e3?includeKeys=true response: body: - string: '{"modelInfo": {"modelId": "99cbbe3e-5e6b-4945-937c-ff84100fe4e1", "status": - "ready", "createdDateTime": "2020-06-11T15:45:29Z", "lastUpdatedDateTime": - "2020-06-11T15:45:33Z"}, "keys": {"clusters": {"0": ["Address:", "Company + string: '{"modelInfo": {"modelId": "3147eb57-5e40-418a-a192-7de7839934e3", "status": + "ready", "createdDateTime": "2020-07-10T19:00:57Z", "lastUpdatedDateTime": + "2020-07-10T19:01:03Z"}, "keys": {"clusters": {"0": ["Address:", "Company Name:", "Company Phone:", "Dated As:", "Details", "Name:", "Phone:", "Purchase Order #:", "Quantity", "Total", "Unit Price", "Vendor Name:", "Website:"]}}, "trainResult": {"trainingDocuments": [{"documentName": "subfolder/Form_6.jpg", "pages": 1, "errors": [], "status": "succeeded"}], "errors": []}}' headers: - apim-request-id: 89ef2560-426a-40b5-b02b-151b6992a72b + apim-request-id: 44bfb32e-3d8c-4f95-abef-6812cacf1dd8 content-type: application/json; charset=utf-8 - date: Thu, 11 Jun 2020 15:45:34 GMT + date: Fri, 10 Jul 2020 19:01:08 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '23' + x-envoy-upstream-service-time: '835' status: code: 200 message: OK - url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/99cbbe3e-5e6b-4945-937c-ff84100fe4e1?includeKeys=true + url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/3147eb57-5e40-418a-a192-7de7839934e3?includeKeys=true - request: body: 'b''b\''{"source": "containersasurl", "sourceFilter": {"prefix": "xxx", "includeSubFolders": false}, "useLabelFile": false}\''''' @@ -179,52 +293,50 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) method: POST - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models response: body: string: '' headers: - apim-request-id: 650c277c-e1ad-4ebe-8d47-a6ef199aa13a + apim-request-id: 3c5f853e-f83c-46a2-9ec9-b584f7143877 content-length: '0' - date: Thu, 11 Jun 2020 15:45:34 GMT - location: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/dcd25403-9fd9-4735-90ab-9838a70a6455 + date: Fri, 10 Jul 2020 19:01:09 GMT + location: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/bb95b4f6-97e9-48a4-8485-812e148c2513 strict-transport-security: max-age=31536000; includeSubDomains; preload x-content-type-options: nosniff - x-envoy-upstream-service-time: '66' + x-envoy-upstream-service-time: '714' status: code: 201 message: Created - url: https://centraluseuap.api.cognitive.microsoft.com//formrecognizer/v2.0-preview/custom/models + url: https://centraluseuap.api.cognitive.microsoft.com//formrecognizer/v2.0/custom/models - request: body: null headers: User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/dcd25403-9fd9-4735-90ab-9838a70a6455?includeKeys=true + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/bb95b4f6-97e9-48a4-8485-812e148c2513?includeKeys=true response: body: - string: '{"modelInfo": {"modelId": "dcd25403-9fd9-4735-90ab-9838a70a6455", "status": - "invalid", "createdDateTime": "2020-06-11T15:45:34Z", "lastUpdatedDateTime": - "2020-06-11T15:45:35Z"}, "keys": {"clusters": {}}, "trainResult": {"trainingDocuments": + string: '{"modelInfo": {"modelId": "bb95b4f6-97e9-48a4-8485-812e148c2513", "status": + "invalid", "createdDateTime": "2020-07-10T19:01:09Z", "lastUpdatedDateTime": + "2020-07-10T19:01:10Z"}, "keys": {"clusters": {}}, "trainResult": {"trainingDocuments": [], "errors": [{"code": "2014", "message": "No valid blobs found in the specified Azure blob container. Please conform to the document format/size/page/dimensions requirements."}]}}' headers: - apim-request-id: 35300e11-40f1-4359-8b75-fe7b73ed1f6f + apim-request-id: 747ef181-61ee-4280-a829-d8bb666c97c1 content-type: application/json; charset=utf-8 - date: Thu, 11 Jun 2020 15:45:38 GMT + date: Fri, 10 Jul 2020 19:01:14 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '18' + x-envoy-upstream-service-time: '859' x-ms-cs-error-code: '2014' status: code: 200 message: OK - url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/dcd25403-9fd9-4735-90ab-9838a70a6455?includeKeys=true + url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/bb95b4f6-97e9-48a4-8485-812e148c2513?includeKeys=true version: 1 diff --git a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_training_async.test_training_with_labels.yaml b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_training_async.test_training_with_labels.yaml index 48a9fa4b89e9..dbe6f5a3e1c2 100644 --- a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_training_async.test_training_with_labels.yaml +++ b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_training_async.test_training_with_labels.yaml @@ -8,38 +8,36 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) method: POST - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models response: body: string: '' headers: - apim-request-id: 310d15ea-f964-4712-a5c2-05f4df2b2869 + apim-request-id: ff956a90-01ea-4a80-9c6a-956b9f767689 content-length: '0' - date: Thu, 11 Jun 2020 15:45:05 GMT - location: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/7704d2cd-45f4-491f-ab94-8a0e893a3e5e + date: Fri, 10 Jul 2020 19:01:16 GMT + location: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/c164fece-b3f1-460f-b3f8-e9ee86574c51 strict-transport-security: max-age=31536000; includeSubDomains; preload x-content-type-options: nosniff - x-envoy-upstream-service-time: '71' + x-envoy-upstream-service-time: '45' status: code: 201 message: Created - url: https://centraluseuap.api.cognitive.microsoft.com//formrecognizer/v2.0-preview/custom/models + url: https://centraluseuap.api.cognitive.microsoft.com//formrecognizer/v2.0/custom/models - request: body: null headers: User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/7704d2cd-45f4-491f-ab94-8a0e893a3e5e?includeKeys=true + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/c164fece-b3f1-460f-b3f8-e9ee86574c51?includeKeys=true response: body: - string: '{"modelInfo": {"modelId": "7704d2cd-45f4-491f-ab94-8a0e893a3e5e", "status": - "ready", "createdDateTime": "2020-06-11T15:45:05Z", "lastUpdatedDateTime": - "2020-06-11T15:45:07Z"}, "trainResult": {"averageModelAccuracy": 0.973, "trainingDocuments": + string: '{"modelInfo": {"modelId": "c164fece-b3f1-460f-b3f8-e9ee86574c51", "status": + "ready", "createdDateTime": "2020-07-10T19:01:16Z", "lastUpdatedDateTime": + "2020-07-10T19:01:18Z"}, "trainResult": {"averageModelAccuracy": 0.973, "trainingDocuments": [{"documentName": "Form_1.jpg", "pages": 1, "status": "succeeded"}, {"documentName": "Form_2.jpg", "pages": 1, "status": "succeeded"}, {"documentName": "Form_3.jpg", "pages": 1, "status": "succeeded"}, {"documentName": "Form_4.jpg", "pages": @@ -55,15 +53,15 @@ interactions: "VendorName", "accuracy": 1.0}, {"fieldName": "Website", "accuracy": 1.0}], "errors": []}}' headers: - apim-request-id: 7167f933-5255-4fbf-8238-153afe811c9b + apim-request-id: c8c598a1-6947-4499-a3eb-855520e3dfac content-type: application/json; charset=utf-8 - date: Thu, 11 Jun 2020 15:45:10 GMT + date: Fri, 10 Jul 2020 19:01:21 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '17' + x-envoy-upstream-service-time: '20' status: code: 200 message: OK - url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/7704d2cd-45f4-491f-ab94-8a0e893a3e5e?includeKeys=true + url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/c164fece-b3f1-460f-b3f8-e9ee86574c51?includeKeys=true version: 1 diff --git a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_training_async.test_training_with_labels_transform.yaml b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_training_async.test_training_with_labels_transform.yaml index dd166261cef6..0bddfbb42f69 100644 --- a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_training_async.test_training_with_labels_transform.yaml +++ b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_training_async.test_training_with_labels_transform.yaml @@ -8,38 +8,36 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) method: POST - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models response: body: string: '' headers: - apim-request-id: d8e8b658-d672-450a-8c14-d78c7d21a694 + apim-request-id: 1fb37500-40c8-45d3-9a90-2c1a4f74539d content-length: '0' - date: Thu, 11 Jun 2020 15:45:00 GMT - location: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/6080006e-83c5-4a4b-bcf6-822ce8c8f544 + date: Fri, 10 Jul 2020 19:00:35 GMT + location: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/7acb3752-3266-4dcf-91e9-1189cdf98e38 strict-transport-security: max-age=31536000; includeSubDomains; preload x-content-type-options: nosniff - x-envoy-upstream-service-time: '38' + x-envoy-upstream-service-time: '5099' status: code: 201 message: Created - url: https://centraluseuap.api.cognitive.microsoft.com//formrecognizer/v2.0-preview/custom/models + url: https://centraluseuap.api.cognitive.microsoft.com//formrecognizer/v2.0/custom/models - request: body: null headers: User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) - Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/6080006e-83c5-4a4b-bcf6-822ce8c8f544?includeKeys=true + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/7acb3752-3266-4dcf-91e9-1189cdf98e38?includeKeys=true response: body: - string: '{"modelInfo": {"modelId": "6080006e-83c5-4a4b-bcf6-822ce8c8f544", "status": - "ready", "createdDateTime": "2020-06-11T15:45:01Z", "lastUpdatedDateTime": - "2020-06-11T15:45:04Z"}, "trainResult": {"averageModelAccuracy": 0.973, "trainingDocuments": + string: '{"modelInfo": {"modelId": "7acb3752-3266-4dcf-91e9-1189cdf98e38", "status": + "ready", "createdDateTime": "2020-07-10T19:00:30Z", "lastUpdatedDateTime": + "2020-07-10T19:00:39Z"}, "trainResult": {"averageModelAccuracy": 0.973, "trainingDocuments": [{"documentName": "Form_1.jpg", "pages": 1, "status": "succeeded"}, {"documentName": "Form_2.jpg", "pages": 1, "status": "succeeded"}, {"documentName": "Form_3.jpg", "pages": 1, "status": "succeeded"}, {"documentName": "Form_4.jpg", "pages": @@ -55,15 +53,15 @@ interactions: "VendorName", "accuracy": 1.0}, {"fieldName": "Website", "accuracy": 1.0}], "errors": []}}' headers: - apim-request-id: f7fa6708-154c-4552-8bae-325e2fec541b + apim-request-id: 22b04da9-9460-421a-ac33-927c2f009336 content-type: application/json; charset=utf-8 - date: Thu, 11 Jun 2020 15:45:05 GMT + date: Fri, 10 Jul 2020 19:00:40 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '18' + x-envoy-upstream-service-time: '15' status: code: 200 message: OK - url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0-preview/custom/models/6080006e-83c5-4a4b-bcf6-822ce8c8f544?includeKeys=true + url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/7acb3752-3266-4dcf-91e9-1189cdf98e38?includeKeys=true version: 1 diff --git a/sdk/formrecognizer/azure-ai-formrecognizer/tests/test_mgmt.py b/sdk/formrecognizer/azure-ai-formrecognizer/tests/test_mgmt.py index 2e8d0935fca0..1f10a73a4342 100644 --- a/sdk/formrecognizer/azure-ai-formrecognizer/tests/test_mgmt.py +++ b/sdk/formrecognizer/azure-ai-formrecognizer/tests/test_mgmt.py @@ -160,3 +160,11 @@ def test_get_form_recognizer_client(self, resource_group, location, form_recogni frc.begin_recognize_receipts_from_url(self.receipt_url_jpg).wait() ftc.get_account_properties() assert transport.session is not None + + @GlobalFormRecognizerAccountPreparer() + def test_api_version_form_training_client(self, resource_group, location, form_recognizer_account, form_recognizer_account_key): + transport = RequestsTransport() + with self.assertRaises(ValueError): + ftc = FormTrainingClient(endpoint=form_recognizer_account, credential=AzureKeyCredential(form_recognizer_account_key), transport=transport, api_version="2.1") + + ftc = FormTrainingClient(endpoint=form_recognizer_account, credential=AzureKeyCredential(form_recognizer_account_key), transport=transport, api_version="2.0") diff --git a/sdk/search/azure-search-documents/README.md b/sdk/search/azure-search-documents/README.md index 0a03ccef9f41..ebd9bbc64f6c 100644 --- a/sdk/search/azure-search-documents/README.md +++ b/sdk/search/azure-search-documents/README.md @@ -350,8 +350,10 @@ async with client: results = await client.search(search_text="hotel") async for result in results: print("{}: {})".format(result["hotelId"], result["hotelName"])) + ... +``` ## Troubleshooting diff --git a/sdk/servicebus/azure-servicebus/tests/async_tests/test_queues_async.py b/sdk/servicebus/azure-servicebus/tests/async_tests/test_queues_async.py index f3d6dd21a29f..c4e05ea3675a 100644 --- a/sdk/servicebus/azure-servicebus/tests/async_tests/test_queues_async.py +++ b/sdk/servicebus/azure-servicebus/tests/async_tests/test_queues_async.py @@ -1159,9 +1159,18 @@ def message_content(): await sender.send_messages(message) async with sb_client.get_queue_receiver(servicebus_queue.name) as receiver: - messages = await receiver.receive_messages(max_batch_size=20, max_wait_time=5) + receive_counter = 0 + message_received_cnt = 0 + while message_received_cnt < 20: + messages = await receiver.receive_messages(max_batch_size=20, max_wait_time=5) + if not messages: + break + receive_counter += 1 + message_received_cnt += len(messages) + for m in messages: + print_message(_logger, m) + await m.complete() - assert len(messages) == 20 - for m in messages: - print_message(_logger, m) - await m.complete() + assert message_received_cnt == 20 + # Network/server might be unstable making flow control ineffective in the leading rounds of connection iteration + assert receive_counter < 10 # Dynamic link credit issuing come info effect diff --git a/sdk/servicebus/azure-servicebus/tests/test_queues.py b/sdk/servicebus/azure-servicebus/tests/test_queues.py index bdcecc3ea4b2..f13062f01c0e 100644 --- a/sdk/servicebus/azure-servicebus/tests/test_queues.py +++ b/sdk/servicebus/azure-servicebus/tests/test_queues.py @@ -1271,9 +1271,18 @@ def message_content(): sender.send_messages(message) with sb_client.get_queue_receiver(servicebus_queue.name) as receiver: - messages = receiver.receive_messages(max_batch_size=20, max_wait_time=5) + receive_counter = 0 + message_received_cnt = 0 + while message_received_cnt < 20: + messages = receiver.receive_messages(max_batch_size=20, max_wait_time=5) + if not messages: + break + receive_counter += 1 + message_received_cnt += len(messages) + for m in messages: + print_message(_logger, m) + m.complete() - assert len(messages) == 20 - for m in messages: - print_message(_logger, m) - m.complete() + assert message_received_cnt == 20 + # Network/server might be unstable making flow control ineffective in the leading rounds of connection iteration + assert receive_counter < 10 # Dynamic link credit issuing come info effect diff --git a/sdk/storage/azure-storage-blob/README.md b/sdk/storage/azure-storage-blob/README.md index 2b83fc10f0c7..2ebf05ab1b0d 100644 --- a/sdk/storage/azure-storage-blob/README.md +++ b/sdk/storage/azure-storage-blob/README.md @@ -188,6 +188,7 @@ Once you've initialized a Client, you can choose from the different types of blo ## Examples The following sections provide several code snippets covering some of the most common Storage Blob tasks, including: +* [Create a container](#create-a-container "Create a container") * [Uploading a blob](#uploading-a-blob "Uploading a blob") * [Downloading a blob](#downloading-a-blob "Downloading a blob") * [Enumerating blobs](#enumerating-blobs "Enumerating blobs") diff --git a/sdk/storage/azure-storage-blob/azure/storage/blob/_download.py b/sdk/storage/azure-storage-blob/azure/storage/blob/_download.py index 478ed3c2804a..e11023c0f9c7 100644 --- a/sdk/storage/azure-storage-blob/azure/storage/blob/_download.py +++ b/sdk/storage/azure-storage-blob/azure/storage/blob/_download.py @@ -258,7 +258,7 @@ class StorageStreamDownloader(object): # pylint: disable=too-many-instance-attr The properties of the blob being downloaded. If only a range of the data is being downloaded, this will be reflected in the properties. :ivar int size: - The size of the total data in the stream. This will be the byte range if speficied, + The size of the total data in the stream. This will be the byte range if specified, otherwise the total size of the blob. """ diff --git a/sdk/storage/azure-storage-blob/samples/blob_samples_common.py b/sdk/storage/azure-storage-blob/samples/blob_samples_common.py index 121f0d6905ea..aa1640479f91 100644 --- a/sdk/storage/azure-storage-blob/samples/blob_samples_common.py +++ b/sdk/storage/azure-storage-blob/samples/blob_samples_common.py @@ -140,7 +140,7 @@ def delete_multiple_blobs(self): # [END delete_multiple_blobs] # Delete container - blob_service_client.delete_container("containerforbatchblobdeletesasync") + blob_service_client.delete_container("containerforbatchblobdelete") def acquire_lease_on_blob(self): diff --git a/sdk/storage/azure-storage-blob/tests/test_blob_encryption.py b/sdk/storage/azure-storage-blob/tests/test_blob_encryption.py index 79b6a9899749..dce2316c20c0 100644 --- a/sdk/storage/azure-storage-blob/tests/test_blob_encryption.py +++ b/sdk/storage/azure-storage-blob/tests/test_blob_encryption.py @@ -3,6 +3,7 @@ # Licensed under the MIT License. See License.txt in the project root for # license information. # -------------------------------------------------------------------------- +import tempfile import pytest @@ -16,6 +17,7 @@ urandom, path, remove, + unlink ) from azure.core.exceptions import HttpResponseError @@ -666,13 +668,15 @@ def test_create_page_blob_from_star(self, resource_group, location, storage_acco stream = BytesIO(content) self._create_blob_from_star(BlobType.PageBlob, content, stream, length=512) - file_name = 'page_blob_from_star.temp.dat' - with open(file_name, 'wb') as stream: - stream.write(content) + stream = tempfile.NamedTemporaryFile(delete=False) + path_name = stream.name + stream.write(content) + stream.close() - with open(file_name, 'rb') as stream: + with open(path_name, 'rb') as stream: self._create_blob_from_star(BlobType.PageBlob, content, stream) - self._teardown(file_name) + + unlink(stream.name) def _create_blob_from_star(self, blob_type, content, data, **kwargs): blob_name = self._get_blob_reference(blob_type) diff --git a/sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/__init__.py b/sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/__init__.py index 748335a88191..24df553f396d 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/__init__.py +++ b/sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/__init__.py @@ -6,6 +6,7 @@ from ._text_analytics_client import TextAnalyticsClient from ._version import VERSION +from ._multiapi import ApiVersion from ._models import ( DetectLanguageInput, TextDocumentInput, @@ -28,6 +29,7 @@ ) __all__ = [ + 'ApiVersion', 'TextAnalyticsClient', 'DetectLanguageInput', 'TextDocumentInput', diff --git a/sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_base_client.py b/sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_base_client.py index cf79ffd26524..3fe9927fbd0c 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_base_client.py +++ b/sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_base_client.py @@ -8,7 +8,7 @@ from azure.core.credentials import AzureKeyCredential from ._policies import TextAnalyticsResponseHookPolicy from ._user_agent import USER_AGENT -from ._generated import TextAnalyticsClient +from ._multiapi import load_generated_api def _authentication_policy(credential): authentication_policy = None @@ -26,7 +26,9 @@ def _authentication_policy(credential): class TextAnalyticsClientBase(object): def __init__(self, endpoint, credential, **kwargs): - self._client = TextAnalyticsClient( + api_version = kwargs.pop("api_version", None) + _TextAnalyticsClient = load_generated_api(api_version) + self._client = _TextAnalyticsClient( endpoint=endpoint, credential=credential, sdk_moniker=USER_AGENT, diff --git a/sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_generated/__init__.py b/sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_generated/__init__.py index bab4e1ff9cac..8066e1dcc2fd 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_generated/__init__.py +++ b/sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_generated/__init__.py @@ -1,16 +1,5 @@ # coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- - -from ._text_analytics_client import TextAnalyticsClient -__all__ = ['TextAnalyticsClient'] - -try: - from ._patch import patch_sdk - patch_sdk() -except ImportError: - pass +# ------------------------------------ +# Copyright (c) Microsoft Corporation. +# Licensed under the MIT License. +# ------------------------------------ \ No newline at end of file diff --git a/sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_generated/models/_text_analytics_client_enums.py b/sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_generated/models/_text_analytics_client_enums.py deleted file mode 100644 index e96d02393a83..000000000000 --- a/sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_generated/models/_text_analytics_client_enums.py +++ /dev/null @@ -1,56 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- - -from enum import Enum - -class DocumentSentimentValue(str, Enum): - """Predicted sentiment for document (Negative, Neutral, Positive, or Mixed). - """ - - positive = "positive" - neutral = "neutral" - negative = "negative" - mixed = "mixed" - -class ErrorCodeValue(str, Enum): - """Error code. - """ - - invalid_request = "invalidRequest" - invalid_argument = "invalidArgument" - internal_server_error = "internalServerError" - service_unavailable = "serviceUnavailable" - -class InnerErrorCodeValue(str, Enum): - """Error code. - """ - - invalid_parameter_value = "invalidParameterValue" - invalid_request_body_format = "invalidRequestBodyFormat" - empty_request = "emptyRequest" - missing_input_records = "missingInputRecords" - invalid_document = "invalidDocument" - model_version_incorrect = "modelVersionIncorrect" - invalid_document_batch = "invalidDocumentBatch" - unsupported_language_code = "unsupportedLanguageCode" - invalid_country_hint = "invalidCountryHint" - -class SentenceSentimentValue(str, Enum): - """The predicted Sentiment for the sentence. - """ - - positive = "positive" - neutral = "neutral" - negative = "negative" - -class WarningCodeValue(str, Enum): - """Error code. - """ - - long_words_in_document = "LongWordsInDocument" - document_truncated = "DocumentTruncated" diff --git a/sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_generated/v3_0/__init__.py b/sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_generated/v3_0/__init__.py new file mode 100644 index 000000000000..ca973ce68900 --- /dev/null +++ b/sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_generated/v3_0/__init__.py @@ -0,0 +1,16 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for license information. +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is regenerated. +# -------------------------------------------------------------------------- + +from ._text_analytics_client import TextAnalyticsClient +__all__ = ['TextAnalyticsClient'] + +try: + from ._patch import patch_sdk # type: ignore + patch_sdk() +except ImportError: + pass diff --git a/sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_generated/_configuration.py b/sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_generated/v3_0/_configuration.py similarity index 96% rename from sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_generated/_configuration.py rename to sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_generated/v3_0/_configuration.py index 4870417a532a..c3db95165c0c 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_generated/_configuration.py +++ b/sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_generated/v3_0/_configuration.py @@ -60,6 +60,7 @@ def _configure( self.headers_policy = kwargs.get('headers_policy') or policies.HeadersPolicy(**kwargs) self.proxy_policy = kwargs.get('proxy_policy') or policies.ProxyPolicy(**kwargs) self.logging_policy = kwargs.get('logging_policy') or policies.NetworkTraceLoggingPolicy(**kwargs) + self.http_logging_policy = kwargs.get('http_logging_policy') or policies.HttpLoggingPolicy(**kwargs) self.retry_policy = kwargs.get('retry_policy') or policies.RetryPolicy(**kwargs) self.custom_hook_policy = kwargs.get('custom_hook_policy') or policies.CustomHookPolicy(**kwargs) self.redirect_policy = kwargs.get('redirect_policy') or policies.RedirectPolicy(**kwargs) diff --git a/sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_generated/_text_analytics_client.py b/sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_generated/v3_0/_text_analytics_client.py similarity index 98% rename from sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_generated/_text_analytics_client.py rename to sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_generated/v3_0/_text_analytics_client.py index d54e09733c38..27228b8acce1 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_generated/_text_analytics_client.py +++ b/sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_generated/v3_0/_text_analytics_client.py @@ -15,6 +15,8 @@ # pylint: disable=unused-import,ungrouped-imports from typing import Any + from azure.core.credentials import TokenCredential + from ._configuration import TextAnalyticsClientConfiguration from .operations import TextAnalyticsClientOperationsMixin from . import models diff --git a/sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_generated/aio/__init__.py b/sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_generated/v3_0/aio/__init__.py similarity index 100% rename from sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_generated/aio/__init__.py rename to sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_generated/v3_0/aio/__init__.py diff --git a/sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_generated/aio/_configuration_async.py b/sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_generated/v3_0/aio/_configuration_async.py similarity index 94% rename from sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_generated/aio/_configuration_async.py rename to sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_generated/v3_0/aio/_configuration_async.py index 4865a1884975..499a2898a1b1 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_generated/aio/_configuration_async.py +++ b/sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_generated/v3_0/aio/_configuration_async.py @@ -13,7 +13,7 @@ if TYPE_CHECKING: # pylint: disable=unused-import,ungrouped-imports - from azure.core.credentials import TokenCredential + from azure.core.credentials_async import AsyncTokenCredential VERSION = "unknown" @@ -56,6 +56,7 @@ def _configure( self.headers_policy = kwargs.get('headers_policy') or policies.HeadersPolicy(**kwargs) self.proxy_policy = kwargs.get('proxy_policy') or policies.ProxyPolicy(**kwargs) self.logging_policy = kwargs.get('logging_policy') or policies.NetworkTraceLoggingPolicy(**kwargs) + self.http_logging_policy = kwargs.get('http_logging_policy') or policies.HttpLoggingPolicy(**kwargs) self.retry_policy = kwargs.get('retry_policy') or policies.AsyncRetryPolicy(**kwargs) self.custom_hook_policy = kwargs.get('custom_hook_policy') or policies.CustomHookPolicy(**kwargs) self.redirect_policy = kwargs.get('redirect_policy') or policies.AsyncRedirectPolicy(**kwargs) diff --git a/sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_generated/aio/_text_analytics_client_async.py b/sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_generated/v3_0/aio/_text_analytics_client_async.py similarity index 93% rename from sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_generated/aio/_text_analytics_client_async.py rename to sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_generated/v3_0/aio/_text_analytics_client_async.py index de28032b0db2..0a58502575f3 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_generated/aio/_text_analytics_client_async.py +++ b/sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_generated/v3_0/aio/_text_analytics_client_async.py @@ -6,11 +6,15 @@ # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -from typing import Any +from typing import Any, TYPE_CHECKING from azure.core import AsyncPipelineClient from msrest import Deserializer, Serializer +if TYPE_CHECKING: + # pylint: disable=unused-import,ungrouped-imports + from azure.core.credentials_async import AsyncTokenCredential + from ._configuration_async import TextAnalyticsClientConfiguration from .operations_async import TextAnalyticsClientOperationsMixin from .. import models diff --git a/sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_generated/aio/operations_async/__init__.py b/sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_generated/v3_0/aio/operations_async/__init__.py similarity index 100% rename from sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_generated/aio/operations_async/__init__.py rename to sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_generated/v3_0/aio/operations_async/__init__.py diff --git a/sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_generated/aio/operations_async/_text_analytics_client_operations_async.py b/sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_generated/v3_0/aio/operations_async/_text_analytics_client_operations_async.py similarity index 84% rename from sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_generated/aio/operations_async/_text_analytics_client_operations_async.py rename to sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_generated/v3_0/aio/operations_async/_text_analytics_client_operations_async.py index d09be1dbc240..763d9d4ae61e 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_generated/aio/operations_async/_text_analytics_client_operations_async.py +++ b/sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_generated/v3_0/aio/operations_async/_text_analytics_client_operations_async.py @@ -26,12 +26,15 @@ async def entities_recognition_general( show_stats: Optional[bool] = None, **kwargs ) -> "models.EntitiesResult": - """The API returns a list of general named entities in a given document. For the list of supported entity types, check :code:`Supported Entity Types in Text Analytics API`. See the :code:`Supported languages in Text Analytics API` for the list of enabled languages. + """Named Entity Recognition. - Named Entity Recognition. + The API returns a list of general named entities in a given document. For the list of supported + entity types, check :code:`Supported Entity Types in Text + Analytics API`. See the :code:`Supported languages in Text + Analytics API` for the list of enabled languages. :param documents: The set of documents to process as part of this batch. - :type documents: list[~azure.ai.textanalytics.models.MultiLanguageInput] + :type documents: list[~azure.ai.textanalytics.v3_0.models.MultiLanguageInput] :param model_version: (Optional) This value indicates which model will be used for scoring. If a model-version is not specified, the API should default to the latest, non-preview version. :type model_version: str @@ -39,8 +42,8 @@ async def entities_recognition_general( statistics. :type show_stats: bool :keyword callable cls: A custom type or function that will be passed the direct response - :return: EntitiesResult or the result of cls(response) - :rtype: ~azure.ai.textanalytics.models.EntitiesResult + :return: EntitiesResult, or the result of cls(response) + :rtype: ~azure.ai.textanalytics.v3_0.models.EntitiesResult :raises: ~azure.core.exceptions.HttpResponseError """ cls = kwargs.pop('cls', None) # type: ClsType["models.EntitiesResult"] @@ -69,7 +72,6 @@ async def entities_recognition_general( header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') header_parameters['Accept'] = 'application/json' - # Construct and send request body_content_kwargs = {} # type: Dict[str, Any] body_content = self._serialize.body(_input, 'MultiLanguageBatchInput') body_content_kwargs['content'] = body_content @@ -86,7 +88,7 @@ async def entities_recognition_general( deserialized = self._deserialize('EntitiesResult', pipeline_response) if cls: - return cls(pipeline_response, deserialized, {}) + return cls(pipeline_response, deserialized, {}) return deserialized entities_recognition_general.metadata = {'url': '/entities/recognition/general'} # type: ignore @@ -98,12 +100,14 @@ async def entities_linking( show_stats: Optional[bool] = None, **kwargs ) -> "models.EntityLinkingResult": - """The API returns a list of recognized entities with links to a well-known knowledge base. See the :code:`Supported languages in Text Analytics API` for the list of enabled languages. + """Linked entities from a well-known knowledge base. - Linked entities from a well-known knowledge base. + The API returns a list of recognized entities with links to a well-known knowledge base. See + the :code:`Supported languages in Text Analytics API` for + the list of enabled languages. :param documents: The set of documents to process as part of this batch. - :type documents: list[~azure.ai.textanalytics.models.MultiLanguageInput] + :type documents: list[~azure.ai.textanalytics.v3_0.models.MultiLanguageInput] :param model_version: (Optional) This value indicates which model will be used for scoring. If a model-version is not specified, the API should default to the latest, non-preview version. :type model_version: str @@ -111,8 +115,8 @@ async def entities_linking( statistics. :type show_stats: bool :keyword callable cls: A custom type or function that will be passed the direct response - :return: EntityLinkingResult or the result of cls(response) - :rtype: ~azure.ai.textanalytics.models.EntityLinkingResult + :return: EntityLinkingResult, or the result of cls(response) + :rtype: ~azure.ai.textanalytics.v3_0.models.EntityLinkingResult :raises: ~azure.core.exceptions.HttpResponseError """ cls = kwargs.pop('cls', None) # type: ClsType["models.EntityLinkingResult"] @@ -141,7 +145,6 @@ async def entities_linking( header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') header_parameters['Accept'] = 'application/json' - # Construct and send request body_content_kwargs = {} # type: Dict[str, Any] body_content = self._serialize.body(_input, 'MultiLanguageBatchInput') body_content_kwargs['content'] = body_content @@ -158,7 +161,7 @@ async def entities_linking( deserialized = self._deserialize('EntityLinkingResult', pipeline_response) if cls: - return cls(pipeline_response, deserialized, {}) + return cls(pipeline_response, deserialized, {}) return deserialized entities_linking.metadata = {'url': '/entities/linking'} # type: ignore @@ -170,12 +173,14 @@ async def key_phrases( show_stats: Optional[bool] = None, **kwargs ) -> "models.KeyPhraseResult": - """The API returns a list of strings denoting the key phrases in the input text. See the :code:`Supported languages in Text Analytics API` for the list of enabled languages. + """Key Phrases. - Key Phrases. + The API returns a list of strings denoting the key phrases in the input text. See the :code:`Supported languages in Text Analytics API` for the list of + enabled languages. :param documents: The set of documents to process as part of this batch. - :type documents: list[~azure.ai.textanalytics.models.MultiLanguageInput] + :type documents: list[~azure.ai.textanalytics.v3_0.models.MultiLanguageInput] :param model_version: (Optional) This value indicates which model will be used for scoring. If a model-version is not specified, the API should default to the latest, non-preview version. :type model_version: str @@ -183,8 +188,8 @@ async def key_phrases( statistics. :type show_stats: bool :keyword callable cls: A custom type or function that will be passed the direct response - :return: KeyPhraseResult or the result of cls(response) - :rtype: ~azure.ai.textanalytics.models.KeyPhraseResult + :return: KeyPhraseResult, or the result of cls(response) + :rtype: ~azure.ai.textanalytics.v3_0.models.KeyPhraseResult :raises: ~azure.core.exceptions.HttpResponseError """ cls = kwargs.pop('cls', None) # type: ClsType["models.KeyPhraseResult"] @@ -213,7 +218,6 @@ async def key_phrases( header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') header_parameters['Accept'] = 'application/json' - # Construct and send request body_content_kwargs = {} # type: Dict[str, Any] body_content = self._serialize.body(_input, 'MultiLanguageBatchInput') body_content_kwargs['content'] = body_content @@ -230,7 +234,7 @@ async def key_phrases( deserialized = self._deserialize('KeyPhraseResult', pipeline_response) if cls: - return cls(pipeline_response, deserialized, {}) + return cls(pipeline_response, deserialized, {}) return deserialized key_phrases.metadata = {'url': '/keyPhrases'} # type: ignore @@ -242,12 +246,15 @@ async def languages( show_stats: Optional[bool] = None, **kwargs ) -> "models.LanguageResult": - """The API returns the detected language and a numeric score between 0 and 1. Scores close to 1 indicate 100% certainty that the identified language is true. See the :code:`Supported languages in Text Analytics API` for the list of enabled languages. + """Detect Language. - Detect Language. + The API returns the detected language and a numeric score between 0 and 1. Scores close to 1 + indicate 100% certainty that the identified language is true. See the :code:`Supported languages in Text Analytics API` for the list of + enabled languages. :param documents: - :type documents: list[~azure.ai.textanalytics.models.LanguageInput] + :type documents: list[~azure.ai.textanalytics.v3_0.models.LanguageInput] :param model_version: (Optional) This value indicates which model will be used for scoring. If a model-version is not specified, the API should default to the latest, non-preview version. :type model_version: str @@ -255,8 +262,8 @@ async def languages( statistics. :type show_stats: bool :keyword callable cls: A custom type or function that will be passed the direct response - :return: LanguageResult or the result of cls(response) - :rtype: ~azure.ai.textanalytics.models.LanguageResult + :return: LanguageResult, or the result of cls(response) + :rtype: ~azure.ai.textanalytics.v3_0.models.LanguageResult :raises: ~azure.core.exceptions.HttpResponseError """ cls = kwargs.pop('cls', None) # type: ClsType["models.LanguageResult"] @@ -285,7 +292,6 @@ async def languages( header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') header_parameters['Accept'] = 'application/json' - # Construct and send request body_content_kwargs = {} # type: Dict[str, Any] body_content = self._serialize.body(_input, 'LanguageBatchInput') body_content_kwargs['content'] = body_content @@ -302,7 +308,7 @@ async def languages( deserialized = self._deserialize('LanguageResult', pipeline_response) if cls: - return cls(pipeline_response, deserialized, {}) + return cls(pipeline_response, deserialized, {}) return deserialized languages.metadata = {'url': '/languages'} # type: ignore @@ -314,12 +320,15 @@ async def sentiment( show_stats: Optional[bool] = None, **kwargs ) -> "models.SentimentResponse": - """The API returns a sentiment prediction, as well as sentiment scores for each sentiment class (Positive, Negative, and Neutral) for the document and each sentence within it. See the :code:`Supported languages in Text Analytics API` for the list of enabled languages. + """Sentiment. - Sentiment. + The API returns a sentiment prediction, as well as sentiment scores for each sentiment class + (Positive, Negative, and Neutral) for the document and each sentence within it. See the + :code:`Supported languages in Text Analytics API` for the + list of enabled languages. :param documents: The set of documents to process as part of this batch. - :type documents: list[~azure.ai.textanalytics.models.MultiLanguageInput] + :type documents: list[~azure.ai.textanalytics.v3_0.models.MultiLanguageInput] :param model_version: (Optional) This value indicates which model will be used for scoring. If a model-version is not specified, the API should default to the latest, non-preview version. :type model_version: str @@ -327,8 +336,8 @@ async def sentiment( statistics. :type show_stats: bool :keyword callable cls: A custom type or function that will be passed the direct response - :return: SentimentResponse or the result of cls(response) - :rtype: ~azure.ai.textanalytics.models.SentimentResponse + :return: SentimentResponse, or the result of cls(response) + :rtype: ~azure.ai.textanalytics.v3_0.models.SentimentResponse :raises: ~azure.core.exceptions.HttpResponseError """ cls = kwargs.pop('cls', None) # type: ClsType["models.SentimentResponse"] @@ -357,7 +366,6 @@ async def sentiment( header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') header_parameters['Accept'] = 'application/json' - # Construct and send request body_content_kwargs = {} # type: Dict[str, Any] body_content = self._serialize.body(_input, 'MultiLanguageBatchInput') body_content_kwargs['content'] = body_content @@ -374,7 +382,7 @@ async def sentiment( deserialized = self._deserialize('SentimentResponse', pipeline_response) if cls: - return cls(pipeline_response, deserialized, {}) + return cls(pipeline_response, deserialized, {}) return deserialized sentiment.metadata = {'url': '/sentiment'} # type: ignore diff --git a/sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_generated/models/__init__.py b/sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_generated/v3_0/models/__init__.py similarity index 100% rename from sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_generated/models/__init__.py rename to sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_generated/v3_0/models/__init__.py diff --git a/sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_generated/models/_models.py b/sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_generated/v3_0/models/_models.py similarity index 90% rename from sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_generated/models/_models.py rename to sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_generated/v3_0/models/_models.py index 9c178ac255dd..fb1572c0fca8 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_generated/models/_models.py +++ b/sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_generated/v3_0/models/_models.py @@ -55,12 +55,12 @@ class DocumentEntities(msrest.serialization.Model): :param id: Required. Unique, non-empty document identifier. :type id: str :param entities: Required. Recognized entities in the document. - :type entities: list[~azure.ai.textanalytics.models.Entity] + :type entities: list[~azure.ai.textanalytics.v3_0.models.Entity] :param warnings: Required. Warnings encountered while processing document. - :type warnings: list[~azure.ai.textanalytics.models.TextAnalyticsWarning] + :type warnings: list[~azure.ai.textanalytics.v3_0.models.TextAnalyticsWarning] :param statistics: if showStats=true was specified in the request this field will contain information about the document payload. - :type statistics: ~azure.ai.textanalytics.models.DocumentStatistics + :type statistics: ~azure.ai.textanalytics.v3_0.models.DocumentStatistics """ _validation = { @@ -95,7 +95,7 @@ class DocumentError(msrest.serialization.Model): :param id: Required. Document Id. :type id: str :param error: Required. Document Error. - :type error: ~azure.ai.textanalytics.models.TextAnalyticsError + :type error: ~azure.ai.textanalytics.v3_0.models.TextAnalyticsError """ _validation = { @@ -128,10 +128,10 @@ class DocumentKeyPhrases(msrest.serialization.Model): phrases returned is proportional to the number of words in the input document. :type key_phrases: list[str] :param warnings: Required. Warnings encountered while processing document. - :type warnings: list[~azure.ai.textanalytics.models.TextAnalyticsWarning] + :type warnings: list[~azure.ai.textanalytics.v3_0.models.TextAnalyticsWarning] :param statistics: if showStats=true was specified in the request this field will contain information about the document payload. - :type statistics: ~azure.ai.textanalytics.models.DocumentStatistics + :type statistics: ~azure.ai.textanalytics.v3_0.models.DocumentStatistics """ _validation = { @@ -166,12 +166,12 @@ class DocumentLanguage(msrest.serialization.Model): :param id: Required. Unique, non-empty document identifier. :type id: str :param detected_language: Required. Detected Language. - :type detected_language: ~azure.ai.textanalytics.models.DetectedLanguage + :type detected_language: ~azure.ai.textanalytics.v3_0.models.DetectedLanguage :param warnings: Required. Warnings encountered while processing document. - :type warnings: list[~azure.ai.textanalytics.models.TextAnalyticsWarning] + :type warnings: list[~azure.ai.textanalytics.v3_0.models.TextAnalyticsWarning] :param statistics: if showStats=true was specified in the request this field will contain information about the document payload. - :type statistics: ~azure.ai.textanalytics.models.DocumentStatistics + :type statistics: ~azure.ai.textanalytics.v3_0.models.DocumentStatistics """ _validation = { @@ -206,12 +206,12 @@ class DocumentLinkedEntities(msrest.serialization.Model): :param id: Required. Unique, non-empty document identifier. :type id: str :param entities: Required. Recognized well-known entities in the document. - :type entities: list[~azure.ai.textanalytics.models.LinkedEntity] + :type entities: list[~azure.ai.textanalytics.v3_0.models.LinkedEntity] :param warnings: Required. Warnings encountered while processing document. - :type warnings: list[~azure.ai.textanalytics.models.TextAnalyticsWarning] + :type warnings: list[~azure.ai.textanalytics.v3_0.models.TextAnalyticsWarning] :param statistics: if showStats=true was specified in the request this field will contain information about the document payload. - :type statistics: ~azure.ai.textanalytics.models.DocumentStatistics + :type statistics: ~azure.ai.textanalytics.v3_0.models.DocumentStatistics """ _validation = { @@ -247,17 +247,17 @@ class DocumentSentiment(msrest.serialization.Model): :type id: str :param sentiment: Required. Predicted sentiment for document (Negative, Neutral, Positive, or Mixed). Possible values include: "positive", "neutral", "negative", "mixed". - :type sentiment: str or ~azure.ai.textanalytics.models.DocumentSentimentValue + :type sentiment: str or ~azure.ai.textanalytics.v3_0.models.DocumentSentimentValue :param statistics: if showStats=true was specified in the request this field will contain information about the document payload. - :type statistics: ~azure.ai.textanalytics.models.DocumentStatistics + :type statistics: ~azure.ai.textanalytics.v3_0.models.DocumentStatistics :param confidence_scores: Required. Document level sentiment confidence scores between 0 and 1 for each sentiment class. - :type confidence_scores: ~azure.ai.textanalytics.models.SentimentConfidenceScorePerLabel + :type confidence_scores: ~azure.ai.textanalytics.v3_0.models.SentimentConfidenceScorePerLabel :param sentences: Required. Sentence level sentiment analysis. - :type sentences: list[~azure.ai.textanalytics.models.SentenceSentiment] + :type sentences: list[~azure.ai.textanalytics.v3_0.models.SentenceSentiment] :param warnings: Required. Warnings encountered while processing document. - :type warnings: list[~azure.ai.textanalytics.models.TextAnalyticsWarning] + :type warnings: list[~azure.ai.textanalytics.v3_0.models.TextAnalyticsWarning] """ _validation = { @@ -326,12 +326,12 @@ class EntitiesResult(msrest.serialization.Model): All required parameters must be populated in order to send to Azure. :param documents: Required. Response by document. - :type documents: list[~azure.ai.textanalytics.models.DocumentEntities] + :type documents: list[~azure.ai.textanalytics.v3_0.models.DocumentEntities] :param errors: Required. Errors by document id. - :type errors: list[~azure.ai.textanalytics.models.DocumentError] + :type errors: list[~azure.ai.textanalytics.v3_0.models.DocumentError] :param statistics: if showStats=true was specified in the request this field will contain information about the request payload. - :type statistics: ~azure.ai.textanalytics.models.RequestStatistics + :type statistics: ~azure.ai.textanalytics.v3_0.models.RequestStatistics :param model_version: Required. This field indicates which model is used for scoring. :type model_version: str """ @@ -415,12 +415,12 @@ class EntityLinkingResult(msrest.serialization.Model): All required parameters must be populated in order to send to Azure. :param documents: Required. Response by document. - :type documents: list[~azure.ai.textanalytics.models.DocumentLinkedEntities] + :type documents: list[~azure.ai.textanalytics.v3_0.models.DocumentLinkedEntities] :param errors: Required. Errors by document id. - :type errors: list[~azure.ai.textanalytics.models.DocumentError] + :type errors: list[~azure.ai.textanalytics.v3_0.models.DocumentError] :param statistics: if showStats=true was specified in the request this field will contain information about the request payload. - :type statistics: ~azure.ai.textanalytics.models.RequestStatistics + :type statistics: ~azure.ai.textanalytics.v3_0.models.RequestStatistics :param model_version: Required. This field indicates which model is used for scoring. :type model_version: str """ @@ -458,7 +458,7 @@ class InnerError(msrest.serialization.Model): "invalidRequestBodyFormat", "emptyRequest", "missingInputRecords", "invalidDocument", "modelVersionIncorrect", "invalidDocumentBatch", "unsupportedLanguageCode", "invalidCountryHint". - :type code: str or ~azure.ai.textanalytics.models.InnerErrorCodeValue + :type code: str or ~azure.ai.textanalytics.v3_0.models.InnerErrorCodeValue :param message: Required. Error message. :type message: str :param details: Error details. @@ -466,7 +466,7 @@ class InnerError(msrest.serialization.Model): :param target: Error target. :type target: str :param innererror: Inner error contains more specific information. - :type innererror: ~azure.ai.textanalytics.models.InnerError + :type innererror: ~azure.ai.textanalytics.v3_0.models.InnerError """ _validation = { @@ -500,12 +500,12 @@ class KeyPhraseResult(msrest.serialization.Model): All required parameters must be populated in order to send to Azure. :param documents: Required. Response by document. - :type documents: list[~azure.ai.textanalytics.models.DocumentKeyPhrases] + :type documents: list[~azure.ai.textanalytics.v3_0.models.DocumentKeyPhrases] :param errors: Required. Errors by document id. - :type errors: list[~azure.ai.textanalytics.models.DocumentError] + :type errors: list[~azure.ai.textanalytics.v3_0.models.DocumentError] :param statistics: if showStats=true was specified in the request this field will contain information about the request payload. - :type statistics: ~azure.ai.textanalytics.models.RequestStatistics + :type statistics: ~azure.ai.textanalytics.v3_0.models.RequestStatistics :param model_version: Required. This field indicates which model is used for scoring. :type model_version: str """ @@ -540,7 +540,7 @@ class LanguageBatchInput(msrest.serialization.Model): All required parameters must be populated in order to send to Azure. :param documents: Required. - :type documents: list[~azure.ai.textanalytics.models.LanguageInput] + :type documents: list[~azure.ai.textanalytics.v3_0.models.LanguageInput] """ _validation = { @@ -599,12 +599,12 @@ class LanguageResult(msrest.serialization.Model): All required parameters must be populated in order to send to Azure. :param documents: Required. Response by document. - :type documents: list[~azure.ai.textanalytics.models.DocumentLanguage] + :type documents: list[~azure.ai.textanalytics.v3_0.models.DocumentLanguage] :param errors: Required. Errors by document id. - :type errors: list[~azure.ai.textanalytics.models.DocumentError] + :type errors: list[~azure.ai.textanalytics.v3_0.models.DocumentError] :param statistics: if showStats=true was specified in the request this field will contain information about the request payload. - :type statistics: ~azure.ai.textanalytics.models.RequestStatistics + :type statistics: ~azure.ai.textanalytics.v3_0.models.RequestStatistics :param model_version: Required. This field indicates which model is used for scoring. :type model_version: str """ @@ -641,7 +641,7 @@ class LinkedEntity(msrest.serialization.Model): :param name: Required. Entity Linking formal name. :type name: str :param matches: Required. List of instances this entity appears in the text. - :type matches: list[~azure.ai.textanalytics.models.Match] + :type matches: list[~azure.ai.textanalytics.v3_0.models.Match] :param language: Required. Language used in the data source. :type language: str :param id: Unique identifier of the recognized entity from the data source. @@ -730,7 +730,7 @@ class MultiLanguageBatchInput(msrest.serialization.Model): All required parameters must be populated in order to send to Azure. :param documents: Required. The set of documents to process as part of this batch. - :type documents: list[~azure.ai.textanalytics.models.MultiLanguageInput] + :type documents: list[~azure.ai.textanalytics.v3_0.models.MultiLanguageInput] """ _validation = { @@ -836,10 +836,10 @@ class SentenceSentiment(msrest.serialization.Model): :type text: str :param sentiment: Required. The predicted Sentiment for the sentence. Possible values include: "positive", "neutral", "negative". - :type sentiment: str or ~azure.ai.textanalytics.models.SentenceSentimentValue + :type sentiment: str or ~azure.ai.textanalytics.v3_0.models.SentenceSentimentValue :param confidence_scores: Required. The sentiment confidence score between 0 and 1 for the sentence for all classes. - :type confidence_scores: ~azure.ai.textanalytics.models.SentimentConfidenceScorePerLabel + :type confidence_scores: ~azure.ai.textanalytics.v3_0.models.SentimentConfidenceScorePerLabel :param offset: Required. The sentence offset from the start of the document. :type offset: int :param length: Required. The length of the sentence by Unicode standard. @@ -914,12 +914,12 @@ class SentimentResponse(msrest.serialization.Model): All required parameters must be populated in order to send to Azure. :param documents: Required. Sentiment analysis per document. - :type documents: list[~azure.ai.textanalytics.models.DocumentSentiment] + :type documents: list[~azure.ai.textanalytics.v3_0.models.DocumentSentiment] :param errors: Required. Errors by document id. - :type errors: list[~azure.ai.textanalytics.models.DocumentError] + :type errors: list[~azure.ai.textanalytics.v3_0.models.DocumentError] :param statistics: if showStats=true was specified in the request this field will contain information about the request payload. - :type statistics: ~azure.ai.textanalytics.models.RequestStatistics + :type statistics: ~azure.ai.textanalytics.v3_0.models.RequestStatistics :param model_version: Required. This field indicates which model is used for scoring. :type model_version: str """ @@ -955,15 +955,15 @@ class TextAnalyticsError(msrest.serialization.Model): :param code: Required. Error code. Possible values include: "invalidRequest", "invalidArgument", "internalServerError", "serviceUnavailable". - :type code: str or ~azure.ai.textanalytics.models.ErrorCodeValue + :type code: str or ~azure.ai.textanalytics.v3_0.models.ErrorCodeValue :param message: Required. Error message. :type message: str :param target: Error target. :type target: str :param innererror: Inner error contains more specific information. - :type innererror: ~azure.ai.textanalytics.models.InnerError + :type innererror: ~azure.ai.textanalytics.v3_0.models.InnerError :param details: Details about specific errors that led to this reported error. - :type details: list[~azure.ai.textanalytics.models.TextAnalyticsError] + :type details: list[~azure.ai.textanalytics.v3_0.models.TextAnalyticsError] """ _validation = { @@ -998,7 +998,7 @@ class TextAnalyticsWarning(msrest.serialization.Model): :param code: Required. Error code. Possible values include: "LongWordsInDocument", "DocumentTruncated". - :type code: str or ~azure.ai.textanalytics.models.WarningCodeValue + :type code: str or ~azure.ai.textanalytics.v3_0.models.WarningCodeValue :param message: Required. Warning message. :type message: str :param target_ref: A JSON pointer reference indicating the target object. diff --git a/sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_generated/models/_models_py3.py b/sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_generated/v3_0/models/_models_py3.py similarity index 91% rename from sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_generated/models/_models_py3.py rename to sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_generated/v3_0/models/_models_py3.py index b969f1ca74e8..e00be3e2a7e8 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_generated/models/_models_py3.py +++ b/sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_generated/v3_0/models/_models_py3.py @@ -63,12 +63,12 @@ class DocumentEntities(msrest.serialization.Model): :param id: Required. Unique, non-empty document identifier. :type id: str :param entities: Required. Recognized entities in the document. - :type entities: list[~azure.ai.textanalytics.models.Entity] + :type entities: list[~azure.ai.textanalytics.v3_0.models.Entity] :param warnings: Required. Warnings encountered while processing document. - :type warnings: list[~azure.ai.textanalytics.models.TextAnalyticsWarning] + :type warnings: list[~azure.ai.textanalytics.v3_0.models.TextAnalyticsWarning] :param statistics: if showStats=true was specified in the request this field will contain information about the document payload. - :type statistics: ~azure.ai.textanalytics.models.DocumentStatistics + :type statistics: ~azure.ai.textanalytics.v3_0.models.DocumentStatistics """ _validation = { @@ -108,7 +108,7 @@ class DocumentError(msrest.serialization.Model): :param id: Required. Document Id. :type id: str :param error: Required. Document Error. - :type error: ~azure.ai.textanalytics.models.TextAnalyticsError + :type error: ~azure.ai.textanalytics.v3_0.models.TextAnalyticsError """ _validation = { @@ -144,10 +144,10 @@ class DocumentKeyPhrases(msrest.serialization.Model): phrases returned is proportional to the number of words in the input document. :type key_phrases: list[str] :param warnings: Required. Warnings encountered while processing document. - :type warnings: list[~azure.ai.textanalytics.models.TextAnalyticsWarning] + :type warnings: list[~azure.ai.textanalytics.v3_0.models.TextAnalyticsWarning] :param statistics: if showStats=true was specified in the request this field will contain information about the document payload. - :type statistics: ~azure.ai.textanalytics.models.DocumentStatistics + :type statistics: ~azure.ai.textanalytics.v3_0.models.DocumentStatistics """ _validation = { @@ -187,12 +187,12 @@ class DocumentLanguage(msrest.serialization.Model): :param id: Required. Unique, non-empty document identifier. :type id: str :param detected_language: Required. Detected Language. - :type detected_language: ~azure.ai.textanalytics.models.DetectedLanguage + :type detected_language: ~azure.ai.textanalytics.v3_0.models.DetectedLanguage :param warnings: Required. Warnings encountered while processing document. - :type warnings: list[~azure.ai.textanalytics.models.TextAnalyticsWarning] + :type warnings: list[~azure.ai.textanalytics.v3_0.models.TextAnalyticsWarning] :param statistics: if showStats=true was specified in the request this field will contain information about the document payload. - :type statistics: ~azure.ai.textanalytics.models.DocumentStatistics + :type statistics: ~azure.ai.textanalytics.v3_0.models.DocumentStatistics """ _validation = { @@ -232,12 +232,12 @@ class DocumentLinkedEntities(msrest.serialization.Model): :param id: Required. Unique, non-empty document identifier. :type id: str :param entities: Required. Recognized well-known entities in the document. - :type entities: list[~azure.ai.textanalytics.models.LinkedEntity] + :type entities: list[~azure.ai.textanalytics.v3_0.models.LinkedEntity] :param warnings: Required. Warnings encountered while processing document. - :type warnings: list[~azure.ai.textanalytics.models.TextAnalyticsWarning] + :type warnings: list[~azure.ai.textanalytics.v3_0.models.TextAnalyticsWarning] :param statistics: if showStats=true was specified in the request this field will contain information about the document payload. - :type statistics: ~azure.ai.textanalytics.models.DocumentStatistics + :type statistics: ~azure.ai.textanalytics.v3_0.models.DocumentStatistics """ _validation = { @@ -278,17 +278,17 @@ class DocumentSentiment(msrest.serialization.Model): :type id: str :param sentiment: Required. Predicted sentiment for document (Negative, Neutral, Positive, or Mixed). Possible values include: "positive", "neutral", "negative", "mixed". - :type sentiment: str or ~azure.ai.textanalytics.models.DocumentSentimentValue + :type sentiment: str or ~azure.ai.textanalytics.v3_0.models.DocumentSentimentValue :param statistics: if showStats=true was specified in the request this field will contain information about the document payload. - :type statistics: ~azure.ai.textanalytics.models.DocumentStatistics + :type statistics: ~azure.ai.textanalytics.v3_0.models.DocumentStatistics :param confidence_scores: Required. Document level sentiment confidence scores between 0 and 1 for each sentiment class. - :type confidence_scores: ~azure.ai.textanalytics.models.SentimentConfidenceScorePerLabel + :type confidence_scores: ~azure.ai.textanalytics.v3_0.models.SentimentConfidenceScorePerLabel :param sentences: Required. Sentence level sentiment analysis. - :type sentences: list[~azure.ai.textanalytics.models.SentenceSentiment] + :type sentences: list[~azure.ai.textanalytics.v3_0.models.SentenceSentiment] :param warnings: Required. Warnings encountered while processing document. - :type warnings: list[~azure.ai.textanalytics.models.TextAnalyticsWarning] + :type warnings: list[~azure.ai.textanalytics.v3_0.models.TextAnalyticsWarning] """ _validation = { @@ -367,12 +367,12 @@ class EntitiesResult(msrest.serialization.Model): All required parameters must be populated in order to send to Azure. :param documents: Required. Response by document. - :type documents: list[~azure.ai.textanalytics.models.DocumentEntities] + :type documents: list[~azure.ai.textanalytics.v3_0.models.DocumentEntities] :param errors: Required. Errors by document id. - :type errors: list[~azure.ai.textanalytics.models.DocumentError] + :type errors: list[~azure.ai.textanalytics.v3_0.models.DocumentError] :param statistics: if showStats=true was specified in the request this field will contain information about the request payload. - :type statistics: ~azure.ai.textanalytics.models.RequestStatistics + :type statistics: ~azure.ai.textanalytics.v3_0.models.RequestStatistics :param model_version: Required. This field indicates which model is used for scoring. :type model_version: str """ @@ -468,12 +468,12 @@ class EntityLinkingResult(msrest.serialization.Model): All required parameters must be populated in order to send to Azure. :param documents: Required. Response by document. - :type documents: list[~azure.ai.textanalytics.models.DocumentLinkedEntities] + :type documents: list[~azure.ai.textanalytics.v3_0.models.DocumentLinkedEntities] :param errors: Required. Errors by document id. - :type errors: list[~azure.ai.textanalytics.models.DocumentError] + :type errors: list[~azure.ai.textanalytics.v3_0.models.DocumentError] :param statistics: if showStats=true was specified in the request this field will contain information about the request payload. - :type statistics: ~azure.ai.textanalytics.models.RequestStatistics + :type statistics: ~azure.ai.textanalytics.v3_0.models.RequestStatistics :param model_version: Required. This field indicates which model is used for scoring. :type model_version: str """ @@ -516,7 +516,7 @@ class InnerError(msrest.serialization.Model): "invalidRequestBodyFormat", "emptyRequest", "missingInputRecords", "invalidDocument", "modelVersionIncorrect", "invalidDocumentBatch", "unsupportedLanguageCode", "invalidCountryHint". - :type code: str or ~azure.ai.textanalytics.models.InnerErrorCodeValue + :type code: str or ~azure.ai.textanalytics.v3_0.models.InnerErrorCodeValue :param message: Required. Error message. :type message: str :param details: Error details. @@ -524,7 +524,7 @@ class InnerError(msrest.serialization.Model): :param target: Error target. :type target: str :param innererror: Inner error contains more specific information. - :type innererror: ~azure.ai.textanalytics.models.InnerError + :type innererror: ~azure.ai.textanalytics.v3_0.models.InnerError """ _validation = { @@ -564,12 +564,12 @@ class KeyPhraseResult(msrest.serialization.Model): All required parameters must be populated in order to send to Azure. :param documents: Required. Response by document. - :type documents: list[~azure.ai.textanalytics.models.DocumentKeyPhrases] + :type documents: list[~azure.ai.textanalytics.v3_0.models.DocumentKeyPhrases] :param errors: Required. Errors by document id. - :type errors: list[~azure.ai.textanalytics.models.DocumentError] + :type errors: list[~azure.ai.textanalytics.v3_0.models.DocumentError] :param statistics: if showStats=true was specified in the request this field will contain information about the request payload. - :type statistics: ~azure.ai.textanalytics.models.RequestStatistics + :type statistics: ~azure.ai.textanalytics.v3_0.models.RequestStatistics :param model_version: Required. This field indicates which model is used for scoring. :type model_version: str """ @@ -609,7 +609,7 @@ class LanguageBatchInput(msrest.serialization.Model): All required parameters must be populated in order to send to Azure. :param documents: Required. - :type documents: list[~azure.ai.textanalytics.models.LanguageInput] + :type documents: list[~azure.ai.textanalytics.v3_0.models.LanguageInput] """ _validation = { @@ -674,12 +674,12 @@ class LanguageResult(msrest.serialization.Model): All required parameters must be populated in order to send to Azure. :param documents: Required. Response by document. - :type documents: list[~azure.ai.textanalytics.models.DocumentLanguage] + :type documents: list[~azure.ai.textanalytics.v3_0.models.DocumentLanguage] :param errors: Required. Errors by document id. - :type errors: list[~azure.ai.textanalytics.models.DocumentError] + :type errors: list[~azure.ai.textanalytics.v3_0.models.DocumentError] :param statistics: if showStats=true was specified in the request this field will contain information about the request payload. - :type statistics: ~azure.ai.textanalytics.models.RequestStatistics + :type statistics: ~azure.ai.textanalytics.v3_0.models.RequestStatistics :param model_version: Required. This field indicates which model is used for scoring. :type model_version: str """ @@ -721,7 +721,7 @@ class LinkedEntity(msrest.serialization.Model): :param name: Required. Entity Linking formal name. :type name: str :param matches: Required. List of instances this entity appears in the text. - :type matches: list[~azure.ai.textanalytics.models.Match] + :type matches: list[~azure.ai.textanalytics.v3_0.models.Match] :param language: Required. Language used in the data source. :type language: str :param id: Unique identifier of the recognized entity from the data source. @@ -822,7 +822,7 @@ class MultiLanguageBatchInput(msrest.serialization.Model): All required parameters must be populated in order to send to Azure. :param documents: Required. The set of documents to process as part of this batch. - :type documents: list[~azure.ai.textanalytics.models.MultiLanguageInput] + :type documents: list[~azure.ai.textanalytics.v3_0.models.MultiLanguageInput] """ _validation = { @@ -939,10 +939,10 @@ class SentenceSentiment(msrest.serialization.Model): :type text: str :param sentiment: Required. The predicted Sentiment for the sentence. Possible values include: "positive", "neutral", "negative". - :type sentiment: str or ~azure.ai.textanalytics.models.SentenceSentimentValue + :type sentiment: str or ~azure.ai.textanalytics.v3_0.models.SentenceSentimentValue :param confidence_scores: Required. The sentiment confidence score between 0 and 1 for the sentence for all classes. - :type confidence_scores: ~azure.ai.textanalytics.models.SentimentConfidenceScorePerLabel + :type confidence_scores: ~azure.ai.textanalytics.v3_0.models.SentimentConfidenceScorePerLabel :param offset: Required. The sentence offset from the start of the document. :type offset: int :param length: Required. The length of the sentence by Unicode standard. @@ -1027,12 +1027,12 @@ class SentimentResponse(msrest.serialization.Model): All required parameters must be populated in order to send to Azure. :param documents: Required. Sentiment analysis per document. - :type documents: list[~azure.ai.textanalytics.models.DocumentSentiment] + :type documents: list[~azure.ai.textanalytics.v3_0.models.DocumentSentiment] :param errors: Required. Errors by document id. - :type errors: list[~azure.ai.textanalytics.models.DocumentError] + :type errors: list[~azure.ai.textanalytics.v3_0.models.DocumentError] :param statistics: if showStats=true was specified in the request this field will contain information about the request payload. - :type statistics: ~azure.ai.textanalytics.models.RequestStatistics + :type statistics: ~azure.ai.textanalytics.v3_0.models.RequestStatistics :param model_version: Required. This field indicates which model is used for scoring. :type model_version: str """ @@ -1073,15 +1073,15 @@ class TextAnalyticsError(msrest.serialization.Model): :param code: Required. Error code. Possible values include: "invalidRequest", "invalidArgument", "internalServerError", "serviceUnavailable". - :type code: str or ~azure.ai.textanalytics.models.ErrorCodeValue + :type code: str or ~azure.ai.textanalytics.v3_0.models.ErrorCodeValue :param message: Required. Error message. :type message: str :param target: Error target. :type target: str :param innererror: Inner error contains more specific information. - :type innererror: ~azure.ai.textanalytics.models.InnerError + :type innererror: ~azure.ai.textanalytics.v3_0.models.InnerError :param details: Details about specific errors that led to this reported error. - :type details: list[~azure.ai.textanalytics.models.TextAnalyticsError] + :type details: list[~azure.ai.textanalytics.v3_0.models.TextAnalyticsError] """ _validation = { @@ -1122,7 +1122,7 @@ class TextAnalyticsWarning(msrest.serialization.Model): :param code: Required. Error code. Possible values include: "LongWordsInDocument", "DocumentTruncated". - :type code: str or ~azure.ai.textanalytics.models.WarningCodeValue + :type code: str or ~azure.ai.textanalytics.v3_0.models.WarningCodeValue :param message: Required. Warning message. :type message: str :param target_ref: A JSON pointer reference indicating the target object. diff --git a/sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_generated/v3_0/models/_text_analytics_client_enums.py b/sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_generated/v3_0/models/_text_analytics_client_enums.py new file mode 100644 index 000000000000..880e381d7da3 --- /dev/null +++ b/sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_generated/v3_0/models/_text_analytics_client_enums.py @@ -0,0 +1,74 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for license information. +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is regenerated. +# -------------------------------------------------------------------------- + +from enum import Enum, EnumMeta +from six import with_metaclass + +class _CaseInsensitiveEnumMeta(EnumMeta): + def __getitem__(self, name): + return super().__getitem__(name.upper()) + + def __getattr__(cls, name): + """Return the enum member matching `name` + We use __getattr__ instead of descriptors or inserting into the enum + class' __dict__ in order to support `name` and `value` being both + properties for enum members (which live in the class' __dict__) and + enum members themselves. + """ + try: + return cls._member_map_[name.upper()] + except KeyError: + raise AttributeError(name) + + +class DocumentSentimentValue(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): + """Predicted sentiment for document (Negative, Neutral, Positive, or Mixed). + """ + + POSITIVE = "positive" + NEUTRAL = "neutral" + NEGATIVE = "negative" + MIXED = "mixed" + +class ErrorCodeValue(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): + """Error code. + """ + + INVALID_REQUEST = "invalidRequest" + INVALID_ARGUMENT = "invalidArgument" + INTERNAL_SERVER_ERROR = "internalServerError" + SERVICE_UNAVAILABLE = "serviceUnavailable" + +class InnerErrorCodeValue(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): + """Error code. + """ + + INVALID_PARAMETER_VALUE = "invalidParameterValue" + INVALID_REQUEST_BODY_FORMAT = "invalidRequestBodyFormat" + EMPTY_REQUEST = "emptyRequest" + MISSING_INPUT_RECORDS = "missingInputRecords" + INVALID_DOCUMENT = "invalidDocument" + MODEL_VERSION_INCORRECT = "modelVersionIncorrect" + INVALID_DOCUMENT_BATCH = "invalidDocumentBatch" + UNSUPPORTED_LANGUAGE_CODE = "unsupportedLanguageCode" + INVALID_COUNTRY_HINT = "invalidCountryHint" + +class SentenceSentimentValue(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): + """The predicted Sentiment for the sentence. + """ + + POSITIVE = "positive" + NEUTRAL = "neutral" + NEGATIVE = "negative" + +class WarningCodeValue(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): + """Error code. + """ + + LONG_WORDS_IN_DOCUMENT = "LongWordsInDocument" + DOCUMENT_TRUNCATED = "DocumentTruncated" diff --git a/sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_generated/operations/__init__.py b/sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_generated/v3_0/operations/__init__.py similarity index 100% rename from sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_generated/operations/__init__.py rename to sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_generated/v3_0/operations/__init__.py diff --git a/sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_generated/operations/_text_analytics_client_operations.py b/sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_generated/v3_0/operations/_text_analytics_client_operations.py similarity index 84% rename from sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_generated/operations/_text_analytics_client_operations.py rename to sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_generated/v3_0/operations/_text_analytics_client_operations.py index 77c33a1778c7..5f95113d881f 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_generated/operations/_text_analytics_client_operations.py +++ b/sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_generated/v3_0/operations/_text_analytics_client_operations.py @@ -31,12 +31,15 @@ def entities_recognition_general( **kwargs # type: Any ): # type: (...) -> "models.EntitiesResult" - """The API returns a list of general named entities in a given document. For the list of supported entity types, check :code:`Supported Entity Types in Text Analytics API`. See the :code:`Supported languages in Text Analytics API` for the list of enabled languages. + """Named Entity Recognition. - Named Entity Recognition. + The API returns a list of general named entities in a given document. For the list of supported + entity types, check :code:`Supported Entity Types in Text + Analytics API`. See the :code:`Supported languages in Text + Analytics API` for the list of enabled languages. :param documents: The set of documents to process as part of this batch. - :type documents: list[~azure.ai.textanalytics.models.MultiLanguageInput] + :type documents: list[~azure.ai.textanalytics.v3_0.models.MultiLanguageInput] :param model_version: (Optional) This value indicates which model will be used for scoring. If a model-version is not specified, the API should default to the latest, non-preview version. :type model_version: str @@ -44,8 +47,8 @@ def entities_recognition_general( statistics. :type show_stats: bool :keyword callable cls: A custom type or function that will be passed the direct response - :return: EntitiesResult or the result of cls(response) - :rtype: ~azure.ai.textanalytics.models.EntitiesResult + :return: EntitiesResult, or the result of cls(response) + :rtype: ~azure.ai.textanalytics.v3_0.models.EntitiesResult :raises: ~azure.core.exceptions.HttpResponseError """ cls = kwargs.pop('cls', None) # type: ClsType["models.EntitiesResult"] @@ -74,7 +77,6 @@ def entities_recognition_general( header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') header_parameters['Accept'] = 'application/json' - # Construct and send request body_content_kwargs = {} # type: Dict[str, Any] body_content = self._serialize.body(_input, 'MultiLanguageBatchInput') body_content_kwargs['content'] = body_content @@ -91,7 +93,7 @@ def entities_recognition_general( deserialized = self._deserialize('EntitiesResult', pipeline_response) if cls: - return cls(pipeline_response, deserialized, {}) + return cls(pipeline_response, deserialized, {}) return deserialized entities_recognition_general.metadata = {'url': '/entities/recognition/general'} # type: ignore @@ -104,12 +106,14 @@ def entities_linking( **kwargs # type: Any ): # type: (...) -> "models.EntityLinkingResult" - """The API returns a list of recognized entities with links to a well-known knowledge base. See the :code:`Supported languages in Text Analytics API` for the list of enabled languages. + """Linked entities from a well-known knowledge base. - Linked entities from a well-known knowledge base. + The API returns a list of recognized entities with links to a well-known knowledge base. See + the :code:`Supported languages in Text Analytics API` for + the list of enabled languages. :param documents: The set of documents to process as part of this batch. - :type documents: list[~azure.ai.textanalytics.models.MultiLanguageInput] + :type documents: list[~azure.ai.textanalytics.v3_0.models.MultiLanguageInput] :param model_version: (Optional) This value indicates which model will be used for scoring. If a model-version is not specified, the API should default to the latest, non-preview version. :type model_version: str @@ -117,8 +121,8 @@ def entities_linking( statistics. :type show_stats: bool :keyword callable cls: A custom type or function that will be passed the direct response - :return: EntityLinkingResult or the result of cls(response) - :rtype: ~azure.ai.textanalytics.models.EntityLinkingResult + :return: EntityLinkingResult, or the result of cls(response) + :rtype: ~azure.ai.textanalytics.v3_0.models.EntityLinkingResult :raises: ~azure.core.exceptions.HttpResponseError """ cls = kwargs.pop('cls', None) # type: ClsType["models.EntityLinkingResult"] @@ -147,7 +151,6 @@ def entities_linking( header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') header_parameters['Accept'] = 'application/json' - # Construct and send request body_content_kwargs = {} # type: Dict[str, Any] body_content = self._serialize.body(_input, 'MultiLanguageBatchInput') body_content_kwargs['content'] = body_content @@ -164,7 +167,7 @@ def entities_linking( deserialized = self._deserialize('EntityLinkingResult', pipeline_response) if cls: - return cls(pipeline_response, deserialized, {}) + return cls(pipeline_response, deserialized, {}) return deserialized entities_linking.metadata = {'url': '/entities/linking'} # type: ignore @@ -177,12 +180,14 @@ def key_phrases( **kwargs # type: Any ): # type: (...) -> "models.KeyPhraseResult" - """The API returns a list of strings denoting the key phrases in the input text. See the :code:`Supported languages in Text Analytics API` for the list of enabled languages. + """Key Phrases. - Key Phrases. + The API returns a list of strings denoting the key phrases in the input text. See the :code:`Supported languages in Text Analytics API` for the list of + enabled languages. :param documents: The set of documents to process as part of this batch. - :type documents: list[~azure.ai.textanalytics.models.MultiLanguageInput] + :type documents: list[~azure.ai.textanalytics.v3_0.models.MultiLanguageInput] :param model_version: (Optional) This value indicates which model will be used for scoring. If a model-version is not specified, the API should default to the latest, non-preview version. :type model_version: str @@ -190,8 +195,8 @@ def key_phrases( statistics. :type show_stats: bool :keyword callable cls: A custom type or function that will be passed the direct response - :return: KeyPhraseResult or the result of cls(response) - :rtype: ~azure.ai.textanalytics.models.KeyPhraseResult + :return: KeyPhraseResult, or the result of cls(response) + :rtype: ~azure.ai.textanalytics.v3_0.models.KeyPhraseResult :raises: ~azure.core.exceptions.HttpResponseError """ cls = kwargs.pop('cls', None) # type: ClsType["models.KeyPhraseResult"] @@ -220,7 +225,6 @@ def key_phrases( header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') header_parameters['Accept'] = 'application/json' - # Construct and send request body_content_kwargs = {} # type: Dict[str, Any] body_content = self._serialize.body(_input, 'MultiLanguageBatchInput') body_content_kwargs['content'] = body_content @@ -237,7 +241,7 @@ def key_phrases( deserialized = self._deserialize('KeyPhraseResult', pipeline_response) if cls: - return cls(pipeline_response, deserialized, {}) + return cls(pipeline_response, deserialized, {}) return deserialized key_phrases.metadata = {'url': '/keyPhrases'} # type: ignore @@ -250,12 +254,15 @@ def languages( **kwargs # type: Any ): # type: (...) -> "models.LanguageResult" - """The API returns the detected language and a numeric score between 0 and 1. Scores close to 1 indicate 100% certainty that the identified language is true. See the :code:`Supported languages in Text Analytics API` for the list of enabled languages. + """Detect Language. - Detect Language. + The API returns the detected language and a numeric score between 0 and 1. Scores close to 1 + indicate 100% certainty that the identified language is true. See the :code:`Supported languages in Text Analytics API` for the list of + enabled languages. :param documents: - :type documents: list[~azure.ai.textanalytics.models.LanguageInput] + :type documents: list[~azure.ai.textanalytics.v3_0.models.LanguageInput] :param model_version: (Optional) This value indicates which model will be used for scoring. If a model-version is not specified, the API should default to the latest, non-preview version. :type model_version: str @@ -263,8 +270,8 @@ def languages( statistics. :type show_stats: bool :keyword callable cls: A custom type or function that will be passed the direct response - :return: LanguageResult or the result of cls(response) - :rtype: ~azure.ai.textanalytics.models.LanguageResult + :return: LanguageResult, or the result of cls(response) + :rtype: ~azure.ai.textanalytics.v3_0.models.LanguageResult :raises: ~azure.core.exceptions.HttpResponseError """ cls = kwargs.pop('cls', None) # type: ClsType["models.LanguageResult"] @@ -293,7 +300,6 @@ def languages( header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') header_parameters['Accept'] = 'application/json' - # Construct and send request body_content_kwargs = {} # type: Dict[str, Any] body_content = self._serialize.body(_input, 'LanguageBatchInput') body_content_kwargs['content'] = body_content @@ -310,7 +316,7 @@ def languages( deserialized = self._deserialize('LanguageResult', pipeline_response) if cls: - return cls(pipeline_response, deserialized, {}) + return cls(pipeline_response, deserialized, {}) return deserialized languages.metadata = {'url': '/languages'} # type: ignore @@ -323,12 +329,15 @@ def sentiment( **kwargs # type: Any ): # type: (...) -> "models.SentimentResponse" - """The API returns a sentiment prediction, as well as sentiment scores for each sentiment class (Positive, Negative, and Neutral) for the document and each sentence within it. See the :code:`Supported languages in Text Analytics API` for the list of enabled languages. + """Sentiment. - Sentiment. + The API returns a sentiment prediction, as well as sentiment scores for each sentiment class + (Positive, Negative, and Neutral) for the document and each sentence within it. See the + :code:`Supported languages in Text Analytics API` for the + list of enabled languages. :param documents: The set of documents to process as part of this batch. - :type documents: list[~azure.ai.textanalytics.models.MultiLanguageInput] + :type documents: list[~azure.ai.textanalytics.v3_0.models.MultiLanguageInput] :param model_version: (Optional) This value indicates which model will be used for scoring. If a model-version is not specified, the API should default to the latest, non-preview version. :type model_version: str @@ -336,8 +345,8 @@ def sentiment( statistics. :type show_stats: bool :keyword callable cls: A custom type or function that will be passed the direct response - :return: SentimentResponse or the result of cls(response) - :rtype: ~azure.ai.textanalytics.models.SentimentResponse + :return: SentimentResponse, or the result of cls(response) + :rtype: ~azure.ai.textanalytics.v3_0.models.SentimentResponse :raises: ~azure.core.exceptions.HttpResponseError """ cls = kwargs.pop('cls', None) # type: ClsType["models.SentimentResponse"] @@ -366,7 +375,6 @@ def sentiment( header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') header_parameters['Accept'] = 'application/json' - # Construct and send request body_content_kwargs = {} # type: Dict[str, Any] body_content = self._serialize.body(_input, 'MultiLanguageBatchInput') body_content_kwargs['content'] = body_content @@ -383,7 +391,7 @@ def sentiment( deserialized = self._deserialize('SentimentResponse', pipeline_response) if cls: - return cls(pipeline_response, deserialized, {}) + return cls(pipeline_response, deserialized, {}) return deserialized sentiment.metadata = {'url': '/sentiment'} # type: ignore diff --git a/sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_generated/py.typed b/sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_generated/v3_0/py.typed similarity index 100% rename from sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_generated/py.typed rename to sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_generated/v3_0/py.typed diff --git a/sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_generated/v3_1_preview_1/__init__.py b/sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_generated/v3_1_preview_1/__init__.py new file mode 100644 index 000000000000..ca973ce68900 --- /dev/null +++ b/sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_generated/v3_1_preview_1/__init__.py @@ -0,0 +1,16 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for license information. +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is regenerated. +# -------------------------------------------------------------------------- + +from ._text_analytics_client import TextAnalyticsClient +__all__ = ['TextAnalyticsClient'] + +try: + from ._patch import patch_sdk # type: ignore + patch_sdk() +except ImportError: + pass diff --git a/sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_generated/v3_1_preview_1/_configuration.py b/sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_generated/v3_1_preview_1/_configuration.py new file mode 100644 index 000000000000..c3db95165c0c --- /dev/null +++ b/sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_generated/v3_1_preview_1/_configuration.py @@ -0,0 +1,69 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for license information. +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is regenerated. +# -------------------------------------------------------------------------- + +from typing import TYPE_CHECKING + +from azure.core.configuration import Configuration +from azure.core.pipeline import policies + +if TYPE_CHECKING: + # pylint: disable=unused-import,ungrouped-imports + from typing import Any + + from azure.core.credentials import TokenCredential + +VERSION = "unknown" + +class TextAnalyticsClientConfiguration(Configuration): + """Configuration for TextAnalyticsClient. + + Note that all parameters used to create this instance are saved as instance + attributes. + + :param credential: Credential needed for the client to connect to Azure. + :type credential: ~azure.core.credentials.TokenCredential + :param endpoint: Supported Cognitive Services endpoints (protocol and hostname, for example: https://westus.api.cognitive.microsoft.com). + :type endpoint: str + """ + + def __init__( + self, + credential, # type: "TokenCredential" + endpoint, # type: str + **kwargs # type: Any + ): + # type: (...) -> None + if credential is None: + raise ValueError("Parameter 'credential' must not be None.") + if endpoint is None: + raise ValueError("Parameter 'endpoint' must not be None.") + super(TextAnalyticsClientConfiguration, self).__init__(**kwargs) + + self.credential = credential + self.endpoint = endpoint + self.credential_scopes = ['https://cognitiveservices.azure.com/.default'] + self.credential_scopes.extend(kwargs.pop('credential_scopes', [])) + kwargs.setdefault('sdk_moniker', 'ai-textanalytics/{}'.format(VERSION)) + self._configure(**kwargs) + + def _configure( + self, + **kwargs # type: Any + ): + # type: (...) -> None + self.user_agent_policy = kwargs.get('user_agent_policy') or policies.UserAgentPolicy(**kwargs) + self.headers_policy = kwargs.get('headers_policy') or policies.HeadersPolicy(**kwargs) + self.proxy_policy = kwargs.get('proxy_policy') or policies.ProxyPolicy(**kwargs) + self.logging_policy = kwargs.get('logging_policy') or policies.NetworkTraceLoggingPolicy(**kwargs) + self.http_logging_policy = kwargs.get('http_logging_policy') or policies.HttpLoggingPolicy(**kwargs) + self.retry_policy = kwargs.get('retry_policy') or policies.RetryPolicy(**kwargs) + self.custom_hook_policy = kwargs.get('custom_hook_policy') or policies.CustomHookPolicy(**kwargs) + self.redirect_policy = kwargs.get('redirect_policy') or policies.RedirectPolicy(**kwargs) + self.authentication_policy = kwargs.get('authentication_policy') + if self.credential and not self.authentication_policy: + self.authentication_policy = policies.BearerTokenCredentialPolicy(self.credential, *self.credential_scopes, **kwargs) diff --git a/sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_generated/v3_1_preview_1/_text_analytics_client.py b/sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_generated/v3_1_preview_1/_text_analytics_client.py new file mode 100644 index 000000000000..20b9bbad197a --- /dev/null +++ b/sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_generated/v3_1_preview_1/_text_analytics_client.py @@ -0,0 +1,62 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for license information. +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is regenerated. +# -------------------------------------------------------------------------- + +from typing import TYPE_CHECKING + +from azure.core import PipelineClient +from msrest import Deserializer, Serializer + +if TYPE_CHECKING: + # pylint: disable=unused-import,ungrouped-imports + from typing import Any + + from azure.core.credentials import TokenCredential + +from ._configuration import TextAnalyticsClientConfiguration +from .operations import TextAnalyticsClientOperationsMixin +from . import models + + +class TextAnalyticsClient(TextAnalyticsClientOperationsMixin): + """The Text Analytics API is a suite of text analytics web services built with best-in-class Microsoft machine learning algorithms. The API can be used to analyze unstructured text for tasks such as sentiment analysis, key phrase extraction and language detection. No training data is needed to use this API; just bring your text data. This API uses advanced natural language processing techniques to deliver best in class predictions. Further documentation can be found in https://docs.microsoft.com/en-us/azure/cognitive-services/text-analytics/overview. + + :param credential: Credential needed for the client to connect to Azure. + :type credential: ~azure.core.credentials.TokenCredential + :param endpoint: Supported Cognitive Services endpoints (protocol and hostname, for example: https://westus.api.cognitive.microsoft.com). + :type endpoint: str + :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. + """ + + def __init__( + self, + credential, # type: "TokenCredential" + endpoint, # type: str + **kwargs # type: Any + ): + # type: (...) -> None + base_url = '{Endpoint}/text/analytics/v3.1-preview.1' + self._config = TextAnalyticsClientConfiguration(credential, endpoint, **kwargs) + self._client = PipelineClient(base_url=base_url, config=self._config, **kwargs) + + client_models = {k: v for k, v in models.__dict__.items() if isinstance(v, type)} + self._serialize = Serializer(client_models) + self._deserialize = Deserializer(client_models) + + + def close(self): + # type: () -> None + self._client.close() + + def __enter__(self): + # type: () -> TextAnalyticsClient + self._client.__enter__() + return self + + def __exit__(self, *exc_details): + # type: (Any) -> None + self._client.__exit__(*exc_details) diff --git a/sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_generated/v3_1_preview_1/aio/__init__.py b/sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_generated/v3_1_preview_1/aio/__init__.py new file mode 100644 index 000000000000..ffe1820f1f27 --- /dev/null +++ b/sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_generated/v3_1_preview_1/aio/__init__.py @@ -0,0 +1,10 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for license information. +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is regenerated. +# -------------------------------------------------------------------------- + +from ._text_analytics_client_async import TextAnalyticsClient +__all__ = ['TextAnalyticsClient'] diff --git a/sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_generated/v3_1_preview_1/aio/_configuration_async.py b/sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_generated/v3_1_preview_1/aio/_configuration_async.py new file mode 100644 index 000000000000..499a2898a1b1 --- /dev/null +++ b/sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_generated/v3_1_preview_1/aio/_configuration_async.py @@ -0,0 +1,65 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for license information. +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is regenerated. +# -------------------------------------------------------------------------- + +from typing import Any, TYPE_CHECKING + +from azure.core.configuration import Configuration +from azure.core.pipeline import policies + +if TYPE_CHECKING: + # pylint: disable=unused-import,ungrouped-imports + from azure.core.credentials_async import AsyncTokenCredential + +VERSION = "unknown" + +class TextAnalyticsClientConfiguration(Configuration): + """Configuration for TextAnalyticsClient. + + Note that all parameters used to create this instance are saved as instance + attributes. + + :param credential: Credential needed for the client to connect to Azure. + :type credential: ~azure.core.credentials_async.AsyncTokenCredential + :param endpoint: Supported Cognitive Services endpoints (protocol and hostname, for example: https://westus.api.cognitive.microsoft.com). + :type endpoint: str + """ + + def __init__( + self, + credential: "AsyncTokenCredential", + endpoint: str, + **kwargs: Any + ) -> None: + if credential is None: + raise ValueError("Parameter 'credential' must not be None.") + if endpoint is None: + raise ValueError("Parameter 'endpoint' must not be None.") + super(TextAnalyticsClientConfiguration, self).__init__(**kwargs) + + self.credential = credential + self.endpoint = endpoint + self.credential_scopes = ['https://cognitiveservices.azure.com/.default'] + self.credential_scopes.extend(kwargs.pop('credential_scopes', [])) + kwargs.setdefault('sdk_moniker', 'ai-textanalytics/{}'.format(VERSION)) + self._configure(**kwargs) + + def _configure( + self, + **kwargs: Any + ) -> None: + self.user_agent_policy = kwargs.get('user_agent_policy') or policies.UserAgentPolicy(**kwargs) + self.headers_policy = kwargs.get('headers_policy') or policies.HeadersPolicy(**kwargs) + self.proxy_policy = kwargs.get('proxy_policy') or policies.ProxyPolicy(**kwargs) + self.logging_policy = kwargs.get('logging_policy') or policies.NetworkTraceLoggingPolicy(**kwargs) + self.http_logging_policy = kwargs.get('http_logging_policy') or policies.HttpLoggingPolicy(**kwargs) + self.retry_policy = kwargs.get('retry_policy') or policies.AsyncRetryPolicy(**kwargs) + self.custom_hook_policy = kwargs.get('custom_hook_policy') or policies.CustomHookPolicy(**kwargs) + self.redirect_policy = kwargs.get('redirect_policy') or policies.AsyncRedirectPolicy(**kwargs) + self.authentication_policy = kwargs.get('authentication_policy') + if self.credential and not self.authentication_policy: + self.authentication_policy = policies.AsyncBearerTokenCredentialPolicy(self.credential, *self.credential_scopes, **kwargs) diff --git a/sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_generated/v3_1_preview_1/aio/_text_analytics_client_async.py b/sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_generated/v3_1_preview_1/aio/_text_analytics_client_async.py new file mode 100644 index 000000000000..0f3ff076484b --- /dev/null +++ b/sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_generated/v3_1_preview_1/aio/_text_analytics_client_async.py @@ -0,0 +1,56 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for license information. +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is regenerated. +# -------------------------------------------------------------------------- + +from typing import Any, TYPE_CHECKING + +from azure.core import AsyncPipelineClient +from msrest import Deserializer, Serializer + +if TYPE_CHECKING: + # pylint: disable=unused-import,ungrouped-imports + from azure.core.credentials_async import AsyncTokenCredential + +from ._configuration_async import TextAnalyticsClientConfiguration +from .operations_async import TextAnalyticsClientOperationsMixin +from .. import models + + +class TextAnalyticsClient(TextAnalyticsClientOperationsMixin): + """The Text Analytics API is a suite of text analytics web services built with best-in-class Microsoft machine learning algorithms. The API can be used to analyze unstructured text for tasks such as sentiment analysis, key phrase extraction and language detection. No training data is needed to use this API; just bring your text data. This API uses advanced natural language processing techniques to deliver best in class predictions. Further documentation can be found in https://docs.microsoft.com/en-us/azure/cognitive-services/text-analytics/overview. + + :param credential: Credential needed for the client to connect to Azure. + :type credential: ~azure.core.credentials_async.AsyncTokenCredential + :param endpoint: Supported Cognitive Services endpoints (protocol and hostname, for example: https://westus.api.cognitive.microsoft.com). + :type endpoint: str + :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. + """ + + def __init__( + self, + credential: "AsyncTokenCredential", + endpoint: str, + **kwargs: Any + ) -> None: + base_url = '{Endpoint}/text/analytics/v3.1-preview.1' + self._config = TextAnalyticsClientConfiguration(credential, endpoint, **kwargs) + self._client = AsyncPipelineClient(base_url=base_url, config=self._config, **kwargs) + + client_models = {k: v for k, v in models.__dict__.items() if isinstance(v, type)} + self._serialize = Serializer(client_models) + self._deserialize = Deserializer(client_models) + + + async def close(self) -> None: + await self._client.close() + + async def __aenter__(self) -> "TextAnalyticsClient": + await self._client.__aenter__() + return self + + async def __aexit__(self, *exc_details) -> None: + await self._client.__aexit__(*exc_details) diff --git a/sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_generated/v3_1_preview_1/aio/operations_async/__init__.py b/sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_generated/v3_1_preview_1/aio/operations_async/__init__.py new file mode 100644 index 000000000000..e6429ee824b7 --- /dev/null +++ b/sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_generated/v3_1_preview_1/aio/operations_async/__init__.py @@ -0,0 +1,13 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for license information. +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is regenerated. +# -------------------------------------------------------------------------- + +from ._text_analytics_client_operations_async import TextAnalyticsClientOperationsMixin + +__all__ = [ + 'TextAnalyticsClientOperationsMixin', +] diff --git a/sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_generated/v3_1_preview_1/aio/operations_async/_text_analytics_client_operations_async.py b/sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_generated/v3_1_preview_1/aio/operations_async/_text_analytics_client_operations_async.py new file mode 100644 index 000000000000..97d727910b26 --- /dev/null +++ b/sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_generated/v3_1_preview_1/aio/operations_async/_text_analytics_client_operations_async.py @@ -0,0 +1,473 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for license information. +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is regenerated. +# -------------------------------------------------------------------------- +from typing import Any, Callable, Dict, Generic, List, Optional, TypeVar +import warnings + +from azure.core.exceptions import HttpResponseError, ResourceExistsError, ResourceNotFoundError, map_error +from azure.core.pipeline import PipelineResponse +from azure.core.pipeline.transport import AsyncHttpResponse, HttpRequest + +from ... import models + +T = TypeVar('T') +ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] + +class TextAnalyticsClientOperationsMixin: + + async def entities_recognition_general( + self, + documents: List["models.MultiLanguageInput"], + model_version: Optional[str] = None, + show_stats: Optional[bool] = None, + **kwargs + ) -> "models.EntitiesResult": + """Named Entity Recognition. + + The API returns a list of general named entities in a given document. For the list of supported + entity types, check :code:`Supported Entity Types in Text + Analytics API`. See the :code:`Supported languages in Text + Analytics API` for the list of enabled languages. + + :param documents: The set of documents to process as part of this batch. + :type documents: list[~azure.ai.textanalytics.v3_1_preview_1.models.MultiLanguageInput] + :param model_version: (Optional) This value indicates which model will be used for scoring. If + a model-version is not specified, the API should default to the latest, non-preview version. + :type model_version: str + :param show_stats: (Optional) if set to true, response will contain input and document level + statistics. + :type show_stats: bool + :keyword callable cls: A custom type or function that will be passed the direct response + :return: EntitiesResult, or the result of cls(response) + :rtype: ~azure.ai.textanalytics.v3_1_preview_1.models.EntitiesResult + :raises: ~azure.core.exceptions.HttpResponseError + """ + cls = kwargs.pop('cls', None) # type: ClsType["models.EntitiesResult"] + error_map = {404: ResourceNotFoundError, 409: ResourceExistsError} + error_map.update(kwargs.pop('error_map', {})) + + _input = models.MultiLanguageBatchInput(documents=documents) + content_type = kwargs.pop("content_type", "application/json") + + # Construct URL + url = self.entities_recognition_general.metadata['url'] # type: ignore + path_format_arguments = { + 'Endpoint': self._serialize.url("self._config.endpoint", self._config.endpoint, 'str', skip_quote=True), + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} # type: Dict[str, Any] + if model_version is not None: + query_parameters['model-version'] = self._serialize.query("model_version", model_version, 'str') + if show_stats is not None: + query_parameters['showStats'] = self._serialize.query("show_stats", show_stats, 'bool') + + # Construct headers + header_parameters = {} # type: Dict[str, Any] + header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') + header_parameters['Accept'] = 'application/json' + + body_content_kwargs = {} # type: Dict[str, Any] + body_content = self._serialize.body(_input, 'MultiLanguageBatchInput') + body_content_kwargs['content'] = body_content + request = self._client.post(url, query_parameters, header_parameters, **body_content_kwargs) + + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [200]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = self._deserialize(models.TextAnalyticsError, response) + raise HttpResponseError(response=response, model=error) + + deserialized = self._deserialize('EntitiesResult', pipeline_response) + + if cls: + return cls(pipeline_response, deserialized, {}) + + return deserialized + entities_recognition_general.metadata = {'url': '/entities/recognition/general'} # type: ignore + + async def entities_recognition_pii( + self, + documents: List["models.MultiLanguageInput"], + model_version: Optional[str] = None, + show_stats: Optional[bool] = None, + domain: Optional[str] = None, + **kwargs + ) -> "models.EntitiesResult": + """Entities containing personal information. + + The API returns a list of entities with personal information (\"SSN\", \"Bank Account\" etc) in + the document. For the list of supported entity types, check :code:`Supported Entity Types in Text Analytics API`. See the + :code:`Supported languages in Text Analytics API` for the + list of enabled languages. + + :param documents: The set of documents to process as part of this batch. + :type documents: list[~azure.ai.textanalytics.v3_1_preview_1.models.MultiLanguageInput] + :param model_version: (Optional) This value indicates which model will be used for scoring. If + a model-version is not specified, the API should default to the latest, non-preview version. + :type model_version: str + :param show_stats: (Optional) if set to true, response will contain input and document level + statistics. + :type show_stats: bool + :param domain: (Optional) if set to 'PHI', response will contain only PHI entities. + :type domain: str + :keyword callable cls: A custom type or function that will be passed the direct response + :return: EntitiesResult, or the result of cls(response) + :rtype: ~azure.ai.textanalytics.v3_1_preview_1.models.EntitiesResult + :raises: ~azure.core.exceptions.HttpResponseError + """ + cls = kwargs.pop('cls', None) # type: ClsType["models.EntitiesResult"] + error_map = {404: ResourceNotFoundError, 409: ResourceExistsError} + error_map.update(kwargs.pop('error_map', {})) + + _input = models.MultiLanguageBatchInput(documents=documents) + content_type = kwargs.pop("content_type", "application/json") + + # Construct URL + url = self.entities_recognition_pii.metadata['url'] # type: ignore + path_format_arguments = { + 'Endpoint': self._serialize.url("self._config.endpoint", self._config.endpoint, 'str', skip_quote=True), + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} # type: Dict[str, Any] + if model_version is not None: + query_parameters['model-version'] = self._serialize.query("model_version", model_version, 'str') + if show_stats is not None: + query_parameters['showStats'] = self._serialize.query("show_stats", show_stats, 'bool') + if domain is not None: + query_parameters['domain'] = self._serialize.query("domain", domain, 'str') + + # Construct headers + header_parameters = {} # type: Dict[str, Any] + header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') + header_parameters['Accept'] = 'application/json' + + body_content_kwargs = {} # type: Dict[str, Any] + body_content = self._serialize.body(_input, 'MultiLanguageBatchInput') + body_content_kwargs['content'] = body_content + request = self._client.post(url, query_parameters, header_parameters, **body_content_kwargs) + + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [200]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = self._deserialize(models.TextAnalyticsError, response) + raise HttpResponseError(response=response, model=error) + + deserialized = self._deserialize('EntitiesResult', pipeline_response) + + if cls: + return cls(pipeline_response, deserialized, {}) + + return deserialized + entities_recognition_pii.metadata = {'url': '/entities/recognition/pii'} # type: ignore + + async def entities_linking( + self, + documents: List["models.MultiLanguageInput"], + model_version: Optional[str] = None, + show_stats: Optional[bool] = None, + **kwargs + ) -> "models.EntityLinkingResult": + """Linked entities from a well-known knowledge base. + + The API returns a list of recognized entities with links to a well-known knowledge base. See + the :code:`Supported languages in Text Analytics API` for + the list of enabled languages. + + :param documents: The set of documents to process as part of this batch. + :type documents: list[~azure.ai.textanalytics.v3_1_preview_1.models.MultiLanguageInput] + :param model_version: (Optional) This value indicates which model will be used for scoring. If + a model-version is not specified, the API should default to the latest, non-preview version. + :type model_version: str + :param show_stats: (Optional) if set to true, response will contain input and document level + statistics. + :type show_stats: bool + :keyword callable cls: A custom type or function that will be passed the direct response + :return: EntityLinkingResult, or the result of cls(response) + :rtype: ~azure.ai.textanalytics.v3_1_preview_1.models.EntityLinkingResult + :raises: ~azure.core.exceptions.HttpResponseError + """ + cls = kwargs.pop('cls', None) # type: ClsType["models.EntityLinkingResult"] + error_map = {404: ResourceNotFoundError, 409: ResourceExistsError} + error_map.update(kwargs.pop('error_map', {})) + + _input = models.MultiLanguageBatchInput(documents=documents) + content_type = kwargs.pop("content_type", "application/json") + + # Construct URL + url = self.entities_linking.metadata['url'] # type: ignore + path_format_arguments = { + 'Endpoint': self._serialize.url("self._config.endpoint", self._config.endpoint, 'str', skip_quote=True), + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} # type: Dict[str, Any] + if model_version is not None: + query_parameters['model-version'] = self._serialize.query("model_version", model_version, 'str') + if show_stats is not None: + query_parameters['showStats'] = self._serialize.query("show_stats", show_stats, 'bool') + + # Construct headers + header_parameters = {} # type: Dict[str, Any] + header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') + header_parameters['Accept'] = 'application/json' + + body_content_kwargs = {} # type: Dict[str, Any] + body_content = self._serialize.body(_input, 'MultiLanguageBatchInput') + body_content_kwargs['content'] = body_content + request = self._client.post(url, query_parameters, header_parameters, **body_content_kwargs) + + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [200]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = self._deserialize(models.TextAnalyticsError, response) + raise HttpResponseError(response=response, model=error) + + deserialized = self._deserialize('EntityLinkingResult', pipeline_response) + + if cls: + return cls(pipeline_response, deserialized, {}) + + return deserialized + entities_linking.metadata = {'url': '/entities/linking'} # type: ignore + + async def key_phrases( + self, + documents: List["models.MultiLanguageInput"], + model_version: Optional[str] = None, + show_stats: Optional[bool] = None, + **kwargs + ) -> "models.KeyPhraseResult": + """Key Phrases. + + The API returns a list of strings denoting the key phrases in the input text. See the :code:`Supported languages in Text Analytics API` for the list of + enabled languages. + + :param documents: The set of documents to process as part of this batch. + :type documents: list[~azure.ai.textanalytics.v3_1_preview_1.models.MultiLanguageInput] + :param model_version: (Optional) This value indicates which model will be used for scoring. If + a model-version is not specified, the API should default to the latest, non-preview version. + :type model_version: str + :param show_stats: (Optional) if set to true, response will contain input and document level + statistics. + :type show_stats: bool + :keyword callable cls: A custom type or function that will be passed the direct response + :return: KeyPhraseResult, or the result of cls(response) + :rtype: ~azure.ai.textanalytics.v3_1_preview_1.models.KeyPhraseResult + :raises: ~azure.core.exceptions.HttpResponseError + """ + cls = kwargs.pop('cls', None) # type: ClsType["models.KeyPhraseResult"] + error_map = {404: ResourceNotFoundError, 409: ResourceExistsError} + error_map.update(kwargs.pop('error_map', {})) + + _input = models.MultiLanguageBatchInput(documents=documents) + content_type = kwargs.pop("content_type", "application/json") + + # Construct URL + url = self.key_phrases.metadata['url'] # type: ignore + path_format_arguments = { + 'Endpoint': self._serialize.url("self._config.endpoint", self._config.endpoint, 'str', skip_quote=True), + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} # type: Dict[str, Any] + if model_version is not None: + query_parameters['model-version'] = self._serialize.query("model_version", model_version, 'str') + if show_stats is not None: + query_parameters['showStats'] = self._serialize.query("show_stats", show_stats, 'bool') + + # Construct headers + header_parameters = {} # type: Dict[str, Any] + header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') + header_parameters['Accept'] = 'application/json' + + body_content_kwargs = {} # type: Dict[str, Any] + body_content = self._serialize.body(_input, 'MultiLanguageBatchInput') + body_content_kwargs['content'] = body_content + request = self._client.post(url, query_parameters, header_parameters, **body_content_kwargs) + + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [200]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = self._deserialize(models.TextAnalyticsError, response) + raise HttpResponseError(response=response, model=error) + + deserialized = self._deserialize('KeyPhraseResult', pipeline_response) + + if cls: + return cls(pipeline_response, deserialized, {}) + + return deserialized + key_phrases.metadata = {'url': '/keyPhrases'} # type: ignore + + async def languages( + self, + documents: List["models.LanguageInput"], + model_version: Optional[str] = None, + show_stats: Optional[bool] = None, + **kwargs + ) -> "models.LanguageResult": + """Detect Language. + + The API returns the detected language and a numeric score between 0 and 1. Scores close to 1 + indicate 100% certainty that the identified language is true. See the :code:`Supported languages in Text Analytics API` for the list of + enabled languages. + + :param documents: + :type documents: list[~azure.ai.textanalytics.v3_1_preview_1.models.LanguageInput] + :param model_version: (Optional) This value indicates which model will be used for scoring. If + a model-version is not specified, the API should default to the latest, non-preview version. + :type model_version: str + :param show_stats: (Optional) if set to true, response will contain input and document level + statistics. + :type show_stats: bool + :keyword callable cls: A custom type or function that will be passed the direct response + :return: LanguageResult, or the result of cls(response) + :rtype: ~azure.ai.textanalytics.v3_1_preview_1.models.LanguageResult + :raises: ~azure.core.exceptions.HttpResponseError + """ + cls = kwargs.pop('cls', None) # type: ClsType["models.LanguageResult"] + error_map = {404: ResourceNotFoundError, 409: ResourceExistsError} + error_map.update(kwargs.pop('error_map', {})) + + _input = models.LanguageBatchInput(documents=documents) + content_type = kwargs.pop("content_type", "application/json") + + # Construct URL + url = self.languages.metadata['url'] # type: ignore + path_format_arguments = { + 'Endpoint': self._serialize.url("self._config.endpoint", self._config.endpoint, 'str', skip_quote=True), + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} # type: Dict[str, Any] + if model_version is not None: + query_parameters['model-version'] = self._serialize.query("model_version", model_version, 'str') + if show_stats is not None: + query_parameters['showStats'] = self._serialize.query("show_stats", show_stats, 'bool') + + # Construct headers + header_parameters = {} # type: Dict[str, Any] + header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') + header_parameters['Accept'] = 'application/json' + + body_content_kwargs = {} # type: Dict[str, Any] + body_content = self._serialize.body(_input, 'LanguageBatchInput') + body_content_kwargs['content'] = body_content + request = self._client.post(url, query_parameters, header_parameters, **body_content_kwargs) + + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [200]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = self._deserialize(models.TextAnalyticsError, response) + raise HttpResponseError(response=response, model=error) + + deserialized = self._deserialize('LanguageResult', pipeline_response) + + if cls: + return cls(pipeline_response, deserialized, {}) + + return deserialized + languages.metadata = {'url': '/languages'} # type: ignore + + async def sentiment( + self, + documents: List["models.MultiLanguageInput"], + model_version: Optional[str] = None, + show_stats: Optional[bool] = None, + opinion_mining: Optional[bool] = None, + **kwargs + ) -> "models.SentimentResponse": + """Sentiment. + + The API returns a detailed sentiment analysis for the input text. The analysis is done in + multiple levels of granularity, start from the a document level, down to sentence and key terms + (aspects) and opinions. + + :param documents: The set of documents to process as part of this batch. + :type documents: list[~azure.ai.textanalytics.v3_1_preview_1.models.MultiLanguageInput] + :param model_version: (Optional) This value indicates which model will be used for scoring. If + a model-version is not specified, the API should default to the latest, non-preview version. + :type model_version: str + :param show_stats: (Optional) if set to true, response will contain input and document level + statistics. + :type show_stats: bool + :param opinion_mining: (Optional) if set to true, response will contain input and document + level statistics including aspect-based sentiment analysis results. + :type opinion_mining: bool + :keyword callable cls: A custom type or function that will be passed the direct response + :return: SentimentResponse, or the result of cls(response) + :rtype: ~azure.ai.textanalytics.v3_1_preview_1.models.SentimentResponse + :raises: ~azure.core.exceptions.HttpResponseError + """ + cls = kwargs.pop('cls', None) # type: ClsType["models.SentimentResponse"] + error_map = {404: ResourceNotFoundError, 409: ResourceExistsError} + error_map.update(kwargs.pop('error_map', {})) + + _input = models.MultiLanguageBatchInput(documents=documents) + content_type = kwargs.pop("content_type", "application/json") + + # Construct URL + url = self.sentiment.metadata['url'] # type: ignore + path_format_arguments = { + 'Endpoint': self._serialize.url("self._config.endpoint", self._config.endpoint, 'str', skip_quote=True), + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} # type: Dict[str, Any] + if model_version is not None: + query_parameters['model-version'] = self._serialize.query("model_version", model_version, 'str') + if show_stats is not None: + query_parameters['showStats'] = self._serialize.query("show_stats", show_stats, 'bool') + if opinion_mining is not None: + query_parameters['opinionMining'] = self._serialize.query("opinion_mining", opinion_mining, 'bool') + + # Construct headers + header_parameters = {} # type: Dict[str, Any] + header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') + header_parameters['Accept'] = 'application/json' + + body_content_kwargs = {} # type: Dict[str, Any] + body_content = self._serialize.body(_input, 'MultiLanguageBatchInput') + body_content_kwargs['content'] = body_content + request = self._client.post(url, query_parameters, header_parameters, **body_content_kwargs) + + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [200]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = self._deserialize(models.TextAnalyticsError, response) + raise HttpResponseError(response=response, model=error) + + deserialized = self._deserialize('SentimentResponse', pipeline_response) + + if cls: + return cls(pipeline_response, deserialized, {}) + + return deserialized + sentiment.metadata = {'url': '/sentiment'} # type: ignore diff --git a/sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_generated/v3_1_preview_1/models/__init__.py b/sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_generated/v3_1_preview_1/models/__init__.py new file mode 100644 index 000000000000..922049608b99 --- /dev/null +++ b/sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_generated/v3_1_preview_1/models/__init__.py @@ -0,0 +1,122 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for license information. +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is regenerated. +# -------------------------------------------------------------------------- + +try: + from ._models_py3 import AspectConfidenceScoreLabel + from ._models_py3 import AspectRelation + from ._models_py3 import DetectedLanguage + from ._models_py3 import DocumentEntities + from ._models_py3 import DocumentError + from ._models_py3 import DocumentKeyPhrases + from ._models_py3 import DocumentLanguage + from ._models_py3 import DocumentLinkedEntities + from ._models_py3 import DocumentSentiment + from ._models_py3 import DocumentStatistics + from ._models_py3 import EntitiesResult + from ._models_py3 import Entity + from ._models_py3 import EntityLinkingResult + from ._models_py3 import InnerError + from ._models_py3 import KeyPhraseResult + from ._models_py3 import LanguageBatchInput + from ._models_py3 import LanguageInput + from ._models_py3 import LanguageResult + from ._models_py3 import LinkedEntity + from ._models_py3 import Match + from ._models_py3 import MultiLanguageBatchInput + from ._models_py3 import MultiLanguageInput + from ._models_py3 import RequestStatistics + from ._models_py3 import SentenceAspect + from ._models_py3 import SentenceOpinion + from ._models_py3 import SentenceSentiment + from ._models_py3 import SentimentConfidenceScorePerLabel + from ._models_py3 import SentimentResponse + from ._models_py3 import TextAnalyticsError + from ._models_py3 import TextAnalyticsWarning +except (SyntaxError, ImportError): + from ._models import AspectConfidenceScoreLabel # type: ignore + from ._models import AspectRelation # type: ignore + from ._models import DetectedLanguage # type: ignore + from ._models import DocumentEntities # type: ignore + from ._models import DocumentError # type: ignore + from ._models import DocumentKeyPhrases # type: ignore + from ._models import DocumentLanguage # type: ignore + from ._models import DocumentLinkedEntities # type: ignore + from ._models import DocumentSentiment # type: ignore + from ._models import DocumentStatistics # type: ignore + from ._models import EntitiesResult # type: ignore + from ._models import Entity # type: ignore + from ._models import EntityLinkingResult # type: ignore + from ._models import InnerError # type: ignore + from ._models import KeyPhraseResult # type: ignore + from ._models import LanguageBatchInput # type: ignore + from ._models import LanguageInput # type: ignore + from ._models import LanguageResult # type: ignore + from ._models import LinkedEntity # type: ignore + from ._models import Match # type: ignore + from ._models import MultiLanguageBatchInput # type: ignore + from ._models import MultiLanguageInput # type: ignore + from ._models import RequestStatistics # type: ignore + from ._models import SentenceAspect # type: ignore + from ._models import SentenceOpinion # type: ignore + from ._models import SentenceSentiment # type: ignore + from ._models import SentimentConfidenceScorePerLabel # type: ignore + from ._models import SentimentResponse # type: ignore + from ._models import TextAnalyticsError # type: ignore + from ._models import TextAnalyticsWarning # type: ignore + +from ._text_analytics_client_enums import ( + AspectRelationType, + DocumentSentimentValue, + ErrorCodeValue, + InnerErrorCodeValue, + SentenceAspectSentiment, + SentenceOpinionSentiment, + SentenceSentimentValue, + WarningCodeValue, +) + +__all__ = [ + 'AspectConfidenceScoreLabel', + 'AspectRelation', + 'DetectedLanguage', + 'DocumentEntities', + 'DocumentError', + 'DocumentKeyPhrases', + 'DocumentLanguage', + 'DocumentLinkedEntities', + 'DocumentSentiment', + 'DocumentStatistics', + 'EntitiesResult', + 'Entity', + 'EntityLinkingResult', + 'InnerError', + 'KeyPhraseResult', + 'LanguageBatchInput', + 'LanguageInput', + 'LanguageResult', + 'LinkedEntity', + 'Match', + 'MultiLanguageBatchInput', + 'MultiLanguageInput', + 'RequestStatistics', + 'SentenceAspect', + 'SentenceOpinion', + 'SentenceSentiment', + 'SentimentConfidenceScorePerLabel', + 'SentimentResponse', + 'TextAnalyticsError', + 'TextAnalyticsWarning', + 'AspectRelationType', + 'DocumentSentimentValue', + 'ErrorCodeValue', + 'InnerErrorCodeValue', + 'SentenceAspectSentiment', + 'SentenceOpinionSentiment', + 'SentenceSentimentValue', + 'WarningCodeValue', +] diff --git a/sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_generated/v3_1_preview_1/models/_models.py b/sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_generated/v3_1_preview_1/models/_models.py new file mode 100644 index 000000000000..30ba7a3aca58 --- /dev/null +++ b/sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_generated/v3_1_preview_1/models/_models.py @@ -0,0 +1,1205 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for license information. +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is regenerated. +# -------------------------------------------------------------------------- + +from azure.core.exceptions import HttpResponseError +import msrest.serialization + + +class AspectConfidenceScoreLabel(msrest.serialization.Model): + """Represents the confidence scores across all sentiment classes: positive, neutral, negative. + + All required parameters must be populated in order to send to Azure. + + :param positive: Required. + :type positive: float + :param negative: Required. + :type negative: float + """ + + _validation = { + 'positive': {'required': True}, + 'negative': {'required': True}, + } + + _attribute_map = { + 'positive': {'key': 'positive', 'type': 'float'}, + 'negative': {'key': 'negative', 'type': 'float'}, + } + + def __init__( + self, + **kwargs + ): + super(AspectConfidenceScoreLabel, self).__init__(**kwargs) + self.positive = kwargs['positive'] + self.negative = kwargs['negative'] + + +class AspectRelation(msrest.serialization.Model): + """AspectRelation. + + All required parameters must be populated in order to send to Azure. + + :param relation_type: Required. The type related to the aspect. Possible values include: + "opinion", "aspect". + :type relation_type: str or ~azure.ai.textanalytics.v3_1_preview_1.models.AspectRelationType + :param ref: Required. The JSON pointer indicating the linked object. + :type ref: str + """ + + _validation = { + 'relation_type': {'required': True}, + 'ref': {'required': True}, + } + + _attribute_map = { + 'relation_type': {'key': 'relationType', 'type': 'str'}, + 'ref': {'key': 'ref', 'type': 'str'}, + } + + def __init__( + self, + **kwargs + ): + super(AspectRelation, self).__init__(**kwargs) + self.relation_type = kwargs['relation_type'] + self.ref = kwargs['ref'] + + +class DetectedLanguage(msrest.serialization.Model): + """DetectedLanguage. + + All required parameters must be populated in order to send to Azure. + + :param name: Required. Long name of a detected language (e.g. English, French). + :type name: str + :param iso6391_name: Required. A two letter representation of the detected language according + to the ISO 639-1 standard (e.g. en, fr). + :type iso6391_name: str + :param confidence_score: Required. A confidence score between 0 and 1. Scores close to 1 + indicate 100% certainty that the identified language is true. + :type confidence_score: float + """ + + _validation = { + 'name': {'required': True}, + 'iso6391_name': {'required': True}, + 'confidence_score': {'required': True}, + } + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + 'iso6391_name': {'key': 'iso6391Name', 'type': 'str'}, + 'confidence_score': {'key': 'confidenceScore', 'type': 'float'}, + } + + def __init__( + self, + **kwargs + ): + super(DetectedLanguage, self).__init__(**kwargs) + self.name = kwargs['name'] + self.iso6391_name = kwargs['iso6391_name'] + self.confidence_score = kwargs['confidence_score'] + + +class DocumentEntities(msrest.serialization.Model): + """DocumentEntities. + + All required parameters must be populated in order to send to Azure. + + :param id: Required. Unique, non-empty document identifier. + :type id: str + :param entities: Required. Recognized entities in the document. + :type entities: list[~azure.ai.textanalytics.v3_1_preview_1.models.Entity] + :param warnings: Required. Warnings encountered while processing document. + :type warnings: list[~azure.ai.textanalytics.v3_1_preview_1.models.TextAnalyticsWarning] + :param statistics: if showStats=true was specified in the request this field will contain + information about the document payload. + :type statistics: ~azure.ai.textanalytics.v3_1_preview_1.models.DocumentStatistics + """ + + _validation = { + 'id': {'required': True}, + 'entities': {'required': True}, + 'warnings': {'required': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'entities': {'key': 'entities', 'type': '[Entity]'}, + 'warnings': {'key': 'warnings', 'type': '[TextAnalyticsWarning]'}, + 'statistics': {'key': 'statistics', 'type': 'DocumentStatistics'}, + } + + def __init__( + self, + **kwargs + ): + super(DocumentEntities, self).__init__(**kwargs) + self.id = kwargs['id'] + self.entities = kwargs['entities'] + self.warnings = kwargs['warnings'] + self.statistics = kwargs.get('statistics', None) + + +class DocumentError(msrest.serialization.Model): + """DocumentError. + + All required parameters must be populated in order to send to Azure. + + :param id: Required. Document Id. + :type id: str + :param error: Required. Document Error. + :type error: ~azure.ai.textanalytics.v3_1_preview_1.models.TextAnalyticsError + """ + + _validation = { + 'id': {'required': True}, + 'error': {'required': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'error': {'key': 'error', 'type': 'TextAnalyticsError'}, + } + + def __init__( + self, + **kwargs + ): + super(DocumentError, self).__init__(**kwargs) + self.id = kwargs['id'] + self.error = kwargs['error'] + + +class DocumentKeyPhrases(msrest.serialization.Model): + """DocumentKeyPhrases. + + All required parameters must be populated in order to send to Azure. + + :param id: Required. Unique, non-empty document identifier. + :type id: str + :param key_phrases: Required. A list of representative words or phrases. The number of key + phrases returned is proportional to the number of words in the input document. + :type key_phrases: list[str] + :param warnings: Required. Warnings encountered while processing document. + :type warnings: list[~azure.ai.textanalytics.v3_1_preview_1.models.TextAnalyticsWarning] + :param statistics: if showStats=true was specified in the request this field will contain + information about the document payload. + :type statistics: ~azure.ai.textanalytics.v3_1_preview_1.models.DocumentStatistics + """ + + _validation = { + 'id': {'required': True}, + 'key_phrases': {'required': True}, + 'warnings': {'required': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'key_phrases': {'key': 'keyPhrases', 'type': '[str]'}, + 'warnings': {'key': 'warnings', 'type': '[TextAnalyticsWarning]'}, + 'statistics': {'key': 'statistics', 'type': 'DocumentStatistics'}, + } + + def __init__( + self, + **kwargs + ): + super(DocumentKeyPhrases, self).__init__(**kwargs) + self.id = kwargs['id'] + self.key_phrases = kwargs['key_phrases'] + self.warnings = kwargs['warnings'] + self.statistics = kwargs.get('statistics', None) + + +class DocumentLanguage(msrest.serialization.Model): + """DocumentLanguage. + + All required parameters must be populated in order to send to Azure. + + :param id: Required. Unique, non-empty document identifier. + :type id: str + :param detected_languages: Required. A list of extracted languages. + :type detected_languages: list[~azure.ai.textanalytics.v3_1_preview_1.models.DetectedLanguage] + :param warnings: Required. Warnings encountered while processing document. + :type warnings: list[~azure.ai.textanalytics.v3_1_preview_1.models.TextAnalyticsWarning] + :param statistics: if showStats=true was specified in the request this field will contain + information about the document payload. + :type statistics: ~azure.ai.textanalytics.v3_1_preview_1.models.DocumentStatistics + """ + + _validation = { + 'id': {'required': True}, + 'detected_languages': {'required': True}, + 'warnings': {'required': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'detected_languages': {'key': 'detectedLanguages', 'type': '[DetectedLanguage]'}, + 'warnings': {'key': 'warnings', 'type': '[TextAnalyticsWarning]'}, + 'statistics': {'key': 'statistics', 'type': 'DocumentStatistics'}, + } + + def __init__( + self, + **kwargs + ): + super(DocumentLanguage, self).__init__(**kwargs) + self.id = kwargs['id'] + self.detected_languages = kwargs['detected_languages'] + self.warnings = kwargs['warnings'] + self.statistics = kwargs.get('statistics', None) + + +class DocumentLinkedEntities(msrest.serialization.Model): + """DocumentLinkedEntities. + + All required parameters must be populated in order to send to Azure. + + :param id: Required. Unique, non-empty document identifier. + :type id: str + :param entities: Required. Recognized well-known entities in the document. + :type entities: list[~azure.ai.textanalytics.v3_1_preview_1.models.LinkedEntity] + :param warnings: Required. Warnings encountered while processing document. + :type warnings: list[~azure.ai.textanalytics.v3_1_preview_1.models.TextAnalyticsWarning] + :param statistics: if showStats=true was specified in the request this field will contain + information about the document payload. + :type statistics: ~azure.ai.textanalytics.v3_1_preview_1.models.DocumentStatistics + """ + + _validation = { + 'id': {'required': True}, + 'entities': {'required': True}, + 'warnings': {'required': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'entities': {'key': 'entities', 'type': '[LinkedEntity]'}, + 'warnings': {'key': 'warnings', 'type': '[TextAnalyticsWarning]'}, + 'statistics': {'key': 'statistics', 'type': 'DocumentStatistics'}, + } + + def __init__( + self, + **kwargs + ): + super(DocumentLinkedEntities, self).__init__(**kwargs) + self.id = kwargs['id'] + self.entities = kwargs['entities'] + self.warnings = kwargs['warnings'] + self.statistics = kwargs.get('statistics', None) + + +class DocumentSentiment(msrest.serialization.Model): + """DocumentSentiment. + + All required parameters must be populated in order to send to Azure. + + :param id: Required. Unique, non-empty document identifier. + :type id: str + :param sentiment: Required. Predicted sentiment for document (Negative, Neutral, Positive, or + Mixed). Possible values include: "positive", "neutral", "negative", "mixed". + :type sentiment: str or ~azure.ai.textanalytics.v3_1_preview_1.models.DocumentSentimentValue + :param statistics: if showStats=true was specified in the request this field will contain + information about the document payload. + :type statistics: ~azure.ai.textanalytics.v3_1_preview_1.models.DocumentStatistics + :param confidence_scores: Required. Document level sentiment confidence scores between 0 and 1 + for each sentiment class. + :type confidence_scores: + ~azure.ai.textanalytics.v3_1_preview_1.models.SentimentConfidenceScorePerLabel + :param sentences: Required. Sentence level sentiment analysis. + :type sentences: list[~azure.ai.textanalytics.v3_1_preview_1.models.SentenceSentiment] + :param warnings: Required. Warnings encountered while processing document. + :type warnings: list[~azure.ai.textanalytics.v3_1_preview_1.models.TextAnalyticsWarning] + """ + + _validation = { + 'id': {'required': True}, + 'sentiment': {'required': True}, + 'confidence_scores': {'required': True}, + 'sentences': {'required': True}, + 'warnings': {'required': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'sentiment': {'key': 'sentiment', 'type': 'str'}, + 'statistics': {'key': 'statistics', 'type': 'DocumentStatistics'}, + 'confidence_scores': {'key': 'confidenceScores', 'type': 'SentimentConfidenceScorePerLabel'}, + 'sentences': {'key': 'sentences', 'type': '[SentenceSentiment]'}, + 'warnings': {'key': 'warnings', 'type': '[TextAnalyticsWarning]'}, + } + + def __init__( + self, + **kwargs + ): + super(DocumentSentiment, self).__init__(**kwargs) + self.id = kwargs['id'] + self.sentiment = kwargs['sentiment'] + self.statistics = kwargs.get('statistics', None) + self.confidence_scores = kwargs['confidence_scores'] + self.sentences = kwargs['sentences'] + self.warnings = kwargs['warnings'] + + +class DocumentStatistics(msrest.serialization.Model): + """if showStats=true was specified in the request this field will contain information about the document payload. + + All required parameters must be populated in order to send to Azure. + + :param characters_count: Required. Number of text elements recognized in the document. + :type characters_count: int + :param transactions_count: Required. Number of transactions for the document. + :type transactions_count: int + """ + + _validation = { + 'characters_count': {'required': True}, + 'transactions_count': {'required': True}, + } + + _attribute_map = { + 'characters_count': {'key': 'charactersCount', 'type': 'int'}, + 'transactions_count': {'key': 'transactionsCount', 'type': 'int'}, + } + + def __init__( + self, + **kwargs + ): + super(DocumentStatistics, self).__init__(**kwargs) + self.characters_count = kwargs['characters_count'] + self.transactions_count = kwargs['transactions_count'] + + +class EntitiesResult(msrest.serialization.Model): + """EntitiesResult. + + All required parameters must be populated in order to send to Azure. + + :param documents: Required. Response by document. + :type documents: list[~azure.ai.textanalytics.v3_1_preview_1.models.DocumentEntities] + :param errors: Required. Errors by document id. + :type errors: list[~azure.ai.textanalytics.v3_1_preview_1.models.DocumentError] + :param statistics: if showStats=true was specified in the request this field will contain + information about the request payload. + :type statistics: ~azure.ai.textanalytics.v3_1_preview_1.models.RequestStatistics + :param model_version: Required. This field indicates which model is used for scoring. + :type model_version: str + """ + + _validation = { + 'documents': {'required': True}, + 'errors': {'required': True}, + 'model_version': {'required': True}, + } + + _attribute_map = { + 'documents': {'key': 'documents', 'type': '[DocumentEntities]'}, + 'errors': {'key': 'errors', 'type': '[DocumentError]'}, + 'statistics': {'key': 'statistics', 'type': 'RequestStatistics'}, + 'model_version': {'key': 'modelVersion', 'type': 'str'}, + } + + def __init__( + self, + **kwargs + ): + super(EntitiesResult, self).__init__(**kwargs) + self.documents = kwargs['documents'] + self.errors = kwargs['errors'] + self.statistics = kwargs.get('statistics', None) + self.model_version = kwargs['model_version'] + + +class Entity(msrest.serialization.Model): + """Entity. + + All required parameters must be populated in order to send to Azure. + + :param text: Required. Entity text as appears in the request. + :type text: str + :param category: Required. Entity type, such as Person/Location/Org/SSN etc. + :type category: str + :param subcategory: Entity sub type, such as Age/Year/TimeRange etc. + :type subcategory: str + :param offset: Required. Start position for the entity text. + :type offset: int + :param length: Required. Length for the entity text. + :type length: int + :param confidence_score: Required. Confidence score between 0 and 1 of the extracted entity. + :type confidence_score: float + """ + + _validation = { + 'text': {'required': True}, + 'category': {'required': True}, + 'offset': {'required': True}, + 'length': {'required': True}, + 'confidence_score': {'required': True}, + } + + _attribute_map = { + 'text': {'key': 'text', 'type': 'str'}, + 'category': {'key': 'category', 'type': 'str'}, + 'subcategory': {'key': 'subcategory', 'type': 'str'}, + 'offset': {'key': 'offset', 'type': 'int'}, + 'length': {'key': 'length', 'type': 'int'}, + 'confidence_score': {'key': 'confidenceScore', 'type': 'float'}, + } + + def __init__( + self, + **kwargs + ): + super(Entity, self).__init__(**kwargs) + self.text = kwargs['text'] + self.category = kwargs['category'] + self.subcategory = kwargs.get('subcategory', None) + self.offset = kwargs['offset'] + self.length = kwargs['length'] + self.confidence_score = kwargs['confidence_score'] + + +class EntityLinkingResult(msrest.serialization.Model): + """EntityLinkingResult. + + All required parameters must be populated in order to send to Azure. + + :param documents: Required. Response by document. + :type documents: list[~azure.ai.textanalytics.v3_1_preview_1.models.DocumentLinkedEntities] + :param errors: Required. Errors by document id. + :type errors: list[~azure.ai.textanalytics.v3_1_preview_1.models.DocumentError] + :param statistics: if showStats=true was specified in the request this field will contain + information about the request payload. + :type statistics: ~azure.ai.textanalytics.v3_1_preview_1.models.RequestStatistics + :param model_version: Required. This field indicates which model is used for scoring. + :type model_version: str + """ + + _validation = { + 'documents': {'required': True}, + 'errors': {'required': True}, + 'model_version': {'required': True}, + } + + _attribute_map = { + 'documents': {'key': 'documents', 'type': '[DocumentLinkedEntities]'}, + 'errors': {'key': 'errors', 'type': '[DocumentError]'}, + 'statistics': {'key': 'statistics', 'type': 'RequestStatistics'}, + 'model_version': {'key': 'modelVersion', 'type': 'str'}, + } + + def __init__( + self, + **kwargs + ): + super(EntityLinkingResult, self).__init__(**kwargs) + self.documents = kwargs['documents'] + self.errors = kwargs['errors'] + self.statistics = kwargs.get('statistics', None) + self.model_version = kwargs['model_version'] + + +class InnerError(msrest.serialization.Model): + """InnerError. + + All required parameters must be populated in order to send to Azure. + + :param code: Required. Error code. Possible values include: "invalidParameterValue", + "invalidRequestBodyFormat", "emptyRequest", "missingInputRecords", "invalidDocument", + "modelVersionIncorrect", "invalidDocumentBatch", "unsupportedLanguageCode", + "invalidCountryHint". + :type code: str or ~azure.ai.textanalytics.v3_1_preview_1.models.InnerErrorCodeValue + :param message: Required. Error message. + :type message: str + :param details: Error details. + :type details: dict[str, str] + :param target: Error target. + :type target: str + :param innererror: Inner error contains more specific information. + :type innererror: ~azure.ai.textanalytics.v3_1_preview_1.models.InnerError + """ + + _validation = { + 'code': {'required': True}, + 'message': {'required': True}, + } + + _attribute_map = { + 'code': {'key': 'code', 'type': 'str'}, + 'message': {'key': 'message', 'type': 'str'}, + 'details': {'key': 'details', 'type': '{str}'}, + 'target': {'key': 'target', 'type': 'str'}, + 'innererror': {'key': 'innererror', 'type': 'InnerError'}, + } + + def __init__( + self, + **kwargs + ): + super(InnerError, self).__init__(**kwargs) + self.code = kwargs['code'] + self.message = kwargs['message'] + self.details = kwargs.get('details', None) + self.target = kwargs.get('target', None) + self.innererror = kwargs.get('innererror', None) + + +class KeyPhraseResult(msrest.serialization.Model): + """KeyPhraseResult. + + All required parameters must be populated in order to send to Azure. + + :param documents: Required. Response by document. + :type documents: list[~azure.ai.textanalytics.v3_1_preview_1.models.DocumentKeyPhrases] + :param errors: Required. Errors by document id. + :type errors: list[~azure.ai.textanalytics.v3_1_preview_1.models.DocumentError] + :param statistics: if showStats=true was specified in the request this field will contain + information about the request payload. + :type statistics: ~azure.ai.textanalytics.v3_1_preview_1.models.RequestStatistics + :param model_version: Required. This field indicates which model is used for scoring. + :type model_version: str + """ + + _validation = { + 'documents': {'required': True}, + 'errors': {'required': True}, + 'model_version': {'required': True}, + } + + _attribute_map = { + 'documents': {'key': 'documents', 'type': '[DocumentKeyPhrases]'}, + 'errors': {'key': 'errors', 'type': '[DocumentError]'}, + 'statistics': {'key': 'statistics', 'type': 'RequestStatistics'}, + 'model_version': {'key': 'modelVersion', 'type': 'str'}, + } + + def __init__( + self, + **kwargs + ): + super(KeyPhraseResult, self).__init__(**kwargs) + self.documents = kwargs['documents'] + self.errors = kwargs['errors'] + self.statistics = kwargs.get('statistics', None) + self.model_version = kwargs['model_version'] + + +class LanguageBatchInput(msrest.serialization.Model): + """LanguageBatchInput. + + All required parameters must be populated in order to send to Azure. + + :param documents: Required. + :type documents: list[~azure.ai.textanalytics.v3_1_preview_1.models.LanguageInput] + """ + + _validation = { + 'documents': {'required': True}, + } + + _attribute_map = { + 'documents': {'key': 'documents', 'type': '[LanguageInput]'}, + } + + def __init__( + self, + **kwargs + ): + super(LanguageBatchInput, self).__init__(**kwargs) + self.documents = kwargs['documents'] + + +class LanguageInput(msrest.serialization.Model): + """LanguageInput. + + All required parameters must be populated in order to send to Azure. + + :param id: Required. Unique, non-empty document identifier. + :type id: str + :param text: Required. + :type text: str + :param country_hint: + :type country_hint: str + """ + + _validation = { + 'id': {'required': True}, + 'text': {'required': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'text': {'key': 'text', 'type': 'str'}, + 'country_hint': {'key': 'countryHint', 'type': 'str'}, + } + + def __init__( + self, + **kwargs + ): + super(LanguageInput, self).__init__(**kwargs) + self.id = kwargs['id'] + self.text = kwargs['text'] + self.country_hint = kwargs.get('country_hint', None) + + +class LanguageResult(msrest.serialization.Model): + """LanguageResult. + + All required parameters must be populated in order to send to Azure. + + :param documents: Required. Response by document. + :type documents: list[~azure.ai.textanalytics.v3_1_preview_1.models.DocumentLanguage] + :param errors: Required. Errors by document id. + :type errors: list[~azure.ai.textanalytics.v3_1_preview_1.models.DocumentError] + :param statistics: if showStats=true was specified in the request this field will contain + information about the request payload. + :type statistics: ~azure.ai.textanalytics.v3_1_preview_1.models.RequestStatistics + :param model_version: Required. This field indicates which model is used for scoring. + :type model_version: str + """ + + _validation = { + 'documents': {'required': True}, + 'errors': {'required': True}, + 'model_version': {'required': True}, + } + + _attribute_map = { + 'documents': {'key': 'documents', 'type': '[DocumentLanguage]'}, + 'errors': {'key': 'errors', 'type': '[DocumentError]'}, + 'statistics': {'key': 'statistics', 'type': 'RequestStatistics'}, + 'model_version': {'key': 'modelVersion', 'type': 'str'}, + } + + def __init__( + self, + **kwargs + ): + super(LanguageResult, self).__init__(**kwargs) + self.documents = kwargs['documents'] + self.errors = kwargs['errors'] + self.statistics = kwargs.get('statistics', None) + self.model_version = kwargs['model_version'] + + +class LinkedEntity(msrest.serialization.Model): + """LinkedEntity. + + All required parameters must be populated in order to send to Azure. + + :param name: Required. Entity Linking formal name. + :type name: str + :param matches: Required. List of instances this entity appears in the text. + :type matches: list[~azure.ai.textanalytics.v3_1_preview_1.models.Match] + :param language: Required. Language used in the data source. + :type language: str + :param id: Unique identifier of the recognized entity from the data source. + :type id: str + :param url: Required. URL for the entity's page from the data source. + :type url: str + :param data_source: Required. Data source used to extract entity linking, such as Wiki/Bing + etc. + :type data_source: str + """ + + _validation = { + 'name': {'required': True}, + 'matches': {'required': True}, + 'language': {'required': True}, + 'url': {'required': True}, + 'data_source': {'required': True}, + } + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + 'matches': {'key': 'matches', 'type': '[Match]'}, + 'language': {'key': 'language', 'type': 'str'}, + 'id': {'key': 'id', 'type': 'str'}, + 'url': {'key': 'url', 'type': 'str'}, + 'data_source': {'key': 'dataSource', 'type': 'str'}, + } + + def __init__( + self, + **kwargs + ): + super(LinkedEntity, self).__init__(**kwargs) + self.name = kwargs['name'] + self.matches = kwargs['matches'] + self.language = kwargs['language'] + self.id = kwargs.get('id', None) + self.url = kwargs['url'] + self.data_source = kwargs['data_source'] + + +class Match(msrest.serialization.Model): + """Match. + + All required parameters must be populated in order to send to Azure. + + :param confidence_score: Required. If a well-known item is recognized, a decimal number + denoting the confidence level between 0 and 1 will be returned. + :type confidence_score: float + :param text: Required. Entity text as appears in the request. + :type text: str + :param offset: Required. Start position for the entity match text. + :type offset: int + :param length: Required. Length for the entity match text. + :type length: int + """ + + _validation = { + 'confidence_score': {'required': True}, + 'text': {'required': True}, + 'offset': {'required': True}, + 'length': {'required': True}, + } + + _attribute_map = { + 'confidence_score': {'key': 'confidenceScore', 'type': 'float'}, + 'text': {'key': 'text', 'type': 'str'}, + 'offset': {'key': 'offset', 'type': 'int'}, + 'length': {'key': 'length', 'type': 'int'}, + } + + def __init__( + self, + **kwargs + ): + super(Match, self).__init__(**kwargs) + self.confidence_score = kwargs['confidence_score'] + self.text = kwargs['text'] + self.offset = kwargs['offset'] + self.length = kwargs['length'] + + +class MultiLanguageBatchInput(msrest.serialization.Model): + """Contains a set of input documents to be analyzed by the service. + + All required parameters must be populated in order to send to Azure. + + :param documents: Required. The set of documents to process as part of this batch. + :type documents: list[~azure.ai.textanalytics.v3_1_preview_1.models.MultiLanguageInput] + """ + + _validation = { + 'documents': {'required': True}, + } + + _attribute_map = { + 'documents': {'key': 'documents', 'type': '[MultiLanguageInput]'}, + } + + def __init__( + self, + **kwargs + ): + super(MultiLanguageBatchInput, self).__init__(**kwargs) + self.documents = kwargs['documents'] + + +class MultiLanguageInput(msrest.serialization.Model): + """Contains an input document to be analyzed by the service. + + All required parameters must be populated in order to send to Azure. + + :param id: Required. A unique, non-empty document identifier. + :type id: str + :param text: Required. The input text to process. + :type text: str + :param language: (Optional) This is the 2 letter ISO 639-1 representation of a language. For + example, use "en" for English; "es" for Spanish etc. If not set, use "en" for English as + default. + :type language: str + """ + + _validation = { + 'id': {'required': True}, + 'text': {'required': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'text': {'key': 'text', 'type': 'str'}, + 'language': {'key': 'language', 'type': 'str'}, + } + + def __init__( + self, + **kwargs + ): + super(MultiLanguageInput, self).__init__(**kwargs) + self.id = kwargs['id'] + self.text = kwargs['text'] + self.language = kwargs.get('language', None) + + +class RequestStatistics(msrest.serialization.Model): + """if showStats=true was specified in the request this field will contain information about the request payload. + + All required parameters must be populated in order to send to Azure. + + :param documents_count: Required. Number of documents submitted in the request. + :type documents_count: int + :param valid_documents_count: Required. Number of valid documents. This excludes empty, over- + size limit or non-supported languages documents. + :type valid_documents_count: int + :param erroneous_documents_count: Required. Number of invalid documents. This includes empty, + over-size limit or non-supported languages documents. + :type erroneous_documents_count: int + :param transactions_count: Required. Number of transactions for the request. + :type transactions_count: long + """ + + _validation = { + 'documents_count': {'required': True}, + 'valid_documents_count': {'required': True}, + 'erroneous_documents_count': {'required': True}, + 'transactions_count': {'required': True}, + } + + _attribute_map = { + 'documents_count': {'key': 'documentsCount', 'type': 'int'}, + 'valid_documents_count': {'key': 'validDocumentsCount', 'type': 'int'}, + 'erroneous_documents_count': {'key': 'erroneousDocumentsCount', 'type': 'int'}, + 'transactions_count': {'key': 'transactionsCount', 'type': 'long'}, + } + + def __init__( + self, + **kwargs + ): + super(RequestStatistics, self).__init__(**kwargs) + self.documents_count = kwargs['documents_count'] + self.valid_documents_count = kwargs['valid_documents_count'] + self.erroneous_documents_count = kwargs['erroneous_documents_count'] + self.transactions_count = kwargs['transactions_count'] + + +class SentenceAspect(msrest.serialization.Model): + """SentenceAspect. + + All required parameters must be populated in order to send to Azure. + + :param sentiment: Required. Aspect level sentiment for the aspect in the sentence. Possible + values include: "positive", "mixed", "negative". + :type sentiment: str or ~azure.ai.textanalytics.v3_1_preview_1.models.SentenceAspectSentiment + :param confidence_scores: Required. Aspect level sentiment confidence scores for the aspect in + the sentence. + :type confidence_scores: + ~azure.ai.textanalytics.v3_1_preview_1.models.AspectConfidenceScoreLabel + :param offset: Required. The aspect offset from the start of the sentence. + :type offset: int + :param length: Required. The length of the aspect. + :type length: int + :param text: Required. The aspect text detected. + :type text: str + :param relations: Required. The array of either opinion or aspect object which is related to + the aspect. + :type relations: list[~azure.ai.textanalytics.v3_1_preview_1.models.AspectRelation] + """ + + _validation = { + 'sentiment': {'required': True}, + 'confidence_scores': {'required': True}, + 'offset': {'required': True}, + 'length': {'required': True}, + 'text': {'required': True}, + 'relations': {'required': True}, + } + + _attribute_map = { + 'sentiment': {'key': 'sentiment', 'type': 'str'}, + 'confidence_scores': {'key': 'confidenceScores', 'type': 'AspectConfidenceScoreLabel'}, + 'offset': {'key': 'offset', 'type': 'int'}, + 'length': {'key': 'length', 'type': 'int'}, + 'text': {'key': 'text', 'type': 'str'}, + 'relations': {'key': 'relations', 'type': '[AspectRelation]'}, + } + + def __init__( + self, + **kwargs + ): + super(SentenceAspect, self).__init__(**kwargs) + self.sentiment = kwargs['sentiment'] + self.confidence_scores = kwargs['confidence_scores'] + self.offset = kwargs['offset'] + self.length = kwargs['length'] + self.text = kwargs['text'] + self.relations = kwargs['relations'] + + +class SentenceOpinion(msrest.serialization.Model): + """SentenceOpinion. + + All required parameters must be populated in order to send to Azure. + + :param sentiment: Required. Opinion level sentiment for the aspect in the sentence. Possible + values include: "positive", "mixed", "negative". + :type sentiment: str or ~azure.ai.textanalytics.v3_1_preview_1.models.SentenceOpinionSentiment + :param confidence_scores: Required. Opinion level sentiment confidence scores for the aspect in + the sentence. + :type confidence_scores: + ~azure.ai.textanalytics.v3_1_preview_1.models.AspectConfidenceScoreLabel + :param offset: Required. The opinion offset from the start of the sentence. + :type offset: int + :param length: Required. The length of the opinion. + :type length: int + :param text: Required. The aspect text detected. + :type text: str + :param is_negated: Required. The indicator representing if the opinion is negated. + :type is_negated: bool + """ + + _validation = { + 'sentiment': {'required': True}, + 'confidence_scores': {'required': True}, + 'offset': {'required': True}, + 'length': {'required': True}, + 'text': {'required': True}, + 'is_negated': {'required': True}, + } + + _attribute_map = { + 'sentiment': {'key': 'sentiment', 'type': 'str'}, + 'confidence_scores': {'key': 'confidenceScores', 'type': 'AspectConfidenceScoreLabel'}, + 'offset': {'key': 'offset', 'type': 'int'}, + 'length': {'key': 'length', 'type': 'int'}, + 'text': {'key': 'text', 'type': 'str'}, + 'is_negated': {'key': 'isNegated', 'type': 'bool'}, + } + + def __init__( + self, + **kwargs + ): + super(SentenceOpinion, self).__init__(**kwargs) + self.sentiment = kwargs['sentiment'] + self.confidence_scores = kwargs['confidence_scores'] + self.offset = kwargs['offset'] + self.length = kwargs['length'] + self.text = kwargs['text'] + self.is_negated = kwargs['is_negated'] + + +class SentenceSentiment(msrest.serialization.Model): + """SentenceSentiment. + + All required parameters must be populated in order to send to Azure. + + :param text: Required. The sentence text. + :type text: str + :param sentiment: Required. The predicted Sentiment for the sentence. Possible values include: + "positive", "neutral", "negative". + :type sentiment: str or ~azure.ai.textanalytics.v3_1_preview_1.models.SentenceSentimentValue + :param confidence_scores: Required. The sentiment confidence score between 0 and 1 for the + sentence for all classes. + :type confidence_scores: + ~azure.ai.textanalytics.v3_1_preview_1.models.SentimentConfidenceScorePerLabel + :param offset: Required. The sentence offset from the start of the document. + :type offset: int + :param length: Required. The length of the sentence. + :type length: int + :param aspects: The array of aspect object for the sentence. + :type aspects: list[~azure.ai.textanalytics.v3_1_preview_1.models.SentenceAspect] + :param opinions: The array of opinion object for the sentence. + :type opinions: list[~azure.ai.textanalytics.v3_1_preview_1.models.SentenceOpinion] + """ + + _validation = { + 'text': {'required': True}, + 'sentiment': {'required': True}, + 'confidence_scores': {'required': True}, + 'offset': {'required': True}, + 'length': {'required': True}, + } + + _attribute_map = { + 'text': {'key': 'text', 'type': 'str'}, + 'sentiment': {'key': 'sentiment', 'type': 'str'}, + 'confidence_scores': {'key': 'confidenceScores', 'type': 'SentimentConfidenceScorePerLabel'}, + 'offset': {'key': 'offset', 'type': 'int'}, + 'length': {'key': 'length', 'type': 'int'}, + 'aspects': {'key': 'aspects', 'type': '[SentenceAspect]'}, + 'opinions': {'key': 'opinions', 'type': '[SentenceOpinion]'}, + } + + def __init__( + self, + **kwargs + ): + super(SentenceSentiment, self).__init__(**kwargs) + self.text = kwargs['text'] + self.sentiment = kwargs['sentiment'] + self.confidence_scores = kwargs['confidence_scores'] + self.offset = kwargs['offset'] + self.length = kwargs['length'] + self.aspects = kwargs.get('aspects', None) + self.opinions = kwargs.get('opinions', None) + + +class SentimentConfidenceScorePerLabel(msrest.serialization.Model): + """Represents the confidence scores between 0 and 1 across all sentiment classes: positive, neutral, negative. + + All required parameters must be populated in order to send to Azure. + + :param positive: Required. + :type positive: float + :param neutral: Required. + :type neutral: float + :param negative: Required. + :type negative: float + """ + + _validation = { + 'positive': {'required': True}, + 'neutral': {'required': True}, + 'negative': {'required': True}, + } + + _attribute_map = { + 'positive': {'key': 'positive', 'type': 'float'}, + 'neutral': {'key': 'neutral', 'type': 'float'}, + 'negative': {'key': 'negative', 'type': 'float'}, + } + + def __init__( + self, + **kwargs + ): + super(SentimentConfidenceScorePerLabel, self).__init__(**kwargs) + self.positive = kwargs['positive'] + self.neutral = kwargs['neutral'] + self.negative = kwargs['negative'] + + +class SentimentResponse(msrest.serialization.Model): + """SentimentResponse. + + All required parameters must be populated in order to send to Azure. + + :param documents: Required. Sentiment analysis per document. + :type documents: list[~azure.ai.textanalytics.v3_1_preview_1.models.DocumentSentiment] + :param errors: Required. Errors by document id. + :type errors: list[~azure.ai.textanalytics.v3_1_preview_1.models.DocumentError] + :param statistics: if showStats=true was specified in the request this field will contain + information about the request payload. + :type statistics: ~azure.ai.textanalytics.v3_1_preview_1.models.RequestStatistics + :param model_version: Required. This field indicates which model is used for scoring. + :type model_version: str + """ + + _validation = { + 'documents': {'required': True}, + 'errors': {'required': True}, + 'model_version': {'required': True}, + } + + _attribute_map = { + 'documents': {'key': 'documents', 'type': '[DocumentSentiment]'}, + 'errors': {'key': 'errors', 'type': '[DocumentError]'}, + 'statistics': {'key': 'statistics', 'type': 'RequestStatistics'}, + 'model_version': {'key': 'modelVersion', 'type': 'str'}, + } + + def __init__( + self, + **kwargs + ): + super(SentimentResponse, self).__init__(**kwargs) + self.documents = kwargs['documents'] + self.errors = kwargs['errors'] + self.statistics = kwargs.get('statistics', None) + self.model_version = kwargs['model_version'] + + +class TextAnalyticsError(msrest.serialization.Model): + """TextAnalyticsError. + + All required parameters must be populated in order to send to Azure. + + :param code: Required. Error code. Possible values include: "invalidRequest", + "invalidArgument", "internalServerError", "serviceUnavailable". + :type code: str or ~azure.ai.textanalytics.v3_1_preview_1.models.ErrorCodeValue + :param message: Required. Error message. + :type message: str + :param target: Error target. + :type target: str + :param innererror: Inner error contains more specific information. + :type innererror: ~azure.ai.textanalytics.v3_1_preview_1.models.InnerError + :param details: Details about specific errors that led to this reported error. + :type details: list[~azure.ai.textanalytics.v3_1_preview_1.models.TextAnalyticsError] + """ + + _validation = { + 'code': {'required': True}, + 'message': {'required': True}, + } + + _attribute_map = { + 'code': {'key': 'code', 'type': 'str'}, + 'message': {'key': 'message', 'type': 'str'}, + 'target': {'key': 'target', 'type': 'str'}, + 'innererror': {'key': 'innererror', 'type': 'InnerError'}, + 'details': {'key': 'details', 'type': '[TextAnalyticsError]'}, + } + + def __init__( + self, + **kwargs + ): + super(TextAnalyticsError, self).__init__(**kwargs) + self.code = kwargs['code'] + self.message = kwargs['message'] + self.target = kwargs.get('target', None) + self.innererror = kwargs.get('innererror', None) + self.details = kwargs.get('details', None) + + +class TextAnalyticsWarning(msrest.serialization.Model): + """TextAnalyticsWarning. + + All required parameters must be populated in order to send to Azure. + + :param code: Required. Error code. Possible values include: "LongWordsInDocument", + "DocumentTruncated". + :type code: str or ~azure.ai.textanalytics.v3_1_preview_1.models.WarningCodeValue + :param message: Required. Warning message. + :type message: str + :param target_ref: A JSON pointer reference indicating the target object. + :type target_ref: str + """ + + _validation = { + 'code': {'required': True}, + 'message': {'required': True}, + } + + _attribute_map = { + 'code': {'key': 'code', 'type': 'str'}, + 'message': {'key': 'message', 'type': 'str'}, + 'target_ref': {'key': 'targetRef', 'type': 'str'}, + } + + def __init__( + self, + **kwargs + ): + super(TextAnalyticsWarning, self).__init__(**kwargs) + self.code = kwargs['code'] + self.message = kwargs['message'] + self.target_ref = kwargs.get('target_ref', None) diff --git a/sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_generated/v3_1_preview_1/models/_models_py3.py b/sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_generated/v3_1_preview_1/models/_models_py3.py new file mode 100644 index 000000000000..26b402385095 --- /dev/null +++ b/sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_generated/v3_1_preview_1/models/_models_py3.py @@ -0,0 +1,1355 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for license information. +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is regenerated. +# -------------------------------------------------------------------------- + +from typing import Dict, List, Optional, Union + +from azure.core.exceptions import HttpResponseError +import msrest.serialization + +from ._text_analytics_client_enums import * + + +class AspectConfidenceScoreLabel(msrest.serialization.Model): + """Represents the confidence scores across all sentiment classes: positive, neutral, negative. + + All required parameters must be populated in order to send to Azure. + + :param positive: Required. + :type positive: float + :param negative: Required. + :type negative: float + """ + + _validation = { + 'positive': {'required': True}, + 'negative': {'required': True}, + } + + _attribute_map = { + 'positive': {'key': 'positive', 'type': 'float'}, + 'negative': {'key': 'negative', 'type': 'float'}, + } + + def __init__( + self, + *, + positive: float, + negative: float, + **kwargs + ): + super(AspectConfidenceScoreLabel, self).__init__(**kwargs) + self.positive = positive + self.negative = negative + + +class AspectRelation(msrest.serialization.Model): + """AspectRelation. + + All required parameters must be populated in order to send to Azure. + + :param relation_type: Required. The type related to the aspect. Possible values include: + "opinion", "aspect". + :type relation_type: str or ~azure.ai.textanalytics.v3_1_preview_1.models.AspectRelationType + :param ref: Required. The JSON pointer indicating the linked object. + :type ref: str + """ + + _validation = { + 'relation_type': {'required': True}, + 'ref': {'required': True}, + } + + _attribute_map = { + 'relation_type': {'key': 'relationType', 'type': 'str'}, + 'ref': {'key': 'ref', 'type': 'str'}, + } + + def __init__( + self, + *, + relation_type: Union[str, "AspectRelationType"], + ref: str, + **kwargs + ): + super(AspectRelation, self).__init__(**kwargs) + self.relation_type = relation_type + self.ref = ref + + +class DetectedLanguage(msrest.serialization.Model): + """DetectedLanguage. + + All required parameters must be populated in order to send to Azure. + + :param name: Required. Long name of a detected language (e.g. English, French). + :type name: str + :param iso6391_name: Required. A two letter representation of the detected language according + to the ISO 639-1 standard (e.g. en, fr). + :type iso6391_name: str + :param confidence_score: Required. A confidence score between 0 and 1. Scores close to 1 + indicate 100% certainty that the identified language is true. + :type confidence_score: float + """ + + _validation = { + 'name': {'required': True}, + 'iso6391_name': {'required': True}, + 'confidence_score': {'required': True}, + } + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + 'iso6391_name': {'key': 'iso6391Name', 'type': 'str'}, + 'confidence_score': {'key': 'confidenceScore', 'type': 'float'}, + } + + def __init__( + self, + *, + name: str, + iso6391_name: str, + confidence_score: float, + **kwargs + ): + super(DetectedLanguage, self).__init__(**kwargs) + self.name = name + self.iso6391_name = iso6391_name + self.confidence_score = confidence_score + + +class DocumentEntities(msrest.serialization.Model): + """DocumentEntities. + + All required parameters must be populated in order to send to Azure. + + :param id: Required. Unique, non-empty document identifier. + :type id: str + :param entities: Required. Recognized entities in the document. + :type entities: list[~azure.ai.textanalytics.v3_1_preview_1.models.Entity] + :param warnings: Required. Warnings encountered while processing document. + :type warnings: list[~azure.ai.textanalytics.v3_1_preview_1.models.TextAnalyticsWarning] + :param statistics: if showStats=true was specified in the request this field will contain + information about the document payload. + :type statistics: ~azure.ai.textanalytics.v3_1_preview_1.models.DocumentStatistics + """ + + _validation = { + 'id': {'required': True}, + 'entities': {'required': True}, + 'warnings': {'required': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'entities': {'key': 'entities', 'type': '[Entity]'}, + 'warnings': {'key': 'warnings', 'type': '[TextAnalyticsWarning]'}, + 'statistics': {'key': 'statistics', 'type': 'DocumentStatistics'}, + } + + def __init__( + self, + *, + id: str, + entities: List["Entity"], + warnings: List["TextAnalyticsWarning"], + statistics: Optional["DocumentStatistics"] = None, + **kwargs + ): + super(DocumentEntities, self).__init__(**kwargs) + self.id = id + self.entities = entities + self.warnings = warnings + self.statistics = statistics + + +class DocumentError(msrest.serialization.Model): + """DocumentError. + + All required parameters must be populated in order to send to Azure. + + :param id: Required. Document Id. + :type id: str + :param error: Required. Document Error. + :type error: ~azure.ai.textanalytics.v3_1_preview_1.models.TextAnalyticsError + """ + + _validation = { + 'id': {'required': True}, + 'error': {'required': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'error': {'key': 'error', 'type': 'TextAnalyticsError'}, + } + + def __init__( + self, + *, + id: str, + error: "TextAnalyticsError", + **kwargs + ): + super(DocumentError, self).__init__(**kwargs) + self.id = id + self.error = error + + +class DocumentKeyPhrases(msrest.serialization.Model): + """DocumentKeyPhrases. + + All required parameters must be populated in order to send to Azure. + + :param id: Required. Unique, non-empty document identifier. + :type id: str + :param key_phrases: Required. A list of representative words or phrases. The number of key + phrases returned is proportional to the number of words in the input document. + :type key_phrases: list[str] + :param warnings: Required. Warnings encountered while processing document. + :type warnings: list[~azure.ai.textanalytics.v3_1_preview_1.models.TextAnalyticsWarning] + :param statistics: if showStats=true was specified in the request this field will contain + information about the document payload. + :type statistics: ~azure.ai.textanalytics.v3_1_preview_1.models.DocumentStatistics + """ + + _validation = { + 'id': {'required': True}, + 'key_phrases': {'required': True}, + 'warnings': {'required': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'key_phrases': {'key': 'keyPhrases', 'type': '[str]'}, + 'warnings': {'key': 'warnings', 'type': '[TextAnalyticsWarning]'}, + 'statistics': {'key': 'statistics', 'type': 'DocumentStatistics'}, + } + + def __init__( + self, + *, + id: str, + key_phrases: List[str], + warnings: List["TextAnalyticsWarning"], + statistics: Optional["DocumentStatistics"] = None, + **kwargs + ): + super(DocumentKeyPhrases, self).__init__(**kwargs) + self.id = id + self.key_phrases = key_phrases + self.warnings = warnings + self.statistics = statistics + + +class DocumentLanguage(msrest.serialization.Model): + """DocumentLanguage. + + All required parameters must be populated in order to send to Azure. + + :param id: Required. Unique, non-empty document identifier. + :type id: str + :param detected_languages: Required. A list of extracted languages. + :type detected_languages: list[~azure.ai.textanalytics.v3_1_preview_1.models.DetectedLanguage] + :param warnings: Required. Warnings encountered while processing document. + :type warnings: list[~azure.ai.textanalytics.v3_1_preview_1.models.TextAnalyticsWarning] + :param statistics: if showStats=true was specified in the request this field will contain + information about the document payload. + :type statistics: ~azure.ai.textanalytics.v3_1_preview_1.models.DocumentStatistics + """ + + _validation = { + 'id': {'required': True}, + 'detected_languages': {'required': True}, + 'warnings': {'required': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'detected_languages': {'key': 'detectedLanguages', 'type': '[DetectedLanguage]'}, + 'warnings': {'key': 'warnings', 'type': '[TextAnalyticsWarning]'}, + 'statistics': {'key': 'statistics', 'type': 'DocumentStatistics'}, + } + + def __init__( + self, + *, + id: str, + detected_languages: List["DetectedLanguage"], + warnings: List["TextAnalyticsWarning"], + statistics: Optional["DocumentStatistics"] = None, + **kwargs + ): + super(DocumentLanguage, self).__init__(**kwargs) + self.id = id + self.detected_languages = detected_languages + self.warnings = warnings + self.statistics = statistics + + +class DocumentLinkedEntities(msrest.serialization.Model): + """DocumentLinkedEntities. + + All required parameters must be populated in order to send to Azure. + + :param id: Required. Unique, non-empty document identifier. + :type id: str + :param entities: Required. Recognized well-known entities in the document. + :type entities: list[~azure.ai.textanalytics.v3_1_preview_1.models.LinkedEntity] + :param warnings: Required. Warnings encountered while processing document. + :type warnings: list[~azure.ai.textanalytics.v3_1_preview_1.models.TextAnalyticsWarning] + :param statistics: if showStats=true was specified in the request this field will contain + information about the document payload. + :type statistics: ~azure.ai.textanalytics.v3_1_preview_1.models.DocumentStatistics + """ + + _validation = { + 'id': {'required': True}, + 'entities': {'required': True}, + 'warnings': {'required': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'entities': {'key': 'entities', 'type': '[LinkedEntity]'}, + 'warnings': {'key': 'warnings', 'type': '[TextAnalyticsWarning]'}, + 'statistics': {'key': 'statistics', 'type': 'DocumentStatistics'}, + } + + def __init__( + self, + *, + id: str, + entities: List["LinkedEntity"], + warnings: List["TextAnalyticsWarning"], + statistics: Optional["DocumentStatistics"] = None, + **kwargs + ): + super(DocumentLinkedEntities, self).__init__(**kwargs) + self.id = id + self.entities = entities + self.warnings = warnings + self.statistics = statistics + + +class DocumentSentiment(msrest.serialization.Model): + """DocumentSentiment. + + All required parameters must be populated in order to send to Azure. + + :param id: Required. Unique, non-empty document identifier. + :type id: str + :param sentiment: Required. Predicted sentiment for document (Negative, Neutral, Positive, or + Mixed). Possible values include: "positive", "neutral", "negative", "mixed". + :type sentiment: str or ~azure.ai.textanalytics.v3_1_preview_1.models.DocumentSentimentValue + :param statistics: if showStats=true was specified in the request this field will contain + information about the document payload. + :type statistics: ~azure.ai.textanalytics.v3_1_preview_1.models.DocumentStatistics + :param confidence_scores: Required. Document level sentiment confidence scores between 0 and 1 + for each sentiment class. + :type confidence_scores: + ~azure.ai.textanalytics.v3_1_preview_1.models.SentimentConfidenceScorePerLabel + :param sentences: Required. Sentence level sentiment analysis. + :type sentences: list[~azure.ai.textanalytics.v3_1_preview_1.models.SentenceSentiment] + :param warnings: Required. Warnings encountered while processing document. + :type warnings: list[~azure.ai.textanalytics.v3_1_preview_1.models.TextAnalyticsWarning] + """ + + _validation = { + 'id': {'required': True}, + 'sentiment': {'required': True}, + 'confidence_scores': {'required': True}, + 'sentences': {'required': True}, + 'warnings': {'required': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'sentiment': {'key': 'sentiment', 'type': 'str'}, + 'statistics': {'key': 'statistics', 'type': 'DocumentStatistics'}, + 'confidence_scores': {'key': 'confidenceScores', 'type': 'SentimentConfidenceScorePerLabel'}, + 'sentences': {'key': 'sentences', 'type': '[SentenceSentiment]'}, + 'warnings': {'key': 'warnings', 'type': '[TextAnalyticsWarning]'}, + } + + def __init__( + self, + *, + id: str, + sentiment: Union[str, "DocumentSentimentValue"], + confidence_scores: "SentimentConfidenceScorePerLabel", + sentences: List["SentenceSentiment"], + warnings: List["TextAnalyticsWarning"], + statistics: Optional["DocumentStatistics"] = None, + **kwargs + ): + super(DocumentSentiment, self).__init__(**kwargs) + self.id = id + self.sentiment = sentiment + self.statistics = statistics + self.confidence_scores = confidence_scores + self.sentences = sentences + self.warnings = warnings + + +class DocumentStatistics(msrest.serialization.Model): + """if showStats=true was specified in the request this field will contain information about the document payload. + + All required parameters must be populated in order to send to Azure. + + :param characters_count: Required. Number of text elements recognized in the document. + :type characters_count: int + :param transactions_count: Required. Number of transactions for the document. + :type transactions_count: int + """ + + _validation = { + 'characters_count': {'required': True}, + 'transactions_count': {'required': True}, + } + + _attribute_map = { + 'characters_count': {'key': 'charactersCount', 'type': 'int'}, + 'transactions_count': {'key': 'transactionsCount', 'type': 'int'}, + } + + def __init__( + self, + *, + characters_count: int, + transactions_count: int, + **kwargs + ): + super(DocumentStatistics, self).__init__(**kwargs) + self.characters_count = characters_count + self.transactions_count = transactions_count + + +class EntitiesResult(msrest.serialization.Model): + """EntitiesResult. + + All required parameters must be populated in order to send to Azure. + + :param documents: Required. Response by document. + :type documents: list[~azure.ai.textanalytics.v3_1_preview_1.models.DocumentEntities] + :param errors: Required. Errors by document id. + :type errors: list[~azure.ai.textanalytics.v3_1_preview_1.models.DocumentError] + :param statistics: if showStats=true was specified in the request this field will contain + information about the request payload. + :type statistics: ~azure.ai.textanalytics.v3_1_preview_1.models.RequestStatistics + :param model_version: Required. This field indicates which model is used for scoring. + :type model_version: str + """ + + _validation = { + 'documents': {'required': True}, + 'errors': {'required': True}, + 'model_version': {'required': True}, + } + + _attribute_map = { + 'documents': {'key': 'documents', 'type': '[DocumentEntities]'}, + 'errors': {'key': 'errors', 'type': '[DocumentError]'}, + 'statistics': {'key': 'statistics', 'type': 'RequestStatistics'}, + 'model_version': {'key': 'modelVersion', 'type': 'str'}, + } + + def __init__( + self, + *, + documents: List["DocumentEntities"], + errors: List["DocumentError"], + model_version: str, + statistics: Optional["RequestStatistics"] = None, + **kwargs + ): + super(EntitiesResult, self).__init__(**kwargs) + self.documents = documents + self.errors = errors + self.statistics = statistics + self.model_version = model_version + + +class Entity(msrest.serialization.Model): + """Entity. + + All required parameters must be populated in order to send to Azure. + + :param text: Required. Entity text as appears in the request. + :type text: str + :param category: Required. Entity type, such as Person/Location/Org/SSN etc. + :type category: str + :param subcategory: Entity sub type, such as Age/Year/TimeRange etc. + :type subcategory: str + :param offset: Required. Start position for the entity text. + :type offset: int + :param length: Required. Length for the entity text. + :type length: int + :param confidence_score: Required. Confidence score between 0 and 1 of the extracted entity. + :type confidence_score: float + """ + + _validation = { + 'text': {'required': True}, + 'category': {'required': True}, + 'offset': {'required': True}, + 'length': {'required': True}, + 'confidence_score': {'required': True}, + } + + _attribute_map = { + 'text': {'key': 'text', 'type': 'str'}, + 'category': {'key': 'category', 'type': 'str'}, + 'subcategory': {'key': 'subcategory', 'type': 'str'}, + 'offset': {'key': 'offset', 'type': 'int'}, + 'length': {'key': 'length', 'type': 'int'}, + 'confidence_score': {'key': 'confidenceScore', 'type': 'float'}, + } + + def __init__( + self, + *, + text: str, + category: str, + offset: int, + length: int, + confidence_score: float, + subcategory: Optional[str] = None, + **kwargs + ): + super(Entity, self).__init__(**kwargs) + self.text = text + self.category = category + self.subcategory = subcategory + self.offset = offset + self.length = length + self.confidence_score = confidence_score + + +class EntityLinkingResult(msrest.serialization.Model): + """EntityLinkingResult. + + All required parameters must be populated in order to send to Azure. + + :param documents: Required. Response by document. + :type documents: list[~azure.ai.textanalytics.v3_1_preview_1.models.DocumentLinkedEntities] + :param errors: Required. Errors by document id. + :type errors: list[~azure.ai.textanalytics.v3_1_preview_1.models.DocumentError] + :param statistics: if showStats=true was specified in the request this field will contain + information about the request payload. + :type statistics: ~azure.ai.textanalytics.v3_1_preview_1.models.RequestStatistics + :param model_version: Required. This field indicates which model is used for scoring. + :type model_version: str + """ + + _validation = { + 'documents': {'required': True}, + 'errors': {'required': True}, + 'model_version': {'required': True}, + } + + _attribute_map = { + 'documents': {'key': 'documents', 'type': '[DocumentLinkedEntities]'}, + 'errors': {'key': 'errors', 'type': '[DocumentError]'}, + 'statistics': {'key': 'statistics', 'type': 'RequestStatistics'}, + 'model_version': {'key': 'modelVersion', 'type': 'str'}, + } + + def __init__( + self, + *, + documents: List["DocumentLinkedEntities"], + errors: List["DocumentError"], + model_version: str, + statistics: Optional["RequestStatistics"] = None, + **kwargs + ): + super(EntityLinkingResult, self).__init__(**kwargs) + self.documents = documents + self.errors = errors + self.statistics = statistics + self.model_version = model_version + + +class InnerError(msrest.serialization.Model): + """InnerError. + + All required parameters must be populated in order to send to Azure. + + :param code: Required. Error code. Possible values include: "invalidParameterValue", + "invalidRequestBodyFormat", "emptyRequest", "missingInputRecords", "invalidDocument", + "modelVersionIncorrect", "invalidDocumentBatch", "unsupportedLanguageCode", + "invalidCountryHint". + :type code: str or ~azure.ai.textanalytics.v3_1_preview_1.models.InnerErrorCodeValue + :param message: Required. Error message. + :type message: str + :param details: Error details. + :type details: dict[str, str] + :param target: Error target. + :type target: str + :param innererror: Inner error contains more specific information. + :type innererror: ~azure.ai.textanalytics.v3_1_preview_1.models.InnerError + """ + + _validation = { + 'code': {'required': True}, + 'message': {'required': True}, + } + + _attribute_map = { + 'code': {'key': 'code', 'type': 'str'}, + 'message': {'key': 'message', 'type': 'str'}, + 'details': {'key': 'details', 'type': '{str}'}, + 'target': {'key': 'target', 'type': 'str'}, + 'innererror': {'key': 'innererror', 'type': 'InnerError'}, + } + + def __init__( + self, + *, + code: Union[str, "InnerErrorCodeValue"], + message: str, + details: Optional[Dict[str, str]] = None, + target: Optional[str] = None, + innererror: Optional["InnerError"] = None, + **kwargs + ): + super(InnerError, self).__init__(**kwargs) + self.code = code + self.message = message + self.details = details + self.target = target + self.innererror = innererror + + +class KeyPhraseResult(msrest.serialization.Model): + """KeyPhraseResult. + + All required parameters must be populated in order to send to Azure. + + :param documents: Required. Response by document. + :type documents: list[~azure.ai.textanalytics.v3_1_preview_1.models.DocumentKeyPhrases] + :param errors: Required. Errors by document id. + :type errors: list[~azure.ai.textanalytics.v3_1_preview_1.models.DocumentError] + :param statistics: if showStats=true was specified in the request this field will contain + information about the request payload. + :type statistics: ~azure.ai.textanalytics.v3_1_preview_1.models.RequestStatistics + :param model_version: Required. This field indicates which model is used for scoring. + :type model_version: str + """ + + _validation = { + 'documents': {'required': True}, + 'errors': {'required': True}, + 'model_version': {'required': True}, + } + + _attribute_map = { + 'documents': {'key': 'documents', 'type': '[DocumentKeyPhrases]'}, + 'errors': {'key': 'errors', 'type': '[DocumentError]'}, + 'statistics': {'key': 'statistics', 'type': 'RequestStatistics'}, + 'model_version': {'key': 'modelVersion', 'type': 'str'}, + } + + def __init__( + self, + *, + documents: List["DocumentKeyPhrases"], + errors: List["DocumentError"], + model_version: str, + statistics: Optional["RequestStatistics"] = None, + **kwargs + ): + super(KeyPhraseResult, self).__init__(**kwargs) + self.documents = documents + self.errors = errors + self.statistics = statistics + self.model_version = model_version + + +class LanguageBatchInput(msrest.serialization.Model): + """LanguageBatchInput. + + All required parameters must be populated in order to send to Azure. + + :param documents: Required. + :type documents: list[~azure.ai.textanalytics.v3_1_preview_1.models.LanguageInput] + """ + + _validation = { + 'documents': {'required': True}, + } + + _attribute_map = { + 'documents': {'key': 'documents', 'type': '[LanguageInput]'}, + } + + def __init__( + self, + *, + documents: List["LanguageInput"], + **kwargs + ): + super(LanguageBatchInput, self).__init__(**kwargs) + self.documents = documents + + +class LanguageInput(msrest.serialization.Model): + """LanguageInput. + + All required parameters must be populated in order to send to Azure. + + :param id: Required. Unique, non-empty document identifier. + :type id: str + :param text: Required. + :type text: str + :param country_hint: + :type country_hint: str + """ + + _validation = { + 'id': {'required': True}, + 'text': {'required': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'text': {'key': 'text', 'type': 'str'}, + 'country_hint': {'key': 'countryHint', 'type': 'str'}, + } + + def __init__( + self, + *, + id: str, + text: str, + country_hint: Optional[str] = None, + **kwargs + ): + super(LanguageInput, self).__init__(**kwargs) + self.id = id + self.text = text + self.country_hint = country_hint + + +class LanguageResult(msrest.serialization.Model): + """LanguageResult. + + All required parameters must be populated in order to send to Azure. + + :param documents: Required. Response by document. + :type documents: list[~azure.ai.textanalytics.v3_1_preview_1.models.DocumentLanguage] + :param errors: Required. Errors by document id. + :type errors: list[~azure.ai.textanalytics.v3_1_preview_1.models.DocumentError] + :param statistics: if showStats=true was specified in the request this field will contain + information about the request payload. + :type statistics: ~azure.ai.textanalytics.v3_1_preview_1.models.RequestStatistics + :param model_version: Required. This field indicates which model is used for scoring. + :type model_version: str + """ + + _validation = { + 'documents': {'required': True}, + 'errors': {'required': True}, + 'model_version': {'required': True}, + } + + _attribute_map = { + 'documents': {'key': 'documents', 'type': '[DocumentLanguage]'}, + 'errors': {'key': 'errors', 'type': '[DocumentError]'}, + 'statistics': {'key': 'statistics', 'type': 'RequestStatistics'}, + 'model_version': {'key': 'modelVersion', 'type': 'str'}, + } + + def __init__( + self, + *, + documents: List["DocumentLanguage"], + errors: List["DocumentError"], + model_version: str, + statistics: Optional["RequestStatistics"] = None, + **kwargs + ): + super(LanguageResult, self).__init__(**kwargs) + self.documents = documents + self.errors = errors + self.statistics = statistics + self.model_version = model_version + + +class LinkedEntity(msrest.serialization.Model): + """LinkedEntity. + + All required parameters must be populated in order to send to Azure. + + :param name: Required. Entity Linking formal name. + :type name: str + :param matches: Required. List of instances this entity appears in the text. + :type matches: list[~azure.ai.textanalytics.v3_1_preview_1.models.Match] + :param language: Required. Language used in the data source. + :type language: str + :param id: Unique identifier of the recognized entity from the data source. + :type id: str + :param url: Required. URL for the entity's page from the data source. + :type url: str + :param data_source: Required. Data source used to extract entity linking, such as Wiki/Bing + etc. + :type data_source: str + """ + + _validation = { + 'name': {'required': True}, + 'matches': {'required': True}, + 'language': {'required': True}, + 'url': {'required': True}, + 'data_source': {'required': True}, + } + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + 'matches': {'key': 'matches', 'type': '[Match]'}, + 'language': {'key': 'language', 'type': 'str'}, + 'id': {'key': 'id', 'type': 'str'}, + 'url': {'key': 'url', 'type': 'str'}, + 'data_source': {'key': 'dataSource', 'type': 'str'}, + } + + def __init__( + self, + *, + name: str, + matches: List["Match"], + language: str, + url: str, + data_source: str, + id: Optional[str] = None, + **kwargs + ): + super(LinkedEntity, self).__init__(**kwargs) + self.name = name + self.matches = matches + self.language = language + self.id = id + self.url = url + self.data_source = data_source + + +class Match(msrest.serialization.Model): + """Match. + + All required parameters must be populated in order to send to Azure. + + :param confidence_score: Required. If a well-known item is recognized, a decimal number + denoting the confidence level between 0 and 1 will be returned. + :type confidence_score: float + :param text: Required. Entity text as appears in the request. + :type text: str + :param offset: Required. Start position for the entity match text. + :type offset: int + :param length: Required. Length for the entity match text. + :type length: int + """ + + _validation = { + 'confidence_score': {'required': True}, + 'text': {'required': True}, + 'offset': {'required': True}, + 'length': {'required': True}, + } + + _attribute_map = { + 'confidence_score': {'key': 'confidenceScore', 'type': 'float'}, + 'text': {'key': 'text', 'type': 'str'}, + 'offset': {'key': 'offset', 'type': 'int'}, + 'length': {'key': 'length', 'type': 'int'}, + } + + def __init__( + self, + *, + confidence_score: float, + text: str, + offset: int, + length: int, + **kwargs + ): + super(Match, self).__init__(**kwargs) + self.confidence_score = confidence_score + self.text = text + self.offset = offset + self.length = length + + +class MultiLanguageBatchInput(msrest.serialization.Model): + """Contains a set of input documents to be analyzed by the service. + + All required parameters must be populated in order to send to Azure. + + :param documents: Required. The set of documents to process as part of this batch. + :type documents: list[~azure.ai.textanalytics.v3_1_preview_1.models.MultiLanguageInput] + """ + + _validation = { + 'documents': {'required': True}, + } + + _attribute_map = { + 'documents': {'key': 'documents', 'type': '[MultiLanguageInput]'}, + } + + def __init__( + self, + *, + documents: List["MultiLanguageInput"], + **kwargs + ): + super(MultiLanguageBatchInput, self).__init__(**kwargs) + self.documents = documents + + +class MultiLanguageInput(msrest.serialization.Model): + """Contains an input document to be analyzed by the service. + + All required parameters must be populated in order to send to Azure. + + :param id: Required. A unique, non-empty document identifier. + :type id: str + :param text: Required. The input text to process. + :type text: str + :param language: (Optional) This is the 2 letter ISO 639-1 representation of a language. For + example, use "en" for English; "es" for Spanish etc. If not set, use "en" for English as + default. + :type language: str + """ + + _validation = { + 'id': {'required': True}, + 'text': {'required': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'text': {'key': 'text', 'type': 'str'}, + 'language': {'key': 'language', 'type': 'str'}, + } + + def __init__( + self, + *, + id: str, + text: str, + language: Optional[str] = None, + **kwargs + ): + super(MultiLanguageInput, self).__init__(**kwargs) + self.id = id + self.text = text + self.language = language + + +class RequestStatistics(msrest.serialization.Model): + """if showStats=true was specified in the request this field will contain information about the request payload. + + All required parameters must be populated in order to send to Azure. + + :param documents_count: Required. Number of documents submitted in the request. + :type documents_count: int + :param valid_documents_count: Required. Number of valid documents. This excludes empty, over- + size limit or non-supported languages documents. + :type valid_documents_count: int + :param erroneous_documents_count: Required. Number of invalid documents. This includes empty, + over-size limit or non-supported languages documents. + :type erroneous_documents_count: int + :param transactions_count: Required. Number of transactions for the request. + :type transactions_count: long + """ + + _validation = { + 'documents_count': {'required': True}, + 'valid_documents_count': {'required': True}, + 'erroneous_documents_count': {'required': True}, + 'transactions_count': {'required': True}, + } + + _attribute_map = { + 'documents_count': {'key': 'documentsCount', 'type': 'int'}, + 'valid_documents_count': {'key': 'validDocumentsCount', 'type': 'int'}, + 'erroneous_documents_count': {'key': 'erroneousDocumentsCount', 'type': 'int'}, + 'transactions_count': {'key': 'transactionsCount', 'type': 'long'}, + } + + def __init__( + self, + *, + documents_count: int, + valid_documents_count: int, + erroneous_documents_count: int, + transactions_count: int, + **kwargs + ): + super(RequestStatistics, self).__init__(**kwargs) + self.documents_count = documents_count + self.valid_documents_count = valid_documents_count + self.erroneous_documents_count = erroneous_documents_count + self.transactions_count = transactions_count + + +class SentenceAspect(msrest.serialization.Model): + """SentenceAspect. + + All required parameters must be populated in order to send to Azure. + + :param sentiment: Required. Aspect level sentiment for the aspect in the sentence. Possible + values include: "positive", "mixed", "negative". + :type sentiment: str or ~azure.ai.textanalytics.v3_1_preview_1.models.SentenceAspectSentiment + :param confidence_scores: Required. Aspect level sentiment confidence scores for the aspect in + the sentence. + :type confidence_scores: + ~azure.ai.textanalytics.v3_1_preview_1.models.AspectConfidenceScoreLabel + :param offset: Required. The aspect offset from the start of the sentence. + :type offset: int + :param length: Required. The length of the aspect. + :type length: int + :param text: Required. The aspect text detected. + :type text: str + :param relations: Required. The array of either opinion or aspect object which is related to + the aspect. + :type relations: list[~azure.ai.textanalytics.v3_1_preview_1.models.AspectRelation] + """ + + _validation = { + 'sentiment': {'required': True}, + 'confidence_scores': {'required': True}, + 'offset': {'required': True}, + 'length': {'required': True}, + 'text': {'required': True}, + 'relations': {'required': True}, + } + + _attribute_map = { + 'sentiment': {'key': 'sentiment', 'type': 'str'}, + 'confidence_scores': {'key': 'confidenceScores', 'type': 'AspectConfidenceScoreLabel'}, + 'offset': {'key': 'offset', 'type': 'int'}, + 'length': {'key': 'length', 'type': 'int'}, + 'text': {'key': 'text', 'type': 'str'}, + 'relations': {'key': 'relations', 'type': '[AspectRelation]'}, + } + + def __init__( + self, + *, + sentiment: Union[str, "SentenceAspectSentiment"], + confidence_scores: "AspectConfidenceScoreLabel", + offset: int, + length: int, + text: str, + relations: List["AspectRelation"], + **kwargs + ): + super(SentenceAspect, self).__init__(**kwargs) + self.sentiment = sentiment + self.confidence_scores = confidence_scores + self.offset = offset + self.length = length + self.text = text + self.relations = relations + + +class SentenceOpinion(msrest.serialization.Model): + """SentenceOpinion. + + All required parameters must be populated in order to send to Azure. + + :param sentiment: Required. Opinion level sentiment for the aspect in the sentence. Possible + values include: "positive", "mixed", "negative". + :type sentiment: str or ~azure.ai.textanalytics.v3_1_preview_1.models.SentenceOpinionSentiment + :param confidence_scores: Required. Opinion level sentiment confidence scores for the aspect in + the sentence. + :type confidence_scores: + ~azure.ai.textanalytics.v3_1_preview_1.models.AspectConfidenceScoreLabel + :param offset: Required. The opinion offset from the start of the sentence. + :type offset: int + :param length: Required. The length of the opinion. + :type length: int + :param text: Required. The aspect text detected. + :type text: str + :param is_negated: Required. The indicator representing if the opinion is negated. + :type is_negated: bool + """ + + _validation = { + 'sentiment': {'required': True}, + 'confidence_scores': {'required': True}, + 'offset': {'required': True}, + 'length': {'required': True}, + 'text': {'required': True}, + 'is_negated': {'required': True}, + } + + _attribute_map = { + 'sentiment': {'key': 'sentiment', 'type': 'str'}, + 'confidence_scores': {'key': 'confidenceScores', 'type': 'AspectConfidenceScoreLabel'}, + 'offset': {'key': 'offset', 'type': 'int'}, + 'length': {'key': 'length', 'type': 'int'}, + 'text': {'key': 'text', 'type': 'str'}, + 'is_negated': {'key': 'isNegated', 'type': 'bool'}, + } + + def __init__( + self, + *, + sentiment: Union[str, "SentenceOpinionSentiment"], + confidence_scores: "AspectConfidenceScoreLabel", + offset: int, + length: int, + text: str, + is_negated: bool, + **kwargs + ): + super(SentenceOpinion, self).__init__(**kwargs) + self.sentiment = sentiment + self.confidence_scores = confidence_scores + self.offset = offset + self.length = length + self.text = text + self.is_negated = is_negated + + +class SentenceSentiment(msrest.serialization.Model): + """SentenceSentiment. + + All required parameters must be populated in order to send to Azure. + + :param text: Required. The sentence text. + :type text: str + :param sentiment: Required. The predicted Sentiment for the sentence. Possible values include: + "positive", "neutral", "negative". + :type sentiment: str or ~azure.ai.textanalytics.v3_1_preview_1.models.SentenceSentimentValue + :param confidence_scores: Required. The sentiment confidence score between 0 and 1 for the + sentence for all classes. + :type confidence_scores: + ~azure.ai.textanalytics.v3_1_preview_1.models.SentimentConfidenceScorePerLabel + :param offset: Required. The sentence offset from the start of the document. + :type offset: int + :param length: Required. The length of the sentence. + :type length: int + :param aspects: The array of aspect object for the sentence. + :type aspects: list[~azure.ai.textanalytics.v3_1_preview_1.models.SentenceAspect] + :param opinions: The array of opinion object for the sentence. + :type opinions: list[~azure.ai.textanalytics.v3_1_preview_1.models.SentenceOpinion] + """ + + _validation = { + 'text': {'required': True}, + 'sentiment': {'required': True}, + 'confidence_scores': {'required': True}, + 'offset': {'required': True}, + 'length': {'required': True}, + } + + _attribute_map = { + 'text': {'key': 'text', 'type': 'str'}, + 'sentiment': {'key': 'sentiment', 'type': 'str'}, + 'confidence_scores': {'key': 'confidenceScores', 'type': 'SentimentConfidenceScorePerLabel'}, + 'offset': {'key': 'offset', 'type': 'int'}, + 'length': {'key': 'length', 'type': 'int'}, + 'aspects': {'key': 'aspects', 'type': '[SentenceAspect]'}, + 'opinions': {'key': 'opinions', 'type': '[SentenceOpinion]'}, + } + + def __init__( + self, + *, + text: str, + sentiment: Union[str, "SentenceSentimentValue"], + confidence_scores: "SentimentConfidenceScorePerLabel", + offset: int, + length: int, + aspects: Optional[List["SentenceAspect"]] = None, + opinions: Optional[List["SentenceOpinion"]] = None, + **kwargs + ): + super(SentenceSentiment, self).__init__(**kwargs) + self.text = text + self.sentiment = sentiment + self.confidence_scores = confidence_scores + self.offset = offset + self.length = length + self.aspects = aspects + self.opinions = opinions + + +class SentimentConfidenceScorePerLabel(msrest.serialization.Model): + """Represents the confidence scores between 0 and 1 across all sentiment classes: positive, neutral, negative. + + All required parameters must be populated in order to send to Azure. + + :param positive: Required. + :type positive: float + :param neutral: Required. + :type neutral: float + :param negative: Required. + :type negative: float + """ + + _validation = { + 'positive': {'required': True}, + 'neutral': {'required': True}, + 'negative': {'required': True}, + } + + _attribute_map = { + 'positive': {'key': 'positive', 'type': 'float'}, + 'neutral': {'key': 'neutral', 'type': 'float'}, + 'negative': {'key': 'negative', 'type': 'float'}, + } + + def __init__( + self, + *, + positive: float, + neutral: float, + negative: float, + **kwargs + ): + super(SentimentConfidenceScorePerLabel, self).__init__(**kwargs) + self.positive = positive + self.neutral = neutral + self.negative = negative + + +class SentimentResponse(msrest.serialization.Model): + """SentimentResponse. + + All required parameters must be populated in order to send to Azure. + + :param documents: Required. Sentiment analysis per document. + :type documents: list[~azure.ai.textanalytics.v3_1_preview_1.models.DocumentSentiment] + :param errors: Required. Errors by document id. + :type errors: list[~azure.ai.textanalytics.v3_1_preview_1.models.DocumentError] + :param statistics: if showStats=true was specified in the request this field will contain + information about the request payload. + :type statistics: ~azure.ai.textanalytics.v3_1_preview_1.models.RequestStatistics + :param model_version: Required. This field indicates which model is used for scoring. + :type model_version: str + """ + + _validation = { + 'documents': {'required': True}, + 'errors': {'required': True}, + 'model_version': {'required': True}, + } + + _attribute_map = { + 'documents': {'key': 'documents', 'type': '[DocumentSentiment]'}, + 'errors': {'key': 'errors', 'type': '[DocumentError]'}, + 'statistics': {'key': 'statistics', 'type': 'RequestStatistics'}, + 'model_version': {'key': 'modelVersion', 'type': 'str'}, + } + + def __init__( + self, + *, + documents: List["DocumentSentiment"], + errors: List["DocumentError"], + model_version: str, + statistics: Optional["RequestStatistics"] = None, + **kwargs + ): + super(SentimentResponse, self).__init__(**kwargs) + self.documents = documents + self.errors = errors + self.statistics = statistics + self.model_version = model_version + + +class TextAnalyticsError(msrest.serialization.Model): + """TextAnalyticsError. + + All required parameters must be populated in order to send to Azure. + + :param code: Required. Error code. Possible values include: "invalidRequest", + "invalidArgument", "internalServerError", "serviceUnavailable". + :type code: str or ~azure.ai.textanalytics.v3_1_preview_1.models.ErrorCodeValue + :param message: Required. Error message. + :type message: str + :param target: Error target. + :type target: str + :param innererror: Inner error contains more specific information. + :type innererror: ~azure.ai.textanalytics.v3_1_preview_1.models.InnerError + :param details: Details about specific errors that led to this reported error. + :type details: list[~azure.ai.textanalytics.v3_1_preview_1.models.TextAnalyticsError] + """ + + _validation = { + 'code': {'required': True}, + 'message': {'required': True}, + } + + _attribute_map = { + 'code': {'key': 'code', 'type': 'str'}, + 'message': {'key': 'message', 'type': 'str'}, + 'target': {'key': 'target', 'type': 'str'}, + 'innererror': {'key': 'innererror', 'type': 'InnerError'}, + 'details': {'key': 'details', 'type': '[TextAnalyticsError]'}, + } + + def __init__( + self, + *, + code: Union[str, "ErrorCodeValue"], + message: str, + target: Optional[str] = None, + innererror: Optional["InnerError"] = None, + details: Optional[List["TextAnalyticsError"]] = None, + **kwargs + ): + super(TextAnalyticsError, self).__init__(**kwargs) + self.code = code + self.message = message + self.target = target + self.innererror = innererror + self.details = details + + +class TextAnalyticsWarning(msrest.serialization.Model): + """TextAnalyticsWarning. + + All required parameters must be populated in order to send to Azure. + + :param code: Required. Error code. Possible values include: "LongWordsInDocument", + "DocumentTruncated". + :type code: str or ~azure.ai.textanalytics.v3_1_preview_1.models.WarningCodeValue + :param message: Required. Warning message. + :type message: str + :param target_ref: A JSON pointer reference indicating the target object. + :type target_ref: str + """ + + _validation = { + 'code': {'required': True}, + 'message': {'required': True}, + } + + _attribute_map = { + 'code': {'key': 'code', 'type': 'str'}, + 'message': {'key': 'message', 'type': 'str'}, + 'target_ref': {'key': 'targetRef', 'type': 'str'}, + } + + def __init__( + self, + *, + code: Union[str, "WarningCodeValue"], + message: str, + target_ref: Optional[str] = None, + **kwargs + ): + super(TextAnalyticsWarning, self).__init__(**kwargs) + self.code = code + self.message = message + self.target_ref = target_ref diff --git a/sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_generated/v3_1_preview_1/models/_text_analytics_client_enums.py b/sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_generated/v3_1_preview_1/models/_text_analytics_client_enums.py new file mode 100644 index 000000000000..62533920a574 --- /dev/null +++ b/sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_generated/v3_1_preview_1/models/_text_analytics_client_enums.py @@ -0,0 +1,97 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for license information. +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is regenerated. +# -------------------------------------------------------------------------- + +from enum import Enum, EnumMeta +from six import with_metaclass + +class _CaseInsensitiveEnumMeta(EnumMeta): + def __getitem__(self, name): + return super().__getitem__(name.upper()) + + def __getattr__(cls, name): + """Return the enum member matching `name` + We use __getattr__ instead of descriptors or inserting into the enum + class' __dict__ in order to support `name` and `value` being both + properties for enum members (which live in the class' __dict__) and + enum members themselves. + """ + try: + return cls._member_map_[name.upper()] + except KeyError: + raise AttributeError(name) + + +class AspectRelationType(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): + """The type related to the aspect. + """ + + OPINION = "opinion" + ASPECT = "aspect" + +class DocumentSentimentValue(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): + """Predicted sentiment for document (Negative, Neutral, Positive, or Mixed). + """ + + POSITIVE = "positive" + NEUTRAL = "neutral" + NEGATIVE = "negative" + MIXED = "mixed" + +class ErrorCodeValue(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): + """Error code. + """ + + INVALID_REQUEST = "invalidRequest" + INVALID_ARGUMENT = "invalidArgument" + INTERNAL_SERVER_ERROR = "internalServerError" + SERVICE_UNAVAILABLE = "serviceUnavailable" + +class InnerErrorCodeValue(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): + """Error code. + """ + + INVALID_PARAMETER_VALUE = "invalidParameterValue" + INVALID_REQUEST_BODY_FORMAT = "invalidRequestBodyFormat" + EMPTY_REQUEST = "emptyRequest" + MISSING_INPUT_RECORDS = "missingInputRecords" + INVALID_DOCUMENT = "invalidDocument" + MODEL_VERSION_INCORRECT = "modelVersionIncorrect" + INVALID_DOCUMENT_BATCH = "invalidDocumentBatch" + UNSUPPORTED_LANGUAGE_CODE = "unsupportedLanguageCode" + INVALID_COUNTRY_HINT = "invalidCountryHint" + +class SentenceAspectSentiment(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): + """Aspect level sentiment for the aspect in the sentence. + """ + + POSITIVE = "positive" + MIXED = "mixed" + NEGATIVE = "negative" + +class SentenceOpinionSentiment(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): + """Opinion level sentiment for the aspect in the sentence. + """ + + POSITIVE = "positive" + MIXED = "mixed" + NEGATIVE = "negative" + +class SentenceSentimentValue(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): + """The predicted Sentiment for the sentence. + """ + + POSITIVE = "positive" + NEUTRAL = "neutral" + NEGATIVE = "negative" + +class WarningCodeValue(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): + """Error code. + """ + + LONG_WORDS_IN_DOCUMENT = "LongWordsInDocument" + DOCUMENT_TRUNCATED = "DocumentTruncated" diff --git a/sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_generated/v3_1_preview_1/operations/__init__.py b/sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_generated/v3_1_preview_1/operations/__init__.py new file mode 100644 index 000000000000..4384511c0346 --- /dev/null +++ b/sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_generated/v3_1_preview_1/operations/__init__.py @@ -0,0 +1,13 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for license information. +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is regenerated. +# -------------------------------------------------------------------------- + +from ._text_analytics_client_operations import TextAnalyticsClientOperationsMixin + +__all__ = [ + 'TextAnalyticsClientOperationsMixin', +] diff --git a/sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_generated/v3_1_preview_1/operations/_text_analytics_client_operations.py b/sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_generated/v3_1_preview_1/operations/_text_analytics_client_operations.py new file mode 100644 index 000000000000..138a47329b0e --- /dev/null +++ b/sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_generated/v3_1_preview_1/operations/_text_analytics_client_operations.py @@ -0,0 +1,483 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for license information. +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is regenerated. +# -------------------------------------------------------------------------- +from typing import TYPE_CHECKING +import warnings + +from azure.core.exceptions import HttpResponseError, ResourceExistsError, ResourceNotFoundError, map_error +from azure.core.pipeline import PipelineResponse +from azure.core.pipeline.transport import HttpRequest, HttpResponse + +from .. import models + +if TYPE_CHECKING: + # pylint: disable=unused-import,ungrouped-imports + from typing import Any, Callable, Dict, Generic, List, Optional, TypeVar + + T = TypeVar('T') + ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] + +class TextAnalyticsClientOperationsMixin(object): + + def entities_recognition_general( + self, + documents, # type: List["models.MultiLanguageInput"] + model_version=None, # type: Optional[str] + show_stats=None, # type: Optional[bool] + **kwargs # type: Any + ): + # type: (...) -> "models.EntitiesResult" + """Named Entity Recognition. + + The API returns a list of general named entities in a given document. For the list of supported + entity types, check :code:`Supported Entity Types in Text + Analytics API`. See the :code:`Supported languages in Text + Analytics API` for the list of enabled languages. + + :param documents: The set of documents to process as part of this batch. + :type documents: list[~azure.ai.textanalytics.v3_1_preview_1.models.MultiLanguageInput] + :param model_version: (Optional) This value indicates which model will be used for scoring. If + a model-version is not specified, the API should default to the latest, non-preview version. + :type model_version: str + :param show_stats: (Optional) if set to true, response will contain input and document level + statistics. + :type show_stats: bool + :keyword callable cls: A custom type or function that will be passed the direct response + :return: EntitiesResult, or the result of cls(response) + :rtype: ~azure.ai.textanalytics.v3_1_preview_1.models.EntitiesResult + :raises: ~azure.core.exceptions.HttpResponseError + """ + cls = kwargs.pop('cls', None) # type: ClsType["models.EntitiesResult"] + error_map = {404: ResourceNotFoundError, 409: ResourceExistsError} + error_map.update(kwargs.pop('error_map', {})) + + _input = models.MultiLanguageBatchInput(documents=documents) + content_type = kwargs.pop("content_type", "application/json") + + # Construct URL + url = self.entities_recognition_general.metadata['url'] # type: ignore + path_format_arguments = { + 'Endpoint': self._serialize.url("self._config.endpoint", self._config.endpoint, 'str', skip_quote=True), + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} # type: Dict[str, Any] + if model_version is not None: + query_parameters['model-version'] = self._serialize.query("model_version", model_version, 'str') + if show_stats is not None: + query_parameters['showStats'] = self._serialize.query("show_stats", show_stats, 'bool') + + # Construct headers + header_parameters = {} # type: Dict[str, Any] + header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') + header_parameters['Accept'] = 'application/json' + + body_content_kwargs = {} # type: Dict[str, Any] + body_content = self._serialize.body(_input, 'MultiLanguageBatchInput') + body_content_kwargs['content'] = body_content + request = self._client.post(url, query_parameters, header_parameters, **body_content_kwargs) + + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [200]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = self._deserialize(models.TextAnalyticsError, response) + raise HttpResponseError(response=response, model=error) + + deserialized = self._deserialize('EntitiesResult', pipeline_response) + + if cls: + return cls(pipeline_response, deserialized, {}) + + return deserialized + entities_recognition_general.metadata = {'url': '/entities/recognition/general'} # type: ignore + + def entities_recognition_pii( + self, + documents, # type: List["models.MultiLanguageInput"] + model_version=None, # type: Optional[str] + show_stats=None, # type: Optional[bool] + domain=None, # type: Optional[str] + **kwargs # type: Any + ): + # type: (...) -> "models.EntitiesResult" + """Entities containing personal information. + + The API returns a list of entities with personal information (\"SSN\", \"Bank Account\" etc) in + the document. For the list of supported entity types, check :code:`Supported Entity Types in Text Analytics API`. See the + :code:`Supported languages in Text Analytics API` for the + list of enabled languages. + + :param documents: The set of documents to process as part of this batch. + :type documents: list[~azure.ai.textanalytics.v3_1_preview_1.models.MultiLanguageInput] + :param model_version: (Optional) This value indicates which model will be used for scoring. If + a model-version is not specified, the API should default to the latest, non-preview version. + :type model_version: str + :param show_stats: (Optional) if set to true, response will contain input and document level + statistics. + :type show_stats: bool + :param domain: (Optional) if set to 'PHI', response will contain only PHI entities. + :type domain: str + :keyword callable cls: A custom type or function that will be passed the direct response + :return: EntitiesResult, or the result of cls(response) + :rtype: ~azure.ai.textanalytics.v3_1_preview_1.models.EntitiesResult + :raises: ~azure.core.exceptions.HttpResponseError + """ + cls = kwargs.pop('cls', None) # type: ClsType["models.EntitiesResult"] + error_map = {404: ResourceNotFoundError, 409: ResourceExistsError} + error_map.update(kwargs.pop('error_map', {})) + + _input = models.MultiLanguageBatchInput(documents=documents) + content_type = kwargs.pop("content_type", "application/json") + + # Construct URL + url = self.entities_recognition_pii.metadata['url'] # type: ignore + path_format_arguments = { + 'Endpoint': self._serialize.url("self._config.endpoint", self._config.endpoint, 'str', skip_quote=True), + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} # type: Dict[str, Any] + if model_version is not None: + query_parameters['model-version'] = self._serialize.query("model_version", model_version, 'str') + if show_stats is not None: + query_parameters['showStats'] = self._serialize.query("show_stats", show_stats, 'bool') + if domain is not None: + query_parameters['domain'] = self._serialize.query("domain", domain, 'str') + + # Construct headers + header_parameters = {} # type: Dict[str, Any] + header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') + header_parameters['Accept'] = 'application/json' + + body_content_kwargs = {} # type: Dict[str, Any] + body_content = self._serialize.body(_input, 'MultiLanguageBatchInput') + body_content_kwargs['content'] = body_content + request = self._client.post(url, query_parameters, header_parameters, **body_content_kwargs) + + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [200]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = self._deserialize(models.TextAnalyticsError, response) + raise HttpResponseError(response=response, model=error) + + deserialized = self._deserialize('EntitiesResult', pipeline_response) + + if cls: + return cls(pipeline_response, deserialized, {}) + + return deserialized + entities_recognition_pii.metadata = {'url': '/entities/recognition/pii'} # type: ignore + + def entities_linking( + self, + documents, # type: List["models.MultiLanguageInput"] + model_version=None, # type: Optional[str] + show_stats=None, # type: Optional[bool] + **kwargs # type: Any + ): + # type: (...) -> "models.EntityLinkingResult" + """Linked entities from a well-known knowledge base. + + The API returns a list of recognized entities with links to a well-known knowledge base. See + the :code:`Supported languages in Text Analytics API` for + the list of enabled languages. + + :param documents: The set of documents to process as part of this batch. + :type documents: list[~azure.ai.textanalytics.v3_1_preview_1.models.MultiLanguageInput] + :param model_version: (Optional) This value indicates which model will be used for scoring. If + a model-version is not specified, the API should default to the latest, non-preview version. + :type model_version: str + :param show_stats: (Optional) if set to true, response will contain input and document level + statistics. + :type show_stats: bool + :keyword callable cls: A custom type or function that will be passed the direct response + :return: EntityLinkingResult, or the result of cls(response) + :rtype: ~azure.ai.textanalytics.v3_1_preview_1.models.EntityLinkingResult + :raises: ~azure.core.exceptions.HttpResponseError + """ + cls = kwargs.pop('cls', None) # type: ClsType["models.EntityLinkingResult"] + error_map = {404: ResourceNotFoundError, 409: ResourceExistsError} + error_map.update(kwargs.pop('error_map', {})) + + _input = models.MultiLanguageBatchInput(documents=documents) + content_type = kwargs.pop("content_type", "application/json") + + # Construct URL + url = self.entities_linking.metadata['url'] # type: ignore + path_format_arguments = { + 'Endpoint': self._serialize.url("self._config.endpoint", self._config.endpoint, 'str', skip_quote=True), + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} # type: Dict[str, Any] + if model_version is not None: + query_parameters['model-version'] = self._serialize.query("model_version", model_version, 'str') + if show_stats is not None: + query_parameters['showStats'] = self._serialize.query("show_stats", show_stats, 'bool') + + # Construct headers + header_parameters = {} # type: Dict[str, Any] + header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') + header_parameters['Accept'] = 'application/json' + + body_content_kwargs = {} # type: Dict[str, Any] + body_content = self._serialize.body(_input, 'MultiLanguageBatchInput') + body_content_kwargs['content'] = body_content + request = self._client.post(url, query_parameters, header_parameters, **body_content_kwargs) + + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [200]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = self._deserialize(models.TextAnalyticsError, response) + raise HttpResponseError(response=response, model=error) + + deserialized = self._deserialize('EntityLinkingResult', pipeline_response) + + if cls: + return cls(pipeline_response, deserialized, {}) + + return deserialized + entities_linking.metadata = {'url': '/entities/linking'} # type: ignore + + def key_phrases( + self, + documents, # type: List["models.MultiLanguageInput"] + model_version=None, # type: Optional[str] + show_stats=None, # type: Optional[bool] + **kwargs # type: Any + ): + # type: (...) -> "models.KeyPhraseResult" + """Key Phrases. + + The API returns a list of strings denoting the key phrases in the input text. See the :code:`Supported languages in Text Analytics API` for the list of + enabled languages. + + :param documents: The set of documents to process as part of this batch. + :type documents: list[~azure.ai.textanalytics.v3_1_preview_1.models.MultiLanguageInput] + :param model_version: (Optional) This value indicates which model will be used for scoring. If + a model-version is not specified, the API should default to the latest, non-preview version. + :type model_version: str + :param show_stats: (Optional) if set to true, response will contain input and document level + statistics. + :type show_stats: bool + :keyword callable cls: A custom type or function that will be passed the direct response + :return: KeyPhraseResult, or the result of cls(response) + :rtype: ~azure.ai.textanalytics.v3_1_preview_1.models.KeyPhraseResult + :raises: ~azure.core.exceptions.HttpResponseError + """ + cls = kwargs.pop('cls', None) # type: ClsType["models.KeyPhraseResult"] + error_map = {404: ResourceNotFoundError, 409: ResourceExistsError} + error_map.update(kwargs.pop('error_map', {})) + + _input = models.MultiLanguageBatchInput(documents=documents) + content_type = kwargs.pop("content_type", "application/json") + + # Construct URL + url = self.key_phrases.metadata['url'] # type: ignore + path_format_arguments = { + 'Endpoint': self._serialize.url("self._config.endpoint", self._config.endpoint, 'str', skip_quote=True), + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} # type: Dict[str, Any] + if model_version is not None: + query_parameters['model-version'] = self._serialize.query("model_version", model_version, 'str') + if show_stats is not None: + query_parameters['showStats'] = self._serialize.query("show_stats", show_stats, 'bool') + + # Construct headers + header_parameters = {} # type: Dict[str, Any] + header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') + header_parameters['Accept'] = 'application/json' + + body_content_kwargs = {} # type: Dict[str, Any] + body_content = self._serialize.body(_input, 'MultiLanguageBatchInput') + body_content_kwargs['content'] = body_content + request = self._client.post(url, query_parameters, header_parameters, **body_content_kwargs) + + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [200]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = self._deserialize(models.TextAnalyticsError, response) + raise HttpResponseError(response=response, model=error) + + deserialized = self._deserialize('KeyPhraseResult', pipeline_response) + + if cls: + return cls(pipeline_response, deserialized, {}) + + return deserialized + key_phrases.metadata = {'url': '/keyPhrases'} # type: ignore + + def languages( + self, + documents, # type: List["models.LanguageInput"] + model_version=None, # type: Optional[str] + show_stats=None, # type: Optional[bool] + **kwargs # type: Any + ): + # type: (...) -> "models.LanguageResult" + """Detect Language. + + The API returns the detected language and a numeric score between 0 and 1. Scores close to 1 + indicate 100% certainty that the identified language is true. See the :code:`Supported languages in Text Analytics API` for the list of + enabled languages. + + :param documents: + :type documents: list[~azure.ai.textanalytics.v3_1_preview_1.models.LanguageInput] + :param model_version: (Optional) This value indicates which model will be used for scoring. If + a model-version is not specified, the API should default to the latest, non-preview version. + :type model_version: str + :param show_stats: (Optional) if set to true, response will contain input and document level + statistics. + :type show_stats: bool + :keyword callable cls: A custom type or function that will be passed the direct response + :return: LanguageResult, or the result of cls(response) + :rtype: ~azure.ai.textanalytics.v3_1_preview_1.models.LanguageResult + :raises: ~azure.core.exceptions.HttpResponseError + """ + cls = kwargs.pop('cls', None) # type: ClsType["models.LanguageResult"] + error_map = {404: ResourceNotFoundError, 409: ResourceExistsError} + error_map.update(kwargs.pop('error_map', {})) + + _input = models.LanguageBatchInput(documents=documents) + content_type = kwargs.pop("content_type", "application/json") + + # Construct URL + url = self.languages.metadata['url'] # type: ignore + path_format_arguments = { + 'Endpoint': self._serialize.url("self._config.endpoint", self._config.endpoint, 'str', skip_quote=True), + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} # type: Dict[str, Any] + if model_version is not None: + query_parameters['model-version'] = self._serialize.query("model_version", model_version, 'str') + if show_stats is not None: + query_parameters['showStats'] = self._serialize.query("show_stats", show_stats, 'bool') + + # Construct headers + header_parameters = {} # type: Dict[str, Any] + header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') + header_parameters['Accept'] = 'application/json' + + body_content_kwargs = {} # type: Dict[str, Any] + body_content = self._serialize.body(_input, 'LanguageBatchInput') + body_content_kwargs['content'] = body_content + request = self._client.post(url, query_parameters, header_parameters, **body_content_kwargs) + + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [200]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = self._deserialize(models.TextAnalyticsError, response) + raise HttpResponseError(response=response, model=error) + + deserialized = self._deserialize('LanguageResult', pipeline_response) + + if cls: + return cls(pipeline_response, deserialized, {}) + + return deserialized + languages.metadata = {'url': '/languages'} # type: ignore + + def sentiment( + self, + documents, # type: List["models.MultiLanguageInput"] + model_version=None, # type: Optional[str] + show_stats=None, # type: Optional[bool] + opinion_mining=None, # type: Optional[bool] + **kwargs # type: Any + ): + # type: (...) -> "models.SentimentResponse" + """Sentiment. + + The API returns a detailed sentiment analysis for the input text. The analysis is done in + multiple levels of granularity, start from the a document level, down to sentence and key terms + (aspects) and opinions. + + :param documents: The set of documents to process as part of this batch. + :type documents: list[~azure.ai.textanalytics.v3_1_preview_1.models.MultiLanguageInput] + :param model_version: (Optional) This value indicates which model will be used for scoring. If + a model-version is not specified, the API should default to the latest, non-preview version. + :type model_version: str + :param show_stats: (Optional) if set to true, response will contain input and document level + statistics. + :type show_stats: bool + :param opinion_mining: (Optional) if set to true, response will contain input and document + level statistics including aspect-based sentiment analysis results. + :type opinion_mining: bool + :keyword callable cls: A custom type or function that will be passed the direct response + :return: SentimentResponse, or the result of cls(response) + :rtype: ~azure.ai.textanalytics.v3_1_preview_1.models.SentimentResponse + :raises: ~azure.core.exceptions.HttpResponseError + """ + cls = kwargs.pop('cls', None) # type: ClsType["models.SentimentResponse"] + error_map = {404: ResourceNotFoundError, 409: ResourceExistsError} + error_map.update(kwargs.pop('error_map', {})) + + _input = models.MultiLanguageBatchInput(documents=documents) + content_type = kwargs.pop("content_type", "application/json") + + # Construct URL + url = self.sentiment.metadata['url'] # type: ignore + path_format_arguments = { + 'Endpoint': self._serialize.url("self._config.endpoint", self._config.endpoint, 'str', skip_quote=True), + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} # type: Dict[str, Any] + if model_version is not None: + query_parameters['model-version'] = self._serialize.query("model_version", model_version, 'str') + if show_stats is not None: + query_parameters['showStats'] = self._serialize.query("show_stats", show_stats, 'bool') + if opinion_mining is not None: + query_parameters['opinionMining'] = self._serialize.query("opinion_mining", opinion_mining, 'bool') + + # Construct headers + header_parameters = {} # type: Dict[str, Any] + header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') + header_parameters['Accept'] = 'application/json' + + body_content_kwargs = {} # type: Dict[str, Any] + body_content = self._serialize.body(_input, 'MultiLanguageBatchInput') + body_content_kwargs['content'] = body_content + request = self._client.post(url, query_parameters, header_parameters, **body_content_kwargs) + + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [200]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = self._deserialize(models.TextAnalyticsError, response) + raise HttpResponseError(response=response, model=error) + + deserialized = self._deserialize('SentimentResponse', pipeline_response) + + if cls: + return cls(pipeline_response, deserialized, {}) + + return deserialized + sentiment.metadata = {'url': '/sentiment'} # type: ignore diff --git a/sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_generated/v3_1_preview_1/py.typed b/sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_generated/v3_1_preview_1/py.typed new file mode 100644 index 000000000000..e5aff4f83af8 --- /dev/null +++ b/sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_generated/v3_1_preview_1/py.typed @@ -0,0 +1 @@ +# Marker file for PEP 561. \ No newline at end of file diff --git a/sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_models.py b/sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_models.py index 1b1bf19b29b8..a6bdf3e80a14 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_models.py +++ b/sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_models.py @@ -4,8 +4,8 @@ # Licensed under the MIT License. # ------------------------------------ -from ._generated.models._models import LanguageInput -from ._generated.models._models import MultiLanguageInput +from ._generated.v3_0.models._models import LanguageInput +from ._generated.v3_0.models._models import MultiLanguageInput class DictMixin(object): diff --git a/sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_multiapi.py b/sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_multiapi.py new file mode 100644 index 000000000000..c3d1f548a989 --- /dev/null +++ b/sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_multiapi.py @@ -0,0 +1,46 @@ +# ------------------------------------ +# Copyright (c) Microsoft Corporation. +# Licensed under the MIT License. +# ------------------------------------ +from enum import Enum +from typing import TYPE_CHECKING + +if TYPE_CHECKING: + from typing import Union + + +class ApiVersion(str, Enum): + """Text Analytics API versions supported by this package""" + + #: this is the default version + V3_1_preview_1 = "v3.1-preview.1" + V3_0 = "v3.0" + + +DEFAULT_VERSION = ApiVersion.V3_0 + + +def load_generated_api(api_version, aio=False): + api_version = api_version or DEFAULT_VERSION + try: + # api_version could be a string; map it to an instance of ApiVersion + # (this is a no-op if it's already an instance of ApiVersion) + api_version = ApiVersion(api_version) + except ValueError: + # api_version is unknown to ApiVersion + raise NotImplementedError( + "This package doesn't support API version '{}'. ".format(api_version) + + "Supported versions: {}".format(", ".join(v.value for v in ApiVersion)) + ) + + if api_version == ApiVersion.V3_1_preview_1: + if aio: + from ._generated.v3_1_preview_1.aio import TextAnalyticsClient + else: + from ._generated.v3_1_preview_1 import TextAnalyticsClient # type: ignore + elif api_version == ApiVersion.V3_0: + if aio: + from ._generated.v3_0.aio import TextAnalyticsClient # type: ignore + else: + from ._generated.v3_0 import TextAnalyticsClient # type: ignore + return TextAnalyticsClient diff --git a/sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_text_analytics_client.py b/sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_text_analytics_client.py index 5f3d0fbd387f..15cc197d740c 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_text_analytics_client.py +++ b/sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_text_analytics_client.py @@ -61,6 +61,9 @@ class TextAnalyticsClient(TextAnalyticsClientBase): Defaults to "US". If you don't want to use a country hint, pass the string "none". :keyword str default_language: Sets the default language to use for all operations. Defaults to "en". + :keyword api_version: The API version of the service to use for requests. It defaults to the + latest service version. Setting to an older version may result in reduced feature compatibility. + :paramtype api_version: str or ~azure.ai.textanalytics.ApiVersion .. admonition:: Example: diff --git a/sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/aio/_base_client_async.py b/sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/aio/_base_client_async.py index f586dae39b9a..753802047992 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/aio/_base_client_async.py +++ b/sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/aio/_base_client_async.py @@ -6,9 +6,9 @@ from typing import Any from azure.core.credentials import AzureKeyCredential from azure.core.pipeline.policies import AzureKeyCredentialPolicy -from ._policies_async import AsyncTextAnalyticsResponseHookPolicy -from .._generated.aio import TextAnalyticsClient +from .._policies import TextAnalyticsResponseHookPolicy from .._user_agent import USER_AGENT +from .._multiapi import load_generated_api def _authentication_policy(credential): @@ -27,16 +27,17 @@ def _authentication_policy(credential): class AsyncTextAnalyticsClientBase(object): def __init__(self, endpoint, credential, **kwargs): - self._client = TextAnalyticsClient( + api_version = kwargs.pop("api_version", None) + _TextAnalyticsClient = load_generated_api(api_version, aio=True) + self._client = _TextAnalyticsClient( endpoint=endpoint, credential=credential, sdk_moniker=USER_AGENT, authentication_policy=_authentication_policy(credential), - custom_hook_policy=AsyncTextAnalyticsResponseHookPolicy(**kwargs), + custom_hook_policy=TextAnalyticsResponseHookPolicy(**kwargs), **kwargs ) - async def __aenter__(self) -> "AsyncTextAnalyticsClientBase": await self._client.__aenter__() return self diff --git a/sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/aio/_policies_async.py b/sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/aio/_policies_async.py deleted file mode 100644 index 7f56fdee08cc..000000000000 --- a/sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/aio/_policies_async.py +++ /dev/null @@ -1,36 +0,0 @@ -# coding=utf-8 -# ------------------------------------ -# Copyright (c) Microsoft Corporation. -# Licensed under the MIT License. -# ------------------------------------ - -import asyncio -from azure.core.pipeline.policies import ContentDecodePolicy -from azure.core.pipeline.policies import SansIOHTTPPolicy -from .._models import TextDocumentBatchStatistics - - -class AsyncTextAnalyticsResponseHookPolicy(SansIOHTTPPolicy): - - def __init__(self, **kwargs): - self._response_callback = kwargs.get('raw_response_hook') - super(AsyncTextAnalyticsResponseHookPolicy, self).__init__() - - async def on_request(self, request): # pylint: disable=invalid-overridden-method - self._response_callback = request.context.options.pop("raw_response_hook", self._response_callback) - - async def on_response(self, request, response): # pylint: disable=invalid-overridden-method - if self._response_callback: - data = ContentDecodePolicy.deserialize_from_http_generics(response.http_response) - statistics = data.get("statistics", None) - model_version = data.get("modelVersion", None) - - if statistics or model_version: - batch_statistics = TextDocumentBatchStatistics._from_generated(statistics) # pylint: disable=protected-access - response.statistics = batch_statistics - response.model_version = model_version - response.raw_response = data - if asyncio.iscoroutine(self._response_callback): - await self._response_callback(response) - else: - self._response_callback(response) diff --git a/sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/aio/_text_analytics_client_async.py b/sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/aio/_text_analytics_client_async.py index 1fc77a62e67c..90f12fb9837d 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/aio/_text_analytics_client_async.py +++ b/sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/aio/_text_analytics_client_async.py @@ -62,6 +62,9 @@ class TextAnalyticsClient(AsyncTextAnalyticsClientBase): Defaults to "US". If you don't want to use a country hint, pass the string "none". :keyword str default_language: Sets the default language to use for all operations. Defaults to "en". + :keyword api_version: The API version of the service to use for requests. It defaults to the + latest service version. Setting to an older version may result in reduced feature compatibility. + :paramtype api_version: str or ~azure.ai.textanalytics.ApiVersion .. admonition:: Example: diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/test_multiapi.py b/sdk/textanalytics/azure-ai-textanalytics/tests/test_multiapi.py new file mode 100644 index 000000000000..fd9d267d8849 --- /dev/null +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/test_multiapi.py @@ -0,0 +1,31 @@ +# coding=utf-8 +# ------------------------------------ +# Copyright (c) Microsoft Corporation. +# Licensed under the MIT License. +# ------------------------------------ +from azure.core.credentials import AzureKeyCredential +from azure.ai.textanalytics import TextAnalyticsClient, ApiVersion +from testcase import TextAnalyticsTest, GlobalTextAnalyticsAccountPreparer + + +class TestRecognizeEntities(TextAnalyticsTest): + @GlobalTextAnalyticsAccountPreparer() + def test_default_api_version(self, resource_group, location, text_analytics_account, text_analytics_account_key): + credential = AzureKeyCredential(text_analytics_account_key) + client = TextAnalyticsClient(text_analytics_account, credential) + + assert "v3.0" in client._client._client._base_url + + @GlobalTextAnalyticsAccountPreparer() + def test_v3_0_api_version(self, resource_group, location, text_analytics_account, text_analytics_account_key): + credential = AzureKeyCredential(text_analytics_account_key) + client = TextAnalyticsClient(text_analytics_account, credential, api_version=ApiVersion.V3_0) + + assert "v3.0" in client._client._client._base_url + + @GlobalTextAnalyticsAccountPreparer() + def test_v3_1_preview_1_api_version(self, resource_group, location, text_analytics_account, text_analytics_account_key): + credential = AzureKeyCredential(text_analytics_account_key) + client = TextAnalyticsClient(text_analytics_account, credential, api_version=ApiVersion.V3_1_preview_1) + + assert "v3.1-preview.1" in client._client._client._base_url \ No newline at end of file diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/test_multiapi_async.py b/sdk/textanalytics/azure-ai-textanalytics/tests/test_multiapi_async.py new file mode 100644 index 000000000000..5493fdc9087b --- /dev/null +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/test_multiapi_async.py @@ -0,0 +1,32 @@ +# coding=utf-8 +# ------------------------------------ +# Copyright (c) Microsoft Corporation. +# Licensed under the MIT License. +# ------------------------------------ +from azure.core.credentials import AzureKeyCredential +from azure.ai.textanalytics import ApiVersion +from azure.ai.textanalytics.aio import TextAnalyticsClient +from testcase import TextAnalyticsTest, GlobalTextAnalyticsAccountPreparer + + +class TestRecognizeEntities(TextAnalyticsTest): + @GlobalTextAnalyticsAccountPreparer() + def test_default_api_version(self, resource_group, location, text_analytics_account, text_analytics_account_key): + credential = AzureKeyCredential(text_analytics_account_key) + client = TextAnalyticsClient(text_analytics_account, credential) + + assert "v3.0" in client._client._client._base_url + + @GlobalTextAnalyticsAccountPreparer() + def test_v3_0_api_version(self, resource_group, location, text_analytics_account, text_analytics_account_key): + credential = AzureKeyCredential(text_analytics_account_key) + client = TextAnalyticsClient(text_analytics_account, credential, api_version=ApiVersion.V3_0) + + assert "v3.0" in client._client._client._base_url + + @GlobalTextAnalyticsAccountPreparer() + def test_v3_1_preview_1_api_version(self, resource_group, location, text_analytics_account, text_analytics_account_key): + credential = AzureKeyCredential(text_analytics_account_key) + client = TextAnalyticsClient(text_analytics_account, credential, api_version=ApiVersion.V3_1_preview_1) + + assert "v3.1-preview.1" in client._client._client._base_url \ No newline at end of file diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/test_text_analytics.py b/sdk/textanalytics/azure-ai-textanalytics/tests/test_text_analytics.py index 3a6aa2b4586f..e424d8d67356 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/test_text_analytics.py +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/test_text_analytics.py @@ -7,7 +7,7 @@ from azure.core.credentials import AzureKeyCredential from azure.ai.textanalytics import TextAnalyticsClient from azure.ai.textanalytics import _models -from azure.ai.textanalytics._generated import models as _generated_models +from azure.ai.textanalytics._generated.v3_1_preview_1 import models as _generated_models from testcase import GlobalTextAnalyticsAccountPreparer from testcase import TextAnalyticsTest as TestAnalyticsTestCase